How do I connect Claude Code, Claude Desktop or Cursor to Tomosu MCP?
Point your MCP client at the hosted server, https://mcp.tomosu.ai/mcp. It needs no install: the client negotiates the rest. The server speaks streamable HTTP, SSE and stdio. Pick the client you use:
Add Tomosu as a Claude Code MCP server:
$ claude mcp add --transport http tomosu https://mcp.tomosu.ai/mcp --scope user
Then run /mcp inside Claude Code to sign in. --scope user makes the server available in every project on this machine; drop it to add the server to the current project only.
Open Settings → Developer → Edit Config and add the server to claude_desktop_config.json:
{
"mcpServers": {
"tomosu": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.tomosu.ai/mcp"]
}
}
}
Quit and reopen Claude Desktop. The Tomosu tools appear under the tools icon in the composer.
Any client that speaks streamable HTTP can use the same URL, https://mcp.tomosu.ai/mcp.
Where the client asks for a command rather than a URL, use the mcp-remote bridge from the Claude Desktop config: command npx, arguments -y mcp-remote https://mcp.tomosu.ai/mcp.
How do I sign in to the Tomosu MCP server?
Sign in with OAuth inside your client: every tool is scoped to your account, so nothing works until you do. In Claude Code, run /mcp, pick the Tomosu server and follow the browser prompt.
The server issues your token and your client stores it. Other clients run the same OAuth flow on the first tool call.
If a tool answers “Not authenticated”, the OAuth flow has not completed or the token has expired. Run /mcp again and sign in.
How do I go from a scan to a PRI score?
Ask your assistant: once the server is connected and you are signed in, the whole loop is one conversation. You do not call these tools by hand. The examples below show the calls your assistant makes.
-
Point the assistant at the repository
The scan is recorded against your GitHub URL, so the assistant resolves it first. It runs
git remote get-url origin, converts an SSH remote (git@github.com:owner/repo.git) to HTTPS, and strips the trailing.git. If there is no git remote, the local directory path is used instead. -
Ask for the scan
Say what you want checked. The assistant calls
suggest_codewith every file in a single call. The backend batches internally and merges the streamed chunks, so one call covers the whole set and produces onescan_uuid.suggest_code( files=[{"filepath": "src/checkout.ts", "filecontent": "..."}], message="Analyze for reliability issues: crashes, race conditions, " "missing error handling, unhandled promise rejections", project_name="storefront", repo_path="https://github.com/acme/storefront", context=["reliability", "error", "data_integrity"] ) -
Read the recommendations
Each one comes back with a severity, a category, the line range, and complete before and after code blocks. The scan also returns
<scan_uuid>: every step after this needs it. -
Accept or reject, one at a time
This is the step that moves your score. Accepting marks the matching category rules as passed; rejecting only records the decision. Call it once per recommendation.
save_recommendation( scan_uuid="…", accepted=True, filename="src/checkout.ts", before_code="…", after_code="…", project_name="storefront", severity="high" ) -
Get the PRI score
The report is where the score lives. You get a presigned URL, valid for one hour, for a PDF with the PRI score and every sub-index behind it: Fragility, Governance Compliance, Code Volatility, Deployment Velocity, Drift, Runtime Signals, Escalation and, on codebases that run AI agents, Agent Reliability. It also has the category scores and the findings summary.
get_scan_report( scan_uuid="…", repo_path="https://github.com/acme/storefront" ) -
Download it
The URL expires after an hour. Call
get_scan_reportagain with the samescan_uuidfor a fresh one; the report itself does not change.$ curl -L "{returned_url}" -o tomosu-report.pdf -
Watch it move
Scores are only useful as a trend.
get_dashboard_analyticsreturns what the VisionBoard shows: scans over time, dev and prod request counts, accepts, and the category breakdown, for one project or all of them.get_dashboard_analytics(project_name="storefront")
One scan, one UUID. Do not split a repository across several suggest_code calls. You would get several unrelated scans and several partial scores instead of one PRI for the codebase.
Which tools does the Tomosu MCP server provide?
Seven tools, all scoped to the authenticated account.
| Tool | What it does |
|---|---|
suggest_code | Scan files and return reliability recommendations. |
save_recommendation | Accept or reject one recommendation. |
get_scan_report | Get the PDF report, including the PRI score. |
get_dashboard_analytics | Read your VisionBoard dashboard. |
get_tickets | Read Help Portal tickets. |
get_zendesk_tickets | Read synced Zendesk tickets. |
get_support_agent_data | Read everything on the Support Agent page. |
suggest_code
Scan files and return reliability recommendations.
| Parameter | Type | Required | Notes |
|---|---|---|---|
files | list[{filepath, filecontent}] | Required | The files to analyse. Send them all in one call: the backend batches internally and merges the chunks into one response. |
message | string | Required | What to focus on, for example “Analyze for reliability issues: crashes, race conditions, missing error handling”. |
project_name | string | Optional | Project or repository name. Used for dashboard tracking. |
repo_path | string | Optional | GitHub URL, for example https://github.com/owner/repo. Run git remote get-url origin first, normalise SSH to HTTPS, strip .git. |
context | list[string] | Optional | 1–3 analysis categories from the contexts table. |
scan_all | boolean | Optional | Defaults to false. |
workflow_uuid | string | Optional | Ties the scan to an existing workflow run. |
Returns XML-wrapped markdown: a before/after code block per recommendation, with severity, line numbers and category, plus <scan_uuid>, which every later call needs.
save_recommendation
Accept or reject one recommendation.
| Parameter | Type | Required | Notes |
|---|---|---|---|
scan_uuid | string | Required | The UUID returned by suggest_code. |
accepted | boolean | Required | true accepts, false rejects. |
filename | string | Required | Relative path the recommendation applies to. |
before_code | string | Required | The original block, verbatim from the Before section. |
after_code | string | Required | The recommended replacement, verbatim from the After section. |
project_name | string | Required | The same value you passed to suggest_code. |
categories | list[string] | Optional | Categories this recommendation belongs to. |
title | string | Optional | Short label for the dashboard. |
severity | string | Optional | high, medium or low. |
Returns a confirmation string. Accepting marks the matching category rules as passed, which moves the scan’s category scores. Rejecting logs the decision without changing scores.
get_scan_report
Get the PDF report, including the PRI score.
| Parameter | Type | Required | Notes |
|---|---|---|---|
scan_uuid | string | Required | The scan to report on. |
repo_path | string | Required | GitHub URL of the repository. Appears on the report. |
Returns a presigned S3 URL, valid for one hour. The PDF carries project meta, the PRI score and every sub-index (FI, GC, CV, DV, DI, RS, EEI), category scores and a findings summary. Call it again with the same UUID for a fresh URL.
get_dashboard_analytics
Read your VisionBoard dashboard.
| Parameter | Type | Required | Notes |
|---|---|---|---|
project_name | string | Optional | Filter to one project. Omit it for every project you own. |
Returns the same analytics that power the VisionBoard dashboard: total scans, dev/prod request counts, code accepts, category breakdown, recent observability logs and best practices, plus the raw JSON. Scoped to your account by your token.
get_tickets
Read Help Portal tickets.
| Parameter | Type | Required | Notes |
|---|---|---|---|
ticket_number | string | Optional | A single ticket id such as 001. Omit it for all of them. |
Returns JSON per ticket: id, ticket_id, title, priority, status, source, file_path, current_code, recommended_fix, reasoning, supportability_impact and telemetry_signal.
get_zendesk_tickets
Read synced Zendesk tickets.
| Parameter | Type | Required | Notes |
|---|---|---|---|
status_filter | string | Optional | open, pending, solved, closed. |
priority_filter | string | Optional | urgent, high, normal, low. |
Returns Zendesk tickets synced after you connect the account. Connect it first under Settings → Integrations, or this returns nothing.
get_support_agent_data
Read everything on the Support Agent page. It takes no parameters.
Returns one JSON object: Support Agent issues, signal and overall summaries, TomosuScore and extended scores (FI, DI, GC, RS, CV, DV), ticket statistics, accept/reject statistics, server configuration, and a per-issue array with category, severity, component, file, issue, root_cause, suggestion, before_code, after_code, confidence, impact_details and telemetry_signal.
Which analysis contexts can I pass to suggest_code?
Pass one to three of these 27 contexts in context to steer suggest_code. For the reliability workflow, ["reliability", "error", "data_integrity"] is the useful default.
| Context | Focus |
|---|---|
reliability | Crashes, null refs, race conditions |
error | Error handling, missing try/catch |
performance | Latency, memory, CPU efficiency |
security | Auth, injection, data exposure |
maintainability | Code clarity, complexity |
logs | Logging gaps, unstructured logs |
compliance | Regulatory, data handling |
testing | Test coverage, flaky tests |
api_observability | API tracing, response monitoring |
service_resilience | Retry logic, circuit breakers |
data_integrity | DB consistency, transaction safety |
traffic_management | Rate limiting, load handling |
asynchronous_messaging | Queue reliability, message loss |
infrastructure_efficiency | Resource utilisation |
security_supportability | Auth audit trails |
knowledge_ops | Documentation quality |
configuration_hygiene | Config drift, hardcoded values |
database_performance | Query optimisation, N+1 |
observability | Metrics, tracing, alerting |
dataops_integrity | Pipeline reliability |
knowledgeops_maintainability | Knowledge base quality |
iac_finops | Infrastructure cost and drift |
user_facing_diagnostics | User-visible error messages |
drift_resistance | Config/state drift prevention |
state_volatility | State mutation safety |
architectural_governance | Structural compliance |
support_agent_readiness | Support workflow quality |
Which prompt templates does the server include?
The server ships three prompts. They take code and an optional filepath, and drive suggest_code with the right contexts already chosen.
| Prompt | What it does |
|---|---|
code_review | A full review across every quality category, returned as a summary table, before/after diffs per recommendation, and a score card with the top three actions. |
security_audit | Security only: vulnerabilities, hardcoded secrets, PII exposure, injection risk, and authentication or authorisation gaps. |
performance_review | Bottlenecks and optimisation: performance, database queries, caching, resource efficiency and infrastructure. |
How do I run the Tomosu MCP server myself?
Run it with Docker Compose or from source. The hosted endpoint suits most teams; run your own when code must not leave your network.
With Docker Compose
The server sits alongside the python, node and agent backends and listens on 8080:
$ docker compose up -d
Then point Claude Desktop at your instance:
{
"mcpServers": {
"tomosu": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://localhost:8080/sse"]
}
}
}
From source, over stdio
This needs Python 3.10+ and uv.
cd ai-dev/mcp-server
uv sync
uv run server.py
Exposing a local server to a remote client
To reach a local instance from a client that needs a public URL, tunnel port 8080 and set MCP_ISSUER_URL to the generated address. OAuth breaks if the issuer does not match what the client connected to. Then point the client at <your-url>/mcp.
brew install cloudflared
cloudflared tunnel --url http://localhost:8080
Environment
| Variable | Default | Purpose |
|---|---|---|
NODE_BACKEND_URL | http://localhost:8001 | Node backend the tools call for scans, tickets and analytics. |
AGENT_BACKEND_URL | http://localhost:8002 | Agent backend for Support Agent data. |
MCP_TRANSPORT | stdio | stdio, sse or streamable-http. |
MCP_HOST | 0.0.0.0 | Bind address for the HTTP transports. |
MCP_PORT | 8080 | Port for the HTTP transports. |
MCP_ENABLE_AUTH | true | Set false only for local development without OAuth. |
MCP_ISSUER_URL | http://localhost:8080 | Public URL of this server. Must match what clients connect to. |
GOOGLE_CLIENT_ID | None | Google OAuth client, shared with the node backend. |
GOOGLE_CLIENT_SECRET | None | Google OAuth secret. |
GOOGLE_CALLBACK_URL | http://localhost:8080/google/callback | OAuth redirect target. |
Testing the tools directly
$ npx @modelcontextprotocol/inspector uv run server.py
What if something goes wrong?
A tool replies “Not authenticated”
The OAuth flow did not finish, or the token expired. Run /mcp again and sign in.
The report URL returns an error
Presigned URLs last one hour. Call get_scan_report again with the same scan_uuid.
get_zendesk_tickets returns nothing
Zendesk has to be connected first, under Settings → Integrations in the VisionBoard. Tickets sync at connection time.
A large scan takes a long time
It should. suggest_code runs real model calls and allows up to 30 minutes; the client, not the server, is usually what gives up first. Keep sending all files in one call: splitting them is slower and fragments the score.
The score did not move after fixes
Applying a fix in your editor changes nothing on its own. Scores move when save_recommendation records the decision with accepted=true.
Self-hosted OAuth loops
MCP_ISSUER_URL must exactly match the URL the client connects to, tunnel address included.