Skip to content
START WITH THE BIG PICTUREAsk your editor questions about recorded quality evidence.

For developers using an ai editor

STEP 01

Use the read-only access described in the token section.

What should I remember?

This MCP interface is read-only. It does not launch runs or modify your project.

New to the terminology? See the words explained

Ask your editor about quality (MCP) ​

Lupin serves a read-only Model Context Protocol server, so an assistant in your editor can answer "what is limiting this repository's grade?", "does this branch pass the gate?" or "which tests are flaky?" from the same numbers the dashboard shows.

Every tool reads. None of them writes, triages, starts a scan or spends the model budget.

The tools ​

ToolWhat it answers
list_projectsThe projects the token can read, each with its grade and weakest dimension. Start here for an id.
get_healthOne project's grade on a branch: score, letter, what limits it, all twelve dimensions, what to fix.
list_findingsFindings on a branch, most severe first, filtered by dimension, severity, state, tool or text.
get_gateWhether a branch passes the pull-request gate, every reason, and what it adds over the default.
get_deliveryDORA and pull-request flow over a window.
get_agent_qualityEval suites against the default branch, and agent runtime (cost, tokens, tool failures).
get_ai_codeHow much merged change an AI wrote, and whether it fares worse. Never names a person.
get_supply_chainSLSA level, licence violations, fixable criticals, vulnerable components, VEX coverage, SBOM age.
get_test_effectivenessMutation score, diff coverage of the latest commits, flaky tests and their cost, failure causes.
get_briefingWhat happened over a window, every line cited. One project, or all of them when none is named.
list_runsRecent runs, newest first, with outcome, branch, commit and test counts.
get_test_historyOne test's recent results, and how often it failed, was flaky or flipped.
list_quarantineQuarantined tests and their status; pending ones still count in the pass rate.
list_failure_causesThe stored root causes over the last 90 days, most frequent first, with first and last seen.
get_change_riskA pull request's change risk: level, score and every factor, for each head.
list_signoffsShip and hold decisions for a project, with the verdict each was made against.

Each answer is two text blocks: a one-line summary, and the full contract as JSON — the same shape the matching API route returns. A refusal is a tool error that starts with the stable error code, such as NOT_FOUND: No project … or FORBIDDEN: This token is pinned to another project.

The token ​

Create an access token with the viewer role on the Access page. It is the only credential the server takes, and it reads exactly what a viewer can read in the dashboard:

  • Only its own workspace. A token from another install's workspace does not authenticate, and another workspace's project is "no such project".
  • Never an uploader token. The uploader role sends CI reports and reads nothing, so the server refuses it as every read route does.
  • Read-only, always. An operator or admin token works too, and still cannot write through MCP.

Treat it as a secret: put it in your editor's environment or secret store, not in a file you commit.

Two ways to connect ​

Over HTTP, for an editor that speaks Streamable HTTP and can send a header. The endpoint is /api/v1/mcp on your install, with Authorization: Bearer <token>. It is stateless and answers JSON; a GET answers 405, because the server pushes nothing.

Over stdio, for an editor that launches a command. The proxy is built with the API, at apps/api/dist/mcp/stdio.js in a checkout of this repository, and forwards every request to the HTTP endpoint unchanged. It reads two variables:

  • LUPIN_URL — your install's origin. https:// anywhere; http:// only to a loopback host (localhost, 127.0.0.0/8 or ::1), because the token would otherwise cross the network in the clear. The proxy refuses anything else before it sends a byte.
  • LUPIN_TOKEN — the viewer token.

The proxy writes the protocol to stdout and its own errors to stderr, and never prints the token.

Editor configuration ​

Replace the path, the origin and the token. Each block is the whole file for that editor, or the one entry to add to it.

Claude Code ​

bash
claude mcp add lupin --env LUPIN_URL=https://lupin.example.com \
  --env LUPIN_TOKEN=lup_your_viewer_token -- node /path/to/Lupin/apps/api/dist/mcp/stdio.js

Or, over HTTP:

bash
claude mcp add --transport http lupin https://lupin.example.com/api/v1/mcp \
  --header "Authorization: Bearer lup_your_viewer_token"

Cursor — .cursor/mcp.json ​

json
{
  "mcpServers": {
    "lupin": {
      "command": "node",
      "args": ["/path/to/Lupin/apps/api/dist/mcp/stdio.js"],
      "env": {
        "LUPIN_URL": "https://lupin.example.com",
        "LUPIN_TOKEN": "lup_your_viewer_token"
      }
    }
  }
}

Kiro — .kiro/settings/mcp.json ​

json
{
  "mcpServers": {
    "lupin": {
      "command": "node",
      "args": ["/path/to/Lupin/apps/api/dist/mcp/stdio.js"],
      "env": {
        "LUPIN_URL": "https://lupin.example.com",
        "LUPIN_TOKEN": "lup_your_viewer_token"
      },
      "disabled": false,
      "autoApprove": ["list_projects", "get_health"]
    }
  }
}

VS Code — .vscode/mcp.json ​

json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "lupin-token",
      "description": "Lupin viewer token",
      "password": true
    }
  ],
  "servers": {
    "lupin": {
      "type": "http",
      "url": "https://lupin.example.com/api/v1/mcp",
      "headers": { "Authorization": "Bearer ${input:lupin-token}" }
    }
  }
}

VS Code prompts for the token once and keeps it in its secret storage, which is why this one uses the HTTP endpoint rather than an env block in a file you might commit.

An agent-config scan will notice a token in a committed MCP file. Lupin's own agent-config scan reads .cursor/mcp.json, .kiro/settings/mcp.json and .vscode/mcp.json, and a credential in args or a literal in env is a finding — keep the real token in your user-level config.

What it does not do ​

No resources, prompts or server-initiated notifications; no sessions; no OAuth discovery (the token is the credential); no tool that writes. The capability register's connectors.mcp row is the authority on what is built.