"""FastMCP bridge that exposes Claude-style agent definitions to any MCP client."""
__all__ = ["mcp", "create_mcp_server"]
def __getattr__(name: str):
"""Lazy import to defer mcp server creation until actually needed.
This is primarily used by fastmcp CLI (e.g., `fastmcp run polyagent_mcp:mcp`).
The console script entry point (cli.py) handles its own initialization.
"""
if name == "mcp":
from polyagent_mcp.server import mcp
return mcp
elif name == "create_mcp_server":
from polyagent_mcp.server import create_mcp_server
return create_mcp_server
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/execveat/polyagent-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server