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