Coding agents & MCP
Connect Claude, Claude Code or any MCP client to Cofactor so your agent can run tests and read results.
Connect your coding agent to Cofactor over MCP, and it can use your organization's tests and results. You sign in with OAuth, so there is no API key to manage.
Connect your agent
The Settings, Coding agents (MCP) page has the details for each client. Pick the one you use.
-
For Claude.ai, open its connector settings, select Add custom connector, and paste the URL from the Claude.ai tab. Sign in to Cofactor and pick the organization Claude can use.
-
For Claude Code, run these two commands, shown on the Claude Code tab.
text/plugin marketplace add TreebeardHQ/cofactor-plugins /plugin install cofactor@cofactor-plugins
The first tool call opens a browser for OAuth. After you approve it, the plugin stays connected.
-
For any other MCP client, add the URL from the Other clients tab as a Streamable HTTP MCP server. Cofactor supports OAuth 2.1 with PKCE and dynamic client registration, and serves its discovery documents at
/.well-known/oauth-authorization-serverand/.well-known/oauth-protected-resource.
Install from the command line
cofactor install registers a local Cofactor MCP server with the coding agents on your machine. See the Quickstart.
cofactor install --all-detected cofactor install --target cursor
--all-detected registers the server for every coding agent it finds. It also installs the Cofactor skills for the agents that support them, which excludes Claude Desktop and Windsurf. --target registers the server for one agent. The targets are claude-desktop, claude-code, cursor, windsurf, opencode, codex and copilot. In a terminal, cofactor install alone lets you pick one.
Check it worked
Ask your agent which Cofactor tools it has, or ask it to list your recent test runs. It answers from the organization you picked.
Fix a problem
| Symptom | What to check |
|---|---|
| The client says the URL is invalid | Copy the URL again from the Settings, Coding agents (MCP) page. |
| Your agent sees the wrong data | You picked a different organization during sign-in. Connect again and pick the right one. |
Go deeper
- Reference: MCP workflow steps, CLI commands