Endpoint
Authentication
The MCP server uses personal API keys with thelqtp_ prefix. These are separate from project SDK keys (zsp_) and are scoped to your user account.
Generate a personal API key
Go to Settings → MCP in the Zespan dashboard. Click Generate key, give it a name, and copy the key — it is shown only once.Client configuration
- Claude Desktop
- Cursor
- Claude Code
- Other clients
Open your Claude Desktop configuration file:Restart Claude Desktop. You should see Zespan tools listed when you start a new conversation.
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
zespan server entry:Available tools
The Zespan MCP server exposes 35 tools across seven areas — traces and metrics, prompts, datasets and evaluators, Issues, sessions, retroactive evaluation, and cost. Most are read-only; the write tools (creating a prompt version, moving a label, resolving an Issue, triggering a scoring or retroactive-eval run) are called out as such and enforce the same role permissions as the dashboard. These first nine cover traces and metrics:Prompt management tools
The same MCP server also exposes tools for working with your prompt library, so you can manage prompts without leaving your editor — for example, ask Claude Desktop to draft a new prompt version and promote it once you’re happy.These tools respect the same permissions as the dashboard and REST API. A personal API key can only do what that user’s role allows — for example, only Admins or Owners can promote to
production if your organization has locked that label down — and any protected label your organization has configured is enforced the same way here as everywhere else.Evaluation & dataset tools
The same MCP server also exposes tools for your datasets and evaluators, so a coding agent can debug a failing trace, inspect an evaluator’s config, or kick off a scoring run without leaving your editor.Like the prompt tools above,
zespan_dataset_run_score respects your role’s permissions — it requires evaluations:manage (Owner, Admin, or Editor). Read-only tools (list/get) are available to any project member.Issue tools
Issues are the recurring failure patterns Zespan clusters out of failed and degraded traces. Exposing them over MCP means a coding agent can start from “what’s broken” rather than from a trace id you had to find first — and can close the loop by resolving the Issue once it has shipped a fix.Resolving or dismissing an Issue requires
guardrails:manage (Owner or Admin — Editors cannot). Generating a remediation suggestion requires ai-features:use (Owner, Admin, or Editor). The suggestion is cached per Issue and shared with the dashboard’s Generate suggestion button, so an agent and a teammate see the same text and you’re only billed for one analysis.Session tools
A multi-turn conversation can go wrong without any single trace looking wrong. These tools give an agent the whole session — the same transcript Zespan’s session-level judge reads.Retroactive evaluation tools
Retroactive evaluation scores historical traces against an evaluator that wasn’t configured at the time. This is the most useful write tool for a coding agent: right after changing a prompt or swapping a model, it can score the traces the old behavior produced and tell you whether the change is actually an improvement.Creating a run requires
evaluations:manage (Owner, Admin, or Editor). The tool rejects a window whose end is not after its start rather than silently matching zero traces.Cost tools
Cost attribution requires the Pro plan or above, exactly like the Costs dashboard. A personal API key does not bypass plan limits.
Example prompts
Once connected, you can ask your AI assistant:Next steps
- API keys — manage personal and project API keys
- Traces — explore traces in the dashboard
- Issues — recurring failure patterns, resolve/dismiss, and remediation suggestions
- Sessions — multi-turn conversations and session-level evaluation
- Evaluations — evaluators, datasets, and retroactive runs
- Prompts — manage prompt versions and labels in the dashboard
- Costs — cost attribution and the cost-quality frontier
- ZespanPilot — AI copilot built into the Zespan dashboard

