Skip to main content

Module server

Module server 

Source
Expand description

MCP server (rmcp) for Horto (stdio or Streamable HTTP).

Structsยง

HortoMcp
MCP server handle.
HttpGate ๐Ÿ”’

Constantsยง

DEFAULT_HTTP_LISTEN_BOX
Default HTTP listen when HORTO_MCP_MODE=box.
DEFAULT_HTTP_LISTEN_PC
Default HTTP listen when HORTO_MCP_MODE=pc.

Functionsยง

bearer_ok ๐Ÿ”’
blocking_str ๐Ÿ”’
default_listen_for
Default listen string for a mode.
gate_middleware ๐Ÿ”’
http_router ๐Ÿ”’
mcp_err ๐Ÿ”’
MCP invalid-params error with a human message.
run_http
Serve Streamable HTTP until stopped.
text_ok ๐Ÿ”’
Successful MCP tool result with a single text content block.
to_json_text ๐Ÿ”’