Documentation
¶
Overview ¶
Package mcp provides the Model Context Protocol interface adapter for SOUL. Implements the same stdio JSON-RPC pattern as MIRA (mark3labs/mcp-go v0.2.0).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serve ¶
func Serve(a *app.SoulApplication) error
Serve starts the SOUL MCP server over stdio (same pattern as MIRA). Blocks until the transport closes.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller handles MCP tool calls for SOUL.
func NewController ¶
func NewController(a *app.SoulApplication) *Controller
NewController creates a new MCP controller wrapping the SOUL application.
func (*Controller) Call ¶
func (c *Controller) Call(ctx context.Context, name string, arguments map[string]interface{}) (*mcptypes.CallToolResult, error)
Call dispatches a soul_* tool call. Returns an error for unknown tool names. Used for combined registration with another MCP server (e.g., MIRA).
func (*Controller) RegisterTools ¶
func (c *Controller) RegisterTools(mcpServer server.MCPServer)
RegisterTools registers all 8 SOUL MCP tools on the given server.
func (*Controller) ToolDefinitions ¶
func (c *Controller) ToolDefinitions() []mcptypes.Tool
ToolDefinitions returns the 8 SOUL tool definitions. Used for combined registration with another MCP server (e.g., MIRA).