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

# Claude Code setup

> Connect a Claude Code agent to Fortress over remote HTTP MCP.

Use Claude Code when the agent runs in a terminal and should use Fortress across local projects.

## Generate the setup snippet

1. Open **Agents** in Fortress.
2. Create or rotate an agent.
3. Choose **Claude Code** as the runtime.
4. Copy the generated command.

The generated command follows this shape:

```bash theme={"theme":"github-dark"}
claude mcp add --transport http --scope user fortress-<agent> 'https://api.fortressproductivity.com/mcp?agent_id=<agent-id>' --header 'Authorization: Bearer ft_<token>'
```

`--scope user` makes the Fortress server available across projects for the current machine. Use a separate Fortress agent if another Claude Code profile should have different permissions.

## Verify

Inside Claude Code, run:

```text theme={"theme":"github-dark"}
/mcp
```

Then ask Claude to read `fortress://workspace/overview`.

## Notes

* Keep the generated server key, such as `fortress-claude-code-local`, unique per agent identity.
* If you need project-only access, change the scope before running the command.
* If a command fails in the shell, confirm the MCP URL is quoted. Fortress setup URLs include a query parameter.

See Anthropic's [Claude Code MCP documentation](https://code.claude.com/docs/en/mcp).
