API Reference gen_mcp v#2.0.0

Copy Markdown View Source

Modules

Behaviour for an MCP server that handles JSON-RPC requests over the stateless 2026-07-28 transport.

Exception raised when a behaviour callback returns a value the library cannot use.

Maps internal error reasons to JSON-RPC error responses.

Builders and struct vocabulary for the MCP 2026-07-28 protocol version.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Represents a GET request from the StreamableHTTP client.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Struct and module-based JSON schema generated from modelcontextprotocol.io JSON schema.

Per-request channel for pushing notifications, logs, and the final reply back to an MCP client.

Behaviour for the session store of the 2025 compatibility transport.

The default GenMCP.SessionController: the session id is the session.

Ready-made GenMCP server that serves tools, resources, and prompts from a set of configured providers.

Behaviour for contributing tools, resource repositories, and prompt repositories to a GenMCP.Suite based on the request.

Behaviour for a repository of prompts served by a GenMCP.Suite.

Behaviour for a repository of resources served by a GenMCP.Suite.

Behaviour for serving subscriptions/listen, the long-lived notification stream of a GenMCP.Suite.

Behaviour for a tool served by a GenMCP.Suite.

A :telemetry handler that logs the events emitted by the :gen_mcp application.

Authenticated encryption for the opaque tokens the library hands back to clients and later verifies.

HTTP plug implementing the MCP Streamable HTTP transport for the 2026-07-28 protocol.

HTTP plug serving MCP clients that speak the 2025-06-18 or 2025-11-25 protocol, on top of the stateless 2026-07-28 core.

Validates and casts decoded JSON-RPC messages into the GenMCP.MCP.V2607 struct vocabulary.