For coding agents · MCP
Connect your coding agent
Cortex Architect is an MCP server. Connect a coding agent once and it can read your architecture, check a dependency before making it, and follow the plan it was asked to build.
What you need
- An organisation in Cortex Architect with at least one project. Start free if you do not have one.
- An access token. An admin makes one in Settings, under Access tokens. It starts with
cxa_and is shown once, so copy it then. A token can be read-only, so an agent can look and not change. - Your organisation’s address. It looks like
https://app.cortexagent.com/mcp/your-organisation.
The quickest way is to let the app write the command for you. When you make a token, the panel that shows it also shows the exact command or settings for your coding agent, with your address and the new token already filled in. Copy it from there and you are done.
Or set it up by hand
Every tool wants the same two facts, written its own way: the address, and the token in an
Authorization header. Put your own in place of YOUR_ORGANISATION and YOUR_TOKEN.
Claude Code
Run this once in a terminal. It then works in every folder.
claude mcp add --scope user --transport http cortex https://app.cortexagent.com/mcp/YOUR_ORGANISATION --header "Authorization: Bearer YOUR_TOKEN"
Cursor
Put this in ~/.cursor/mcp.json, so it works in every folder.
{
"mcpServers": {
"cortex": {
"url": "https://app.cortexagent.com/mcp/YOUR_ORGANISATION",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}
If the file already lists other servers, add "cortex" beside them.
VS Code (GitHub Copilot)
Run this once in a terminal.
code --add-mcp '{"name":"cortex","type":"http","url":"https://app.cortexagent.com/mcp/YOUR_ORGANISATION","headers":{"Authorization":"Bearer YOUR_TOKEN"}}'
On Windows PowerShell, keep the single quotes around the JSON.
Codex CLI
Add this to ~/.codex/config.toml.
[mcp_servers.cortex]
url = "https://app.cortexagent.com/mcp/YOUR_ORGANISATION"
http_headers = { "Authorization" = "Bearer YOUR_TOKEN" }
Gemini CLI
Run this once in a terminal. It then works in every folder.
gemini mcp add --scope user --transport http --header "Authorization: Bearer YOUR_TOKEN" cortex https://app.cortexagent.com/mcp/YOUR_ORGANISATION
Windsurf
Put this in ~/.codeium/windsurf/mcp_config.json.
{
"mcpServers": {
"cortex": {
"serverUrl": "https://app.cortexagent.com/mcp/YOUR_ORGANISATION",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}
If the file already lists other servers, add "cortex" beside them.
Cline
In Cline, open MCP Servers, then Configure, and add this to cline_mcp_settings.json.
{
"mcpServers": {
"cortex": {
"type": "streamableHttp",
"url": "https://app.cortexagent.com/mcp/YOUR_ORGANISATION",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}
If the file already lists other servers, add "cortex" beside them. The "type" line matters: without it Cline tries an older protocol.
Anything else
Any MCP client that speaks Streamable HTTP can connect with these two facts.
Address: https://app.cortexagent.com/mcp/YOUR_ORGANISATION
Header: Authorization: Bearer YOUR_TOKEN
What happens next
- One connection reaches every project in your organisation, so you set this up once and not for each code folder.
- The agent finds its own project. It lists your projects, picks the one that reads the repository it is working in, and asks you when none matches.
- A token opens one organisation. If you belong to two, connect each with its own token.
- What an agent changes is on the record. It shows on the canvas and in the history, marked as made by an agent.
If it does not connect
- “Sign in to continue” or a 401. The token is missing, mistyped or has been revoked. Check that the header reads
Authorization: Bearer cxa_…with one space afterBearer. - “Not found”. The address must name your organisation:
/mcp/your-organisation, not/mcpalone. - The tools that change things are missing. The token is read-only. An admin can make one that may edit.
In the MCP registry
Cortex Architect is listed in the official MCP registry
as com.cortexagent/architect. A client that installs servers from the registry will ask you for the same two
things: your organisation and your token.