Set up your agent

This page is the short, practical version of Connect your agent (MCP): what to set up in each client, and how to check it worked. For which clients and model providers work today, with the status of each, see Models and clients.

Claude Code, Codex and GitHub Copilot sign in to ProofGit themselves, in your browser, so there is no token to create or paste. Claude on claude.ai and ChatGPT sign in the same way when you add ProofGit as a connector. The sign-in gives them read access only, to the repositories you can already read. For Cursor, scripts and CI, connect with an access token instead (section 3).

1. One command for all your agents

npx @bluenotelogic/harness proofgit --codex --copilot

Run it in a repository. It adds the fleet server, proofgit-fleet (every repository you can read), with no token in it:

  • for Claude Code, to the repository's .mcp.json;
  • with --codex, to ~/.codex/config.toml, where Codex may run every ProofGit tool without asking, because they all only read;
  • with --copilot, to ~/.copilot/mcp-config.json.

With --codex or --copilot it also installs two skills that teach the agent to search ProofGit first and to read cleanup plans. It needs Node.js 20 or later but no ProofMEM account, signs nothing in itself, and stores no credential. Each agent then signs in the first time it connects, as described in section 2. npx @bluenotelogic/harness doctor --proofgit checks what it wrote.

2. Or add the server yourself and sign in

The snippets below are the ones the forge itself shows. Open a paired repository's Sync Cockpit at /{owner}/{repo}/bnlgit and expand Connect your agent over MCP: the card there has your real endpoint already filled in, with a copy button beside each snippet. Here they are for a repository your-org/your-repo. The server name is proofgit- followed by the repository name, lower-cased, with every character other than a-z, 0-9, - and _ turned into - (and any leading or trailing - dropped), so My.Repo becomes proofgit-my-repo.

Claude Code

claude mcp add --transport http proofgit-your-repo https://app.proofgit.com/api/v1/repos/your-org/your-repo/bnlgit/mcp
claude mcp login proofgit-your-repo

The second command opens your browser: sign in to ProofGit and choose Authorize. Inside Claude Code, /mcp then Authenticate does the same.

Codex

codex mcp add proofgit-your-repo --url https://app.proofgit.com/api/v1/repos/your-org/your-repo/bnlgit/mcp
codex mcp login proofgit-your-repo

GitHub Copilot in VS Code

Add the server to ~/.copilot/mcp-config.json (on Windows, %USERPROFILE%\.copilot\mcp-config.json), or to a project's .mcp.json:

{
  "mcpServers": {
    "proofgit-your-repo": {
      "type": "http",
      "url": "https://app.proofgit.com/api/v1/repos/your-org/your-repo/bnlgit/mcp"
    }
  }
}

Then start a Copilot chat in Agent mode and send a message: Copilot starts the server inside that chat. Choose Allow when VS Code says the server wants to authenticate, and sign in in your browser. In Ask mode the model gets no MCP tools, so a chat there answers that the tools are not available.

Claude on claude.ai

Add ProofGit as a custom connector, with the fleet endpoint so that Claude can search every repository you can read:

https://app.proofgit.com/api/v1/bnlgit/mcp
  1. In Claude, open Customize → Connectors and choose Add custom connector.
  2. Name it, for example ProofGit, paste the endpoint and choose Add, then Connect.
  3. Sign in to ProofGit in the window that opens and choose Authorize.
  4. In a chat with the connector turned on, ask Claude to list your ProofGit repositories.

ChatGPT

  1. Open chatgpt.com/plugins ↗, choose + and then Add custom MCP server.
  2. Name it, for example ProofGit, paste the same fleet endpoint, and choose OAuth for authentication.
  3. Sign in to ProofGit when asked and choose Authorize.
  4. Start a new chat, type @, pick ProofGit, and ask it to list your ProofGit repositories.

Pick ProofGit with @: if ChatGPT can also read an open browser tab, it may answer from that tab without calling ProofGit. Which ChatGPT plans can add a custom MCP server is up to OpenAI.

The consent page for the Claude apps and ChatGPT names the address the sign-in returns to, and says the app will also see your username, name, email address and avatar, which it uses to show which account is connected. That does not widen what it can read.

What signing in allows

Every agent and app you sign in shares one authorization, ProofGit MCP, and it can only read: whatever an agent asks for, the forge grants read:repository and nothing more. To end it for all of them, revoke ProofGit MCP under Settings → Applications, in Authorized OAuth2 Applications. An agent that is still connected then asks you to sign in again; in Claude and ChatGPT, the connector asks you to reconnect.

3. Or connect with a token: Cursor, scripts and CI

Create an access token at Settings → Applications with read:repository scope. Every tool only reads, so do not give it write access. Treat the token like a password: anything holding it can read what you can read.

The snippets carry a placeholder, YOUR_PROOFGIT_TOKEN, where the token goes; Codex reads it from the PROOFGIT_TOKEN environment variable instead.

Cursor

Add it to .cursor/mcp.json:

{
  "mcpServers": {
    "proofgit-your-repo": {
      "url": "https://app.proofgit.com/api/v1/repos/your-org/your-repo/bnlgit/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_PROOFGIT_TOKEN"
      }
    }
  }
}

Claude Code or Codex with a token

On a machine without a browser, Claude Code and Codex can use a token too:

claude mcp add --transport http proofgit-your-repo https://app.proofgit.com/api/v1/repos/your-org/your-repo/bnlgit/mcp --header "Authorization: Bearer YOUR_PROOFGIT_TOKEN"
codex mcp add proofgit-your-repo --url https://app.proofgit.com/api/v1/repos/your-org/your-repo/bnlgit/mcp --bearer-token-env-var PROOFGIT_TOKEN

For Codex, set PROOFGIT_TOKEN to your token in the shell you start Codex from; the token never sits in Codex's config file. If you commit a .mcp.json, do not commit a real token in it.

4. Or search every repository at once

The fleet endpoint answers across every paired repository you can read. Its server name is proofgit-fleet, and the fleet dashboard at /-/bnlgit shows its card:

claude mcp add --transport http proofgit-fleet https://app.proofgit.com/api/v1/bnlgit/mcp
claude mcp login proofgit-fleet
codex mcp add proofgit-fleet --url https://app.proofgit.com/api/v1/bnlgit/mcp
codex mcp login proofgit-fleet

For Copilot, Cursor or a token, take the snippets above and swap in proofgit-fleet and https://app.proofgit.com/api/v1/bnlgit/mcp. The fleet server's tools are list_bnlgit_repos, search_bnlgit_hybrid, search_bnlgit_code, list_bnlgit_cleanup_plans and get_bnlgit_cleanup_plan; see the two servers.

5. Check it from a terminal

Before you debug a client's config, ask the server directly. With a token in PROOFGIT_TOKEN:

curl -s https://app.proofgit.com/api/v1/repos/your-org/your-repo/bnlgit/mcp \
  -H "Authorization: Bearer $PROOFGIT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

A working setup returns a JSON-RPC result listing the seven repo-scoped tools: fetch_bnlgit_overview, search_bnlgit_documentation, search_bnlgit_code, search_bnlgit_hybrid, map_bnlgit_topology, list_bnlgit_cleanup_plans and get_bnlgit_cleanup_plan. An error here is a token, scope or URL problem, not a client problem. Without a token, the server answers 401 with the address of its sign-in details, which is how an agent knows to sign in.

6. Tell the agent when to use it

It helps to tell the agent, in the repository's own instructions, when to use the server. Lines like these work in an AGENTS.md (read by Codex and other agents) or a CLAUDE.md (read by Claude Code); change the server name to yours:

## Code context (ProofGit)
- This repository is paired on ProofGit. Its MCP server is `proofgit-your-repo`.
- Before reading files to answer a question about how the code works, call
  `fetch_bnlgit_overview` once for orientation.
- Use `search_bnlgit_code` when you know a symbol or string, and
  `search_bnlgit_documentation` or `search_bnlgit_hybrid` when you know a concept.
- Before changing a file, call `map_bnlgit_topology` with its path to see what
  references it.
- Every result cites source lines at a recorded commit. Check its freshness:
  treat a stale or unverified result as a lead, and re-read the cited lines
  before you edit anything.

What each tool does, and why the results carry their own evidence, is in Choosing the right tool.

For agents reading these docs

A plain-text index of this documentation, one line per page, is at /llms.txt.

Something here wrong or missing? Mail hello@proofgit.com — these pages are the single public source of truth for ProofGit and we would rather fix them than leave you guessing.