Skip to main content

Module server

Module server 

Source
Expand description

rmcp adapter: exposes the tool/resource/prompt layer over MCP and builds the Streamable HTTP tower service mounted on the admin router.

Structsยง

McpServer
The MCP server: a cheap handle over the shared state.

Constantsยง

INSTRUCTIONS ๐Ÿ”’
Orientation sent to every client at initialize.

Functionsยง

build_service
Builds the tower service to mount at admin.mcp.path. Host validation is disabled (agents reach the admin listener by any name; our own middleware enforces Origin), sessions are rmcpโ€™s default in-memory manager.
error_result ๐Ÿ”’
principal ๐Ÿ”’
The principal the bearer middleware attached to this HTTP request.
tool_from_def ๐Ÿ”’
tools_obj ๐Ÿ”’