jeevesagent.mcp.spec

Declarative MCP server descriptions.

Classes

MCPServerSpec

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() or http() 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 url via 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 command as a subprocess and speak JSON-RPC over its stdio.

args: tuple[str, Ellipsis] = ()
command: str | None = None
description: str = ''
env: tuple[tuple[str, str], Ellipsis] = ()
headers: tuple[tuple[str, str], Ellipsis] = ()
name: str
transport: Literal['stdio', 'http']
url: str | None = None