vendor_connectors.mcp
Unified MCP Server for Vendor Connectors.
This module provides a single MCP (Model Context Protocol) server that exposes ALL vendor connectors as tools via the registry.
Usage:
Command line
Section titled “Command line”vendor-connectors-mcp
# Or programmaticallyfrom vendor_connectors.mcp import create_server, mainserver = create_server()The server automatically discovers all registered connectors and exposes their public methods as MCP tools.
This provides the bridge between TypeScript (@agentic/control) and Python with zero custom code - just standard MCP over stdio.
Module Contents
Section titled “Module Contents”Functions
Section titled “Functions”_check_mcp_installed | Check if MCP SDK is installed. |
|---|---|
_get_method_schema | Generate JSON schema from method signature. |
_get_public_methods | Get public methods from a connector class (excluding dunder and private). |
create_server | Create the unified MCP server with all registered connectors. |
main | Run the MCP server over stdio. |
vendor_connectors.mcp._check_mcp_installed() → bool
Section titled “vendor_connectors.mcp._check_mcp_installed() → bool”Check if MCP SDK is installed.
vendor_connectors.mcp._get_method_schema(method: collections.abc.Callable) → dict[str, Any]
Section titled “vendor_connectors.mcp._get_method_schema(method: collections.abc.Callable) → dict[str, Any]”Generate JSON schema from method signature.
vendor_connectors.mcp._get_public_methods(connector_class: type) → list[tuple[str, collections.abc.Callable]]
Section titled “vendor_connectors.mcp._get_public_methods(connector_class: type) → list[tuple[str, collections.abc.Callable]]”Get public methods from a connector class (excluding dunder and private).
vendor_connectors.mcp.create_server()
Section titled “vendor_connectors.mcp.create_server()”Create the unified MCP server with all registered connectors.
vendor_connectors.mcp.main() → int
Section titled “vendor_connectors.mcp.main() → int”Run the MCP server over stdio.