How an agent declares the MCP servers it uses. These are plain, frozen Pydantic models: they only describe a
server. Connecting to it is the runner's job (see featherweight/mcp_connections.py), so this module needs no MCP install.
MCPServer
Bases: BaseModel
What every MCP server declaration has.
connection_key
connection_key() -> tuple
What identifies the connection: two servers with an equal key share one.
StdioMCPServer
Bases: MCPServer
A server the runner starts as a subprocess and talks to over stdin and stdout.
HttpMCPServer
Bases: MCPServer
A server reached over streamable HTTP.