Modules
A Model Context Protocol (MCP) server library implementing the 2025-11-25
specification over the Streamable HTTP transport.
OAuth 2.1 Resource Server configuration and logic for the MCP authorization spec (revision 2025-11-25).
Normalized claims for a validated OAuth 2.1 access token.
A Plug that serves the RFC 9728 Protected Resource Metadata document.
A Plug that enforces a valid OAuth 2.1 bearer token on every request.
Behaviour for validating inbound OAuth 2.1 access tokens.
Builds the ServerCapabilities object returned in the initialize result and
parses the ClientCapabilities received from the client.
Builders for MCP content blocks and resource contents.
The request context handed to every server handler.
Routes decoded JSON-RPC requests to Urchin.Server callbacks and shapes their return
values into JSON-RPC result maps.
A standalone HTTP endpoint that serves an MCP server with Bandit.
JSON-RPC / MCP error representation.
Encoding, decoding and classification of JSON-RPC 2.0 messages.
A prompt definition advertised via prompts/list, plus helpers for building the
PromptMessage list returned by prompts/get.
An argument accepted by a prompt template.
Protocol-level constants and version negotiation for the Model Context Protocol.
A resource definition advertised via resources/list.
A resource template advertised via resources/templates/list.
An explicit tools/call result.
Server-Sent Events framing helpers for the Streamable HTTP transport.
Behaviour and DSL for authoring MCP servers.
Per-session state for the Streamable HTTP transport.
A tool definition advertised via tools/list.
A Plug implementing the MCP Streamable HTTP transport (revision 2025-11-25).
Minimal RFC 6570 URI template matching used to route resources/read requests to
a declared resource_template.