Docs/Coding agents & MCP
#

Coding agents & MCP

Connect Claude, Claude Code or any MCP client to Cofactor so your agent can run tests and read results.

Connect my coding agent to Cofactor

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.

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

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

  3. 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-server and /.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.

bash
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

SymptomWhat to check
The client says the URL is invalidCopy the URL again from the Settings, Coding agents (MCP) page.
Your agent sees the wrong dataYou picked a different organization during sign-in. Connect again and pick the right one.

Go deeper