Mooncore.MCP.Protocol (mooncore v0.2.4)

Copy Markdown

Standard MCP (Model Context Protocol) JSON-RPC 2.0 handler.

Implements the Streamable HTTP transport for VS Code and other MCP clients. All operations require mooncore_dev_tools to be enabled.

Supported Methods

  • initialize — handshake with capabilities
  • ping — keepalive
  • tools/list — list available tools
  • tools/call — invoke a tool
  • resources/list — list available resources
  • resources/read — read a resource by URI

Summary

Functions

Handle a JSON-RPC 2.0 request map. Returns a response map.

Functions

handle(request)

Handle a JSON-RPC 2.0 request map. Returns a response map.

Notifications (no "id") return :notification.