Connect Qodex over MCP
Qodex provides a remote Model Context Protocol (MCP) server. Connect it to a coding agent to inspect Qodex projects, look up saved test coverage, start saved test runs, and triage findings without leaving the agent. The MCP endpoint is:/mcp, for example https://qodex.example.com/mcp.
Connect with Claude Code
In a terminal, add the Qodex MCP server:whoami to confirm the connection, then list_projects to choose a project. If your Qodex account has one active project, project-scoped tools select it automatically. Otherwise, pass the projectId returned by list_projects to the tool you want to use.
Connect with Cursor
- Create or open Cursor’s MCP configuration file. Use
~/.cursor/mcp.jsonto make Qodex available in every workspace, or.cursor/mcp.jsonin a project for that project only. - Add the Qodex server, then save the file:
- In Cursor, open Customize and then MCP. Find Qodex and select Connect. Complete the Qodex sign-in in the browser when Cursor opens it.
- In Cursor Agent, ask:
Use the qodex whoami tool.A successful response confirms that the connection is ready.
/mcp.
Connect another coding agent
In an MCP-capable client, add a remote HTTP MCP server with the endpoint above. Use the client’s browser OAuth sign-in flow on its first Qodex tool call. This is a remote Qodex service; you do not need to run a local Qodex MCP process.Use a personal key for CI or headless automation
Use a personal key when the MCP client cannot open a browser, such as a CI runner.- In the relevant Qodex project, open Settings > MCP.
- Under Personal keys, enter a descriptive name such as
CI pipeline. - Choose Read only or Full access, then select Create key.
- Copy the key immediately. Qodex displays it only once.
- Configure your MCP client to send the key as an
Authorization: Bearer <key>header to the same/mcpendpoint.
Revoke a personal key
Open Settings > MCP, find the key under Personal keys, click Revoke, then click Revoke again in the inline confirmation. The key stops authorizing headless MCP clients immediately; update or remove the corresponding CI secret at the same time.Available tools
list_findings returns findings from testing and from code scans. Filter with source set to testing or code_scan; leave it out to get both. get_finding includes a code scan finding’s file location. Full-app security scan findings are not included. A finding in needs_review is a candidate an Autopilot run raised that still waits for a person to decide; it cannot be triaged through set_finding_status.
Qodex does not return raw environment variables, bearer tokens, cookies, request bodies, response bodies, headers, or logs through MCP. Open the Qodex web app when you need to inspect protected evidence.
Code graph
The code graph tools answer questions about the code of a repository connected to your Qodex project, such as “what does the billing module import” or “who calls chargeCard”. A code graph is a map of the repository’s files, symbols (functions, classes and methods) and how they connect: calls, imports and inheritance. Qodex builds it on its own servers, so nothing runs on your machine. Each call, import or inheritance link thatcode_callers, code_callees and code_path return comes with a tier (certain, likely or possible) and the evidence for it.
All ten tools are read only, so a read-only personal key can use them.
- Repository name. Pass
repoasorg/name, the namecode_reposlists. When your project connects one repository once per folder, the name isorg/name:<folder>. With one connected repository you can leaverepoout. - Freshness. Qodex rebuilds the graph on every push and once a day. A push or merge to the default branch queues a rebuild in the background, and pushes close together share one rebuild. A daily check rebuilds any graph that is missing, failed or a day old. Refreshing the repository in Qodex rebuilds it too. Every answer names the commit and build time it comes from, so you can tell when it is behind.
- Languages. TypeScript, TSX, JavaScript, Python, Go and Ruby. Framework support varies: routes are recognized for Express, Next.js, Django, FastAPI, Rails and Go net/http, and React components and their tests are recognized too.
- Location only. The tools return where code is and how it connects, never its source text. Open the file in your editor to read it.
- Long lists. A list holds at most 200 items, says when it was cut, and gives the total when it is known.
- Not ready yet. When a graph is still building or its last build failed, the tools say so in one sentence. Project admins also see the build error.
Example
In Claude Code, connected to a project that links the repositorynorthfield-school/fees-portal:
code_callers with {"symbol": "chargeCard"} and gets back (trimmed):
unknown.floor is true, some calls in the repository could not be resolved, so the list is a minimum, not the whole answer.
Recommended first prompt
Once connected, give your agent a bounded request such as:list_projects, list_findings, list_suites, run_suite, and get_run in that order.
Troubleshooting
Related
Run tests
Learn how saved scenarios and suites execute in Qodex.
Findings
Understand the findings that agents can inspect and triage.
Integrations
See every supported connection.