Product
Platform overview Tomosu engine (open source) Tomosu Cloud Reliability rules
Solutions
Prevent outages before merge Reliability Radar Fix safety For developers For SRE and platform teams
Developers
Quickstart Documentation Contribute a rule
Resources
Blog Case studies Learn FAQ News
Company
Pricing About Contact Join the Waitlist
Theme

Tomosu MCP server

The Tomosu MCP server lets an MCP client such as Claude Code, Claude Desktop or Cursor scan the code it just wrote for reliability issues. Your assistant shows you the fixes, records the ones you accept and returns a Production Reliability Index (PRI) score with a PDF report behind it. The hosted server, https://mcp.tomosu.ai/mcp, needs no install and signs you in with OAuth inside your client.

  • https://mcp.tomosu.ai/mcp
  • OAuth, in your client
  • 7 tools, 3 prompts
  • Updated

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.

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.

  1. 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.

  2. Ask for the scan

    Say what you want checked. The assistant calls suggest_code with every file in a single call. The backend batches internally and merges the streamed chunks, so one call covers the whole set and produces one scan_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"]
    )
  3. 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.

  4. 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"
    )
  5. 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"
    )
  6. Download it

    The URL expires after an hour. Call get_scan_report again with the same scan_uuid for a fresh one; the report itself does not change.

    $ curl -L "{returned_url}" -o tomosu-report.pdf
  7. Watch it move

    Scores are only useful as a trend. get_dashboard_analytics returns 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.

ToolWhat it does
suggest_codeScan files and return reliability recommendations.
save_recommendationAccept or reject one recommendation.
get_scan_reportGet the PDF report, including the PRI score.
get_dashboard_analyticsRead your VisionBoard dashboard.
get_ticketsRead Help Portal tickets.
get_zendesk_ticketsRead synced Zendesk tickets.
get_support_agent_dataRead everything on the Support Agent page.

suggest_code

Scan files and return reliability recommendations.

ParameterTypeRequiredNotes
fileslist[{filepath, filecontent}]RequiredThe files to analyse. Send them all in one call: the backend batches internally and merges the chunks into one response.
messagestringRequiredWhat to focus on, for example “Analyze for reliability issues: crashes, race conditions, missing error handling”.
project_namestringOptionalProject or repository name. Used for dashboard tracking.
repo_pathstringOptionalGitHub URL, for example https://github.com/owner/repo. Run git remote get-url origin first, normalise SSH to HTTPS, strip .git.
contextlist[string]Optional1–3 analysis categories from the contexts table.
scan_allbooleanOptionalDefaults to false.
workflow_uuidstringOptionalTies 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.

ParameterTypeRequiredNotes
scan_uuidstringRequiredThe UUID returned by suggest_code.
acceptedbooleanRequiredtrue accepts, false rejects.
filenamestringRequiredRelative path the recommendation applies to.
before_codestringRequiredThe original block, verbatim from the Before section.
after_codestringRequiredThe recommended replacement, verbatim from the After section.
project_namestringRequiredThe same value you passed to suggest_code.
categorieslist[string]OptionalCategories this recommendation belongs to.
titlestringOptionalShort label for the dashboard.
severitystringOptionalhigh, 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.

ParameterTypeRequiredNotes
scan_uuidstringRequiredThe scan to report on.
repo_pathstringRequiredGitHub 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.

ParameterTypeRequiredNotes
project_namestringOptionalFilter 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.

ParameterTypeRequiredNotes
ticket_numberstringOptionalA 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.

ParameterTypeRequiredNotes
status_filterstringOptionalopen, pending, solved, closed.
priority_filterstringOptionalurgent, 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.

ContextFocus
reliabilityCrashes, null refs, race conditions
errorError handling, missing try/catch
performanceLatency, memory, CPU efficiency
securityAuth, injection, data exposure
maintainabilityCode clarity, complexity
logsLogging gaps, unstructured logs
complianceRegulatory, data handling
testingTest coverage, flaky tests
api_observabilityAPI tracing, response monitoring
service_resilienceRetry logic, circuit breakers
data_integrityDB consistency, transaction safety
traffic_managementRate limiting, load handling
asynchronous_messagingQueue reliability, message loss
infrastructure_efficiencyResource utilisation
security_supportabilityAuth audit trails
knowledge_opsDocumentation quality
configuration_hygieneConfig drift, hardcoded values
database_performanceQuery optimisation, N+1
observabilityMetrics, tracing, alerting
dataops_integrityPipeline reliability
knowledgeops_maintainabilityKnowledge base quality
iac_finopsInfrastructure cost and drift
user_facing_diagnosticsUser-visible error messages
drift_resistanceConfig/state drift prevention
state_volatilityState mutation safety
architectural_governanceStructural compliance
support_agent_readinessSupport 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.

PromptWhat it does
code_reviewA 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_auditSecurity only: vulnerabilities, hardcoded secrets, PII exposure, injection risk, and authentication or authorisation gaps.
performance_reviewBottlenecks 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

VariableDefaultPurpose
NODE_BACKEND_URLhttp://localhost:8001Node backend the tools call for scans, tickets and analytics.
AGENT_BACKEND_URLhttp://localhost:8002Agent backend for Support Agent data.
MCP_TRANSPORTstdiostdio, sse or streamable-http.
MCP_HOST0.0.0.0Bind address for the HTTP transports.
MCP_PORT8080Port for the HTTP transports.
MCP_ENABLE_AUTHtrueSet false only for local development without OAuth.
MCP_ISSUER_URLhttp://localhost:8080Public URL of this server. Must match what clients connect to.
GOOGLE_CLIENT_IDNoneGoogle OAuth client, shared with the node backend.
GOOGLE_CLIENT_SECRETNoneGoogle OAuth secret.
GOOGLE_CALLBACK_URLhttp://localhost:8080/google/callbackOAuth 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.