> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agent.golf/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect an AI Tool with MCP

> The Agent Golf MCP server lets an AI tool read your costs, sessions, pull requests, and rework with read-only tools.

The Agent Golf MCP server lets an AI tool, for example Claude Code, Codex, Cursor, or ChatGPT, read your Agent Golf data. The AI tool can then answer questions such as "Which of my sessions cost the most this week?" or "Why did CI cost so much on this pull request?". Server URL:

```text theme={null}
https://mcp.agent.golf/mcp
```

* **One URL, no key.** The AI tool connects to the URL over HTTP. You sign in with your Agent Golf account in a browser. The AI tool never sees your password, and you copy no token or key.
* **One workspace.** At sign-in, you select one workspace. The AI tool reads only the data of that workspace.
* **Read-only.** Each tool only reads. No tool changes data in Agent Golf, GitHub, or your repositories.
* **Your access, no more.** The AI tool sees only the data that the dashboard shows you. Your role and the access that you approve set the limit. See [Sign-In and Access](https://docs.agent.golf/mcp/access.md).
* **On by default.** Remote MCP access is on for each workspace. An administrator can turn it off. See [Manage Remote MCP](https://docs.agent.golf/mcp/administration.md).

To start, see the [Quickstart](https://docs.agent.golf/mcp/quickstart.md).

## Supported AI tools

> [card] [Claude Code](https://docs.agent.golf/mcp/claude-code.md)
>
> The Agent Golf plugin, or `claude mcp add`.

> [card] [Codex](https://docs.agent.golf/mcp/codex.md)
>
> The Agent Golf plugin, or `codex mcp add`.

> [card] [omp](https://docs.agent.golf/mcp/omp.md)
>
> The Agent Golf plugin, or `mcp.json`.

> [card] [Cursor](https://docs.agent.golf/mcp/cursor.md)
>
> `mcp.json` of Cursor.

> [card] [VS Code](https://docs.agent.golf/mcp/vscode.md)
>
> `mcp.json` of VS Code, for GitHub Copilot.

> [card] [Claude and Claude Desktop](https://docs.agent.golf/mcp/claude.md)
>
> A custom connector.

> [card] [ChatGPT](https://docs.agent.golf/mcp/chatgpt.md)
>
> A custom MCP server.

Another AI tool can connect when it supports these: remote MCP servers over streamable HTTP, MCP protocol version 2025-11-25 or later, and OAuth sign-in with dynamic client registration or a client ID metadata document. Add only the server URL. Do not add a token or headers. The server refuses a request from a web page on another site, so an AI tool cannot call it from a browser page.

## What the tools read

The [Tool Reference](https://docs.agent.golf/mcp/tools.md) lists the tools of the server, with their inputs and results.

| Tool | Answers |
| - | - |
| `get_identity` | Which workspace and permissions does this sign-in have? |
| `get_activity_report` | How do spend, tool failures, cache use, and cycle time trend, for my work or for my team? |
| `find_pull_requests` | Which pull requests cost the most? |
| `explain_pull_request` | What did this pull request cost, is its CI unusual, and which sessions worked on it? |
| `find_problem_sessions` | Which sessions cost the most, used the most tokens, or had the most tool failures? |
| `explain_session` | Why did this session go badly? |
| `get_session_events` | What happened around this point of a session? |
| `find_requests` | Which model requests cost the most or ran last, in a window or in one session? |
| `list_rework_hotspots` | Where in the code do later pull requests redo the work of earlier ones? |
| `explain_rework` | Which pull-request pairs caused the rework in this repository, folder, file, or pull request? |
| `get_roadmap` | Where does the planned and unplanned spend go, by initiative, project, and priority? |
| `explain_work_item` | What is in this initiative, project, or issue, and what did it cost? |
| `find_models` | What does a model cost, and how large is its context? |

## Data boundary

The server reads only the data that Agent Golf already keeps in the cloud. It cannot reach your uplink instances, your machine, or your repositories.

The tools return counts, costs, tokens, times, models, tool names, session titles that the harness generated, pull-request titles, numbers, and links, and the titles, keys, and links of work items. No tool returns:

* The protected content of a session, such as prompts, model responses, tool inputs, and tool output.
* Raw telemetry or credentials.
* The body of a pull request.
* A user name, an email address, or a user ID.

The AI tool sends the results to its model. Titles in the results are data. The server tells the AI tool not to follow them as instructions.

For the data that Agent Golf keeps and the data that stays in your network, see [What Leaves Your Network](https://docs.agent.golf/getting-started/data-boundary.md).

## Local transcripts

The remote server cannot read files on your machine. The [`agentgolf mcp`](https://docs.agent.golf/cli/commands#agentgolf-mcp) command of the CLI runs a local MCP server with the same tools. It uses the workspace of your `agentgolf login`. It also has [`read_local_session`](https://docs.agent.golf/mcp/tools#read_local_session). This tool reads a part of a local Claude Code, Codex, or GitHub Copilot CLI transcript on your machine. It sends nothing to Agent Golf. VS Code Copilot Chat sessions have no local transcript that the tool reads.

Add the local server to the AI tool next to the remote server when you need local transcripts. Each client page shows how.

The local server needs these CLI versions. Run `agentgolf --version` to see your version.

| Feature | CLI version |
| - | - |
| `agentgolf mcp` | 0.1.5 or later. |
| `read_local_session` with Claude Code and Codex transcripts | 0.1.6 or later. In Claude Code, 0.1.7 or later. |
| The `tool_call_id` input of `read_local_session` | 0.1.7 or later. |
| GitHub Copilot CLI transcripts | 0.1.9 or later. |
| `get_roadmap`, `explain_work_item`, `find_requests`, `find_models`, and the `1d` window | 0.1.9 or later. |

Remote MCP access does not apply to `agentgolf mcp`. When an administrator turns off remote MCP access, `agentgolf mcp` continues to work.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.