Expand description
hyperlane-plugin-mcp
Model Context Protocol (MCP) Streamable HTTP server plugin for Hyperlane
with XxHash3_64 tool/resource/prompt registries, sharded TTL session
management with high-entropy IDs, Origin validation, and an opt-in
ServerHook.
Structs§
- McpHook
- Opt-in
ServerHookserving MCP Streamable HTTP (POST/DELETE) on the configured endpoint. - McpPlugin
- Process-wide
McpPluginregistry holdingMcpServerConfigandMcpRegistry. - McpPrompt
- Metadata describing one registered MCP prompt template.
- McpPrompt
Argument - Metadata describing one prompt argument.
- McpRegistry
- Thread-safe registry of MCP tools, resources, prompts, and sharded active client sessions.
- McpResource
- Metadata describing one readable MCP resource.
- McpResource
Content - Content returned by reading one MCP resource.
- McpServer
Config - Configuration for an MCP Streamable HTTP server endpoint.
- McpTool
- Metadata describing one registered MCP tool.
- McpTool
Result - Result returned by an MCP tool invocation.
Enums§
- McpDispatch
Outcome - Outcome returned by
crate::McpRegistry::handle_json_bytesfor HTTP transport translation. - McpError
- Errors returned by MCP tool, resource, prompt, or protocol handlers.
Constants§
- DEFAULT_
MCP_ ENDPOINT - Default MCP Streamable HTTP endpoint path.
- DEFAULT_
MCP_ MAX_ BODY_ SIZE - Default maximum incoming JSON-RPC request body size (1 MiB).
- DEFAULT_
MCP_ MAX_ SESSIONS - Default maximum concurrent MCP sessions stored in memory.
- DEFAULT_
MCP_ PROTOCOL_ VERSION - Default MCP protocol revision advertised during
initialize. - DEFAULT_
MCP_ SESSION_ TTL_ MS - Default MCP session idle TTL in milliseconds (30 minutes).
- MCP_
SESSION_ ID_ HEADER - HTTP header carrying the negotiated MCP session identifier.
Type Aliases§
- McpPrompt
Future - Boxed
Sendfuture returned by an async MCP prompt renderer. - McpPrompt
Handler - Thread-safe async MCP prompt handler receiving optional prompt arguments JSON.
- McpResource
Future - Boxed
Sendfuture returned by an async MCP resource reader. - McpResource
Handler - Thread-safe async MCP resource reader receiving the requested URI.
- McpTool
Future - Boxed
Sendfuture returned by an async MCP tool handler. - McpTool
Handler - Thread-safe async MCP tool handler receiving tool arguments JSON.