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

# MCP Sign-In and Access

> Approve an MCP client for one workspace, see what each access allows, and revoke a client.

An MCP client signs in to Agent Golf with OAuth in your browser. You approve the client for one workspace and select the permissions that it gets. The client then reads the data of that workspace, within your role and the permissions that you selected.

## Sign in

Each AI tool starts the sign-in in its own way. Each client page shows how. Then do these steps in the browser:

1. Sign in to Agent Golf, if you are not signed in.
2. On the **Connect an MCP Client** page, check the name of the client and the host that receives the access. Approve only a sign-in that you started.
3. In **Workspace**, select the workspace. The client reads the data of this workspace only.
4. Under **Permissions for This Client**, select each permission that the client can use. The list shows only the permissions that the client asks for and that your role has in the workspace. No permission is selected at first. See [Access](#access).
5. Select **Approve**. Approve is off until you select at least one permission. To stop, select **Deny**.

The sign-in request waits 10 minutes for your decision. After that, start the sign-in again in the client.

To approve, your dashboard sign-in must be less than 24 hours old. With an older sign-in, the page asks you to sign in again. Then select **Approve** again.

> [!WARNING]
>
> The client chose its own name. A sign-in that you did not start can come from someone who wants your data. Select
> **Deny**.

### Workspace

One sign-in gives access to one workspace. To use another workspace, sign in again in the client and select the other workspace.

## Access

The client asks for one or more kinds of access. Each kind of access matches one permission of your role. On the sign-in page, you select which of them the client gets:

| Access on the sign-in page | Permission | What the client can read |
| - | - | - |
| **Read your agent sessions** | **View Own Sessions** | Your sessions, their totals and events, and your activity report. |
| **Read the agent sessions of your team** | **View Team Sessions** | The totals and events of the sessions of other users, with `explain_session` and `get_session_events`. |
| **Read pull requests and their attribution** | **View Pull Requests and Repositories** | The pull requests, their CI, the sessions linked to them, and the rework links. |
| **Read the users of the workspace** | **View Team Activity** | The sessions, costs, and activity of all users of the workspace in lists and reports, as totals of the team. |
| **Read the roadmap and its work items** | **View Roadmap** | The roadmap of the workspace and its work items. Costs follow **View Team Activity**, and pull requests follow **View Pull Requests and Repositories**. |

When a tool needs a permission that you did not select, the tool says that it needs the permission. To add it, sign in again in the client and select it. A renewal of the token does not add a permission.

The [Tool Reference](https://docs.agent.golf/mcp/tools.md#permissions) shows which tools need each permission.

### How your role limits the access

The client never gets more access than your role. Two rules apply:

* **At approval.** The client gets only the permissions that you select. The page offers only the permissions that the client asks for and that your role has. When your role has none of them, the page says so, and you cannot approve for that workspace.
* **On each request.** The server checks your current role. When a role change removes a permission, the client loses that access at once. When the client next renews its token, the server ends the sign-in, and you must sign in again.

No access shows the protected content of a session, such as prompts and tool output, even when your role has **Reveal Team Session Content**. See [Data boundary](https://docs.agent.golf/mcp/overview.md#data-boundary).

`get_identity` shows the permissions that the sign-in has now.

## How long a sign-in lasts

The client gets a token for the Agent Golf MCP server only. The token does not work for the Agent Golf API or the dashboard. The client renews the token without a new sign-in. See [Sign-in and token lifetimes](https://docs.agent.golf/account/identity.md#sign-in-and-token-lifetimes).

A sign-in ends, and the client must sign in again, when one of these occurs:

* 30 days pass after the approval. A renewal does not move this end.
* You or an administrator revoke the client.
* You reset your Agent Golf password.
* An administrator removes you from the workspace.
* Your role no longer has a kind of access that the sign-in has.
* Your organization requires a second factor, and you did not set one up.

While remote MCP access is off for the workspace, each request and each renewal fails, but the sign-in does not end. See [Turn remote MCP access on or off](https://docs.agent.golf/mcp/administration.md#turn-remote-mcp-access-on-or-off).

## Revoke a client

Sign out in the AI tool to remove its token from your machine or account. Each client page shows how.

To end the access on the Agent Golf side, revoke the client in the dashboard. Its next request fails, and it must sign in again:

1. Open the **Account** page. The **MCP Clients** card lists the clients that you signed in. Each row shows the workspace, the access that you approved, the approval time, and the time when the access expires.
2. Select **Revoke** in the row of the client.
3. Select **Revoke Client** to confirm.

An administrator can also revoke the clients of all users of a workspace. See [Manage Remote MCP](https://docs.agent.golf/mcp/administration.md#revoke-the-clients-of-the-workspace).


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