MCP Server
SideSeat includes a built-in Model Context Protocol (MCP) server that gives AI coding agents direct access to your agent’s execution history — prompts sent, responses received, tool calls made, costs incurred, and errors encountered. Instead of copy-pasting traces into your coding assistant, the agent reads them directly.
Your coding agent can then:
- Optimize prompts — compare what produces good results vs. poor ones
- Debug failures — inspect the full execution trace when something breaks
- Reduce costs — identify expensive model calls and find cheaper alternatives
- Refine tool definitions — see how models interact with your tools and where they struggle
MCP is enabled by default. Pick your tool and connect:
CLI:
kiro-cli mcp add --name sideseat --url http://localhost:5388/api/v1/projects/default/mcpOr config file — add to .kiro/settings/mcp.json:
{ "mcpServers": { "sideseat": { "url": "http://localhost:5388/api/v1/projects/default/mcp" } }}See Kiro MCP docs for more options.
CLI:
claude mcp add --transport http sideseat http://localhost:5388/api/v1/projects/default/mcpOr config file — add to .mcp.json in your project root:
{ "mcpServers": { "sideseat": { "type": "streamable-http", "url": "http://localhost:5388/api/v1/projects/default/mcp" } }}CLI:
codex mcp add --transport http sideseat http://localhost:5388/api/v1/projects/default/mcpOr config file — add to ~/.codex/config.toml:
[mcp_servers.sideseat]url = "http://localhost:5388/api/v1/projects/default/mcp"Add to .cursor/mcp.json in your project root:
{ "mcpServers": { "sideseat": { "type": "streamable-http", "url": "http://localhost:5388/api/v1/projects/default/mcp" } }}For any other MCP-compatible client, point it at the Streamable HTTP endpoint:
http://localhost:5388/api/v1/projects/{project_id}/mcpAvailable Tools
Section titled “Available Tools”7 tools covering the full observability workflow:
| Tool | Description |
|---|---|
list_traces | List recent runs with summaries, tokens, costs, and error status |
list_sessions | List multi-turn sessions grouping related runs |
list_spans | Search operations by type (LLM call, tool exec, agent step), model, framework, or status |
get_trace | Get a run’s execution structure: span tree with timing, models, and tool invocations |
get_messages | Get the normalized conversation with roles, content blocks, token counts, and costs |
get_raw_span | Get raw OTLP span data with all attributes and events |
get_stats | Cost and token analytics by model, framework, and time period |
Workflows
Section titled “Workflows”Prompt Optimization
Section titled “Prompt Optimization”-
Find recent runs —
list_tracesto see recent activity -
Read the conversation —
get_messageswith a trace ID to see exact prompts and responses -
Compare runs — look at successful vs. failed runs to identify what works
-
Check costs —
get_statsto see cost breakdown by model
Example prompt to your coding agent:
Look at my last 5 agent runs in SideSeat. Find any that errored or had high token usage. Show me the system prompts and suggest improvements.
Debugging Failures
Section titled “Debugging Failures”-
Find errors —
list_spanswithstatus_code: "ERROR" -
Get the trace —
get_traceto see the execution tree and where it broke -
Read messages —
get_messagesto see what the model was asked before failing -
Check raw data —
get_raw_spanfor framework-specific attributes
Cost Analysis
Section titled “Cost Analysis”Use SideSeat to compare my costs over the last week. Break down by model and show which runs are most expensive.
Configuration
Section titled “Configuration”MCP is enabled by default. To disable it:
{ "server": { "mcp": { "enabled": false } }}sideseat --mcp falseSIDESEAT_MCP_ENABLED=false sideseatVerifying the Connection
Section titled “Verifying the Connection”npx @modelcontextprotocol/inspector http://localhost:5388/api/v1/projects/default/mcpThis opens a web UI where you can list tools, call them interactively, and verify responses.
Next Steps
Section titled “Next Steps”- Core Concepts — understand runs, steps, sessions, and messages
- API Reference — the REST API that MCP tools call under the hood
- Configuration Schema — all configuration options