haive.mcp.configยถ

Configuration models for MCP Downloader.

This module defines the configuration models used throughout the MCP downloader system, including templates, server configurations, and installation methods.

Example

Creating a server template:


template = ServerTemplate(

name=โ€npm_officialโ€, installation_method=InstallationMethod.NPM, command_pattern=โ€@modelcontextprotocol/server-{service}โ€, capabilities=[โ€œtoolsโ€], category=โ€officialโ€

)

Creating a server configuration:

config = ServerConfig(
name="filesystem",
template="npm_official",
source="npm",
variables={"service": "filesystem"},
tags={"official", "file-operations"}

)

Classes:

InstallationMethod: Enum of supported installation methods ServerTemplate: Template for server installation patterns ServerConfig: Configuration for a specific server DownloaderConfig: Overall downloader configuration