jeevesagent.mcp.spec¶
Declarative MCP server descriptions.
Classes¶
How to find and talk to a single MCP server. |
Module Contents¶
- class jeevesagent.mcp.spec.MCPServerSpec[source]¶
How to find and talk to a single MCP server.
Construct via the class methods
stdio()orhttp()rather than the bare constructor — they enforce the right combination of fields per transport.- classmethod http(name: str, url: str, headers: dict[str, str] | None = None, *, description: str = '') MCPServerSpec[source]¶
Connect to
urlvia Streamable HTTP transport.
- classmethod stdio(name: str, command: str, args: list[str] | tuple[str, Ellipsis] | None = None, env: dict[str, str] | None = None, *, description: str = '') MCPServerSpec[source]¶
Spawn
commandas a subprocess and speak JSON-RPC over its stdio.
- transport: Literal['stdio', 'http']¶