# Connect your agent

Monton's MCP server is at `https://monton.dev/mcp`, and any MCP client can connect to it. The first time you connect a client, you sign in to Monton through it.

## Claude (web, Desktop, mobile) {#claude}

Follow these steps in Claude: on the web, in the desktop app, or in the mobile app.

1. Open Monton in Claude’s directory, then choose Connect.

   [Open Monton in Claude’s directory](https://claude.ai/directory/monton)

2. Sign in to Monton when Claude asks.

If the directory isn’t available, add Monton as a custom connector. On a Team or Enterprise plan, an owner adds Monton first, from the directory or as a custom connector.

1. Open Settings, then Connectors, and choose Add custom connector.

2. Name it Monton, and paste this URL.

   ```
   https://monton.dev/mcp
   ```

3. Sign in to Monton when Claude asks.

## Claude Code {#claude-code}

1. Run this command in a terminal.

   ```
   claude mcp add --scope user --transport http monton https://monton.dev/mcp
   ```

2. Start Claude Code, type `/mcp`, pick monton, and sign in to Monton.

Claude Code can also edit a workspace's docs as files with [the CLI](#cli).

## ChatGPT {#chatgpt}

1. In ChatGPT’s settings, open Apps (Connectors in older versions), then Advanced settings, and turn on developer mode.

2. Create an app named Monton with this URL. If ChatGPT asks how to sign in, pick OAuth.

   ```
   https://monton.dev/mcp
   ```

3. Sign in to Monton when ChatGPT asks.

4. In a new chat, open the + menu, choose Developer mode, and pick Monton.

## Codex and other MCP clients {#other-clients}

Codex, Cursor, OpenClaw and every other MCP client can sign in to Monton with OAuth. Make a token only for scripts and clients without OAuth.

1. In your client’s settings, add an MCP server with this URL.

   ```
   https://monton.dev/mcp
   ```

2. Sign in to Monton when your client asks.

3. If that sign-in fails, use your client’s device sign-in instead, where you approve a short code in Monton.

For scripts and clients without OAuth, use a token instead.

1. Create an agent on the Agents page, and copy its token.

   [Open the Agents page](https://monton.dev/agents)

2. In your client’s settings, add an MCP server with this URL.

   ```
   https://monton.dev/mcp
   ```

3. Send the token in this header.

   ```
   Authorization: Bearer <your token>
   ```

## The CLI {#cli}

With the `monton` command, coding agents such as Claude Code or Codex edit a workspace’s docs as files. For comments and the inbox, they also connect Monton as an MCP server, with the steps for their client.

1. Install it. It needs Node 24 or newer. To try it without installing, run `npx @monton/cli` wherever these steps say `monton`.

   ```
   npm install -g @monton/cli
   ```

2. Sign in.

   ```
   monton login
   ```

3. Copy a workspace to a folder.

   ```
   monton clone <workspace>
   ```

4. Ask your agent to read the guide for agents.

   ```
   monton help agents
   ```

The [CLI reference](https://monton.dev/docs/cli) describes every command.

## Choose which workspaces an agent can use {#workspace-access}

Agents inherit your access by default, as an editor at most. To limit an agent to specific workspaces, open **Agents** in your account menu. Choose **Selected workspaces** when you create a token agent, or open **Workspace access** on an existing agent and save your choices. Leave all workspaces unchecked to give the agent access to none. Choose **Inherit my access** to return to your current and future workspaces. If you lose access to a workspace, your agent loses access to it too.

An agent with selected workspaces can't create workspaces, add or invite people, or share folders or docs. If you connect with OAuth, your choice applies to every connection that uses that agent.

## After you connect {#after-you-connect}

To check that everything works, ask your agent:

> Write a document named Workshop plan in my Monton workspace for a 30-minute workshop where six teammates learn to write clearer project briefs. Include a five-minute introduction, three exercises lasting twenty minutes in total, and a five-minute discussion. Give me a link to the document.

To teach your agent how we work in Monton, add a [skill](https://monton.dev/docs/working-with-agents#skills). If something goes wrong, see [Troubleshooting](https://monton.dev/docs/troubleshooting).
