Expand description
HTTP MCP Endpoints for Smart Tree Daemon
Provides MCP (Model Context Protocol) over HTTP instead of stdio. This enables multiple AIs to connect simultaneously and share context through the daemon’s central brain.
Endpoints:
- GET /mcp/sse - SSE endpoint for MCP (Claude Code compatible)
- POST /mcp/message - Send JSON-RPC message (for SSE clients)
- POST /mcp/initialize - Initialize MCP session
- GET /mcp/tools/list - List available tools
- POST /mcp/tools/call - Execute a tool
- GET /mcp/resources/list - List resources
- GET /mcp/prompts/list - List prompts
~ The Custodian watches all operations through here ~
Structs§
- Capabilities
- Client
Info - McpInitialize
Request - McpInitialize
Response - Prompt
Capabilities - Resource
Capabilities - Server
Info - Tool
Call Request - Tool
Capabilities
Functions§
- create_
mcp_ context - Create a new shared MCP context
- mcp_
initialize - POST /mcp/initialize - Initialize MCP session
- mcp_
message_ handler - POST /mcp/message - Receive JSON-RPC messages from SSE clients
- mcp_
prompts_ list - GET /mcp/prompts/list - List available prompts
- mcp_
resources_ list - GET /mcp/resources/list - List available resources
- mcp_
router - Create the MCP HTTP router
- mcp_
sse_ handler - GET /mcp/sse - Server-Sent Events endpoint for MCP
- mcp_
tools_ call - POST /mcp/tools/call - Execute an MCP tool
- mcp_
tools_ list - GET /mcp/tools/list - List available MCP tools
Type Aliases§
- Shared
McpContext - Shared MCP context for HTTP handlers