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

# Connect your agent

> Add the hosted Flowmaps MCP server to Claude Code, VS Code, Zed or Codex, sign in, and choose which workspaces your agent reads, so it can check flows before it changes code.

Flowmaps serves your flows to coding agents over the Model Context Protocol (MCP). Once connected, an agent can find the flow for an endpoint, read it step by step with its cited lines, and ask which flows a file change touches before it edits anything. The server is at `https://mcp.flowmaps.ai/mcp`. It's read-only, and it answers as you: your agent sees the repos your linked GitHub account can read, in the workspaces you choose.

## Before you start

* A Flowmaps account with at least one mapped repo. See the [Quickstart](https://docs.flowmaps.ai/quickstart.md).
* Your GitHub account linked in Flowmaps (**Repos › Add a repo › Connect GitHub**). Without it, every tool answers with a reminder to link it, because Flowmaps can't tell which repos you can read.
* A coding agent that can sign in to the server: [Claude Code](https://claude.com/claude-code), [VS Code](https://code.visualstudio.com) (stable, with Copilot's agent mode), [Zed](https://zed.dev) or [Codex](https://developers.openai.com/codex). claude.ai connects too.

## Add the server and sign in

The **MCP** page in Flowmaps shows the Claude Code command with a **Copy** button. Every client uses the same server URL, `https://mcp.flowmaps.ai/mcp`, and signs in with your Flowmaps account: Google, GitHub or a code by email, the same method you use for the app.

> [tab] Claude Code
>
> Run this once, from any folder. It adds Flowmaps for your user, so it's available in every project on this machine:
>
> ```bash theme={null}
> claude mcp add --transport http --scope user flowmaps https://mcp.flowmaps.ai/mcp
> ```
>
> To share the server with everyone who works in a repo instead, run it from the repo's root with `--scope project`. Claude Code writes it to the repo's `.mcp.json`, which you can commit. Each person still signs in with their own Flowmaps account, so each sees only the repos their own GitHub account can read.
>
> Then sign in:
>
> 1. Run `claude`, then type `/mcp`.
> 2. Choose **flowmaps**, then **Authenticate**. Claude Code opens your browser.
> 3. Sign in with your Flowmaps account. When the browser says you're done, go back to Claude Code. It keeps you signed in after that.

> [tab] VS Code
>
> Add Flowmaps to `.vscode/mcp.json` in your project (create the file if it isn't there):
>
> ```json .vscode/mcp.json theme={null}
> {
>   "servers": {
>     "flowmaps": { "type": "http", "url": "https://mcp.flowmaps.ai/mcp" }
>   }
> }
> ```
>
> Then sign in:
>
> 1. In `mcp.json`, choose **Start** above `flowmaps`, or run **MCP: List Servers** from the Command Palette and start it there.
> 2. When VS Code asks to authenticate, allow it. It opens your browser.
> 3. Sign in with your Flowmaps account, then go back to VS Code. Flowmaps' tools appear in Copilot Chat's agent mode.

> [tab] Zed
>
> Add Flowmaps under `context_servers` in your Zed `settings.json`:
>
> ```json settings.json theme={null}
> "context_servers": {
>   "flowmaps": { "url": "https://mcp.flowmaps.ai/mcp" }
> }
> ```
>
> Then sign in:
>
> 1. Open Zed's MCP server settings: in the Agent Panel, open its settings.
> 2. **flowmaps** shows that it needs authentication. Choose **Authenticate**. Zed opens your browser.
> 3. Sign in with your Flowmaps account, then go back to Zed.
>
> To sign in again later, choose **Log Out** on **flowmaps**, then **Authenticate**.

> [tab] Codex
>
> Update Codex first: signing in to Flowmaps needs a release from August 2026 or later. Then run this in your terminal:
>
> ```bash theme={null}
> codex mcp add flowmaps --url https://mcp.flowmaps.ai/mcp
> ```
>
> Codex opens your browser to sign in. Sign in with your Flowmaps account, then go back to the terminal; Codex keeps you signed in after that. If the browser doesn't open, or to sign in again later, run `codex mcp login flowmaps`.

![The MCP page showing the claude mcp add command, a list of workspaces with checkboxes, and a table of tools](https://mintcdn.com/flowmaps/Laxd03p6_qALyN3o/images/mcp-light.png?fit=max\&auto=format\&n=Laxd03p6_qALyN3o\&q=85\&s=20950dd54e8fc074ad23e4741e9f2ebd)

The MCP page: the command to add Flowmaps, the workspaces your agent reads, and its tools.

To check it works, ask your agent something like "Use Flowmaps to list my repos." It should call `list_repos` and name your mapped repos.

## Choose which workspaces your agent reads

Your agent reads the workspaces ticked under **Workspaces your agent reads** on the **MCP** page. The list is grouped by account, with team accounts marked **Team**, and shows how many are ticked.

1. Tick the workspaces you want your agent to read. At least one must be ticked.
2. Choose **Save**.

The server URL is the same for every workspace; each person ticks their own. A workspace created later starts unticked, so tick it when you want your agent to see it. If you leave a team, its workspaces drop out of your agent's reach straight away.

### Several workspaces and accounts

With more than one workspace ticked, perhaps across several accounts, every answer names the `workspace`, `account` and `workspaceId` it came from. A repo that's in two of your ticked workspaces is answered once for each: list answers label each item, and other answers come back under `answers`. To ask about one workspace only, every tool takes an optional `workspace` input: its `workspaceId`, or its name when no other workspace you read has the same one. See [MCP tools](https://docs.flowmaps.ai/agents/tools.md#the-workspace-input).

## What your agent can do

The hosted server's tools only read: they find, list and fetch flows, their history, which flows touch a file, external dependencies, pending vendor names and a run's status. Your agent can't start maps, change settings or decide vendors; those happen in the app. The **MCP** page lists the tools with what each does, and [MCP tools](https://docs.flowmaps.ai/agents/tools.md) documents their inputs and answers.

There's a limit on how many tool calls each person can have running at once; a call past it is refused until one finishes.

## Other MCP clients

The hosted server accepts sign-ins from Claude Code, claude.ai, VS Code (stable; not VS Code Insiders), Zed and Codex. Cursor, Windsurf and VS Code Insiders can't complete its sign-in yet.

## Troubleshooting

> [accordion] Every tool says to link my GitHub account
>
> Open Flowmaps, go to **Repos**, choose **Add a repo** and then **Connect GitHub**. Once your GitHub account is linked, try the tool again.

> [accordion] A repo I expect is missing
>
> Check that its workspace is ticked on the **MCP** page and saved, and that your GitHub account can read the repo.

> [accordion] My agent says the server needs authentication
>
> Sign in again: in Claude Code, run `/mcp`, choose **flowmaps** and **Authenticate**; in Codex, run `codex mcp login flowmaps`; in Zed, choose **Log Out** on **flowmaps** in the Agent Panel's settings, then **Authenticate**; in VS Code, restart the server and accept the sign-in prompt.

## Next steps

> [card] [MCP tools](https://docs.flowmaps.ai/agents/tools.md)
>
> Every tool, its inputs and what it returns.

> [card] [Recipes](https://docs.flowmaps.ai/agents/recipes.md)
>
> Ways to use Flowmaps from your agent, and a snippet for CLAUDE.md.


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