MCP Server
Connect your editor to Stockyard via the Model Context Protocol.
What is MCP
The Model Context Protocol (MCP) lets editors and tools connect to external services through a standardized interface. Stockyard includes an MCP server that exposes proxy management, trace viewing, and module configuration to any MCP-compatible editor.
The MCP server is included in both the open-source proxy (Apache 2.0) and the full platform.
MCP endpoint
The MCP server runs on the same port as the proxy, at /mcp/sse for SSE transport:
http://localhost:4200/mcp/sse
Cursor setup
In Cursor, go to Settings and add the MCP server URL. See the Cursor setup guide for detailed steps.
Claude Desktop setup
Add Stockyard to your Claude Desktop config at ~/Library/Application Support/Claude/claude_desktop_config.json:
{ "mcpServers": { "stockyard": { "url": "http://localhost:4200/mcp/sse" } } }
Available MCP tools
The MCP server exposes these tools to connected editors:
list_modules shows all middleware modules and their enabled/disabled state.
toggle_module enables or disables a middleware module at runtime.
list_providers shows configured providers and their status.
recent_traces returns the most recent requests with cost and latency data.
spend_summary returns spend totals for the last 24 hours or 30 days.
Other editors
Any editor that supports MCP via SSE transport can connect. See the editor setup guides for Windsurf, Cline, Aider, and GitHub Copilot.