agentconnect.mcp.registry_mcp_server module

MCP server for agent registry search operations.

This server provides semantic search capabilities for the AgentConnect registry, allowing clients to find agents based on their capabilities, skills, and descriptions.

create_agent_discovery_mcp(registry_client=None)

Create and return a configured FastMCP instance for agent discovery.

  • Tools and lifespan are defined inside this factory and close over a snapshot of settings read at call-time.

  • Allows dependency injection for tests (registry_client).

  • No network calls or client creation occur at import time.

Return type:

FastMCP

Parameters:

registry_client (RegistryAPIClient | None)