Aptori MCP Server Setup & Integration Guide
The Aptori Model Context Protocol (MCP) server enables AI development tools and assistants to seamlessly query issues and projects, summarize runs, and scan dependencies directly within your preferred development environment.
Once connected, you can ask your AI chat assistant tasks such as:
- "List my Aptori projects"
- "Show the latest findings for this project"
- "Summarize the latest Aptori runs"
- "Scan this requirements.txt with Aptori" (and attach or paste the file content)
Configuration Overview
Instructions to integrate various AI development tools are listed below. For any AI client tool, the following common notes are applicable.
- Prerequisites:
- An active Aptori user account associated with an organization.
- Server URL:
- If using the Aptori SaaS Platform, the MCP server URL is
https://app.aptori.dev/api/v1/platform-mcp. This is URL is used in example configurations below. - If using a self-hosted Aptori Platform, you must use the hostname of your Aptori Platform. In the example configurations below, substitute the hostname of your Aptori Platform into the MCP server URL, e.g.
https://{{aptori-hostname}}/api/v1/platform-mcp.
- If using the Aptori SaaS Platform, the MCP server URL is
Sign-in and Access Control
When connecting the Aptori MCP server, you will authenticate with the Aptori Platform web UI and a Platfork Key will be created for the client.
- Session Duration: Active sign-in tokens last 30 days. When expired, authentication will automatically prompt through your browser.
- Disconnection: To revoke access tokens, navigate to Settings → Platform Keys inside the Aptori Platform web UI. Revoke the "MCP MCP CLI Proxy" token.
VS Code (GitHub Copilot)
Integration with VS Code allows GitHub Copilot Chat in Agent mode to interface directly with Aptori.
Setup Instructions
-
Create a configuration file at
.vscode/mcp.jsonin your project workspace, or run MCP: Open User Configuration from the Command Palette to apply settings globally across all projects:{ "servers": { "aptori": { "type": "http", "url": "https://app.aptori.dev/api/v1/platform-mcp" } } } -
Open the Command Palette, run MCP: List Servers, select
aptori, and initiate the server connection. - Grant VS Code permission to authenticate, complete the sign-in prompt in your web browser, and select Allow.
- Open Copilot Chat in Agent mode and verify that the Aptori tools are listed.
Codex
The Codex CLI, IDE extension, and desktop application share a single configuration.
Setup Instructions
-
Append the MCP server configuration to your global Codex config file located at
~/.codex/config.toml:[mcp_servers.aptori] url = "https://app.aptori.dev/api/v1/platform-mcp" -
Run the authentication command in your terminal:
codex mcp login aptori -
Complete the web authentication flow in the browser window and click Allow.
- Verify server connectivity by executing
codex mcp listin your shell or typing/mcpinside the Codex interface.
Antigravity App
Antigravity App can connect to the Aptori MCP server using mcp-remote.
Prerequisites
- Node.js version 18 or later (
node --version).
Setup Instructions
- Open
~/.gemini/config/mcp_config.json -
Add the following entry:
{ "mcpServers": { "aptori": { "command": "/opt/homebrew/bin/npx", "args": ["-y", "mcp-remote@0.17.1", "https://app.aptori.dev/api/v1/platform-mcp"], "env": { "PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin" } } } } -
Restart Antigravity.
- Complete the browser login flow and click Allow.
Troubleshooting & Utility
| Problem | Fix |
|---|---|
npx not found (common on macOS with nvm) |
Set command to the absolute binary path output by which npx, and add "env": {"PATH": "<folder of npx>:/usr/local/bin:/usr/bin:/bin"} |
Windows fails to execute npx |
Change command to cmd and prepend "/c", "npx" to args |
To force a fresh authentication session:
- Quit Antigravity
- Remove the
~/.mcp-authdirectory - Launch Antigravity
Cursor
Cursor requires mcp-remote as its default OAuth callback uses a cursor:// protocol handler, which Aptori does not accept.
Prerequisites
- Node.js version 18 or later (
node --version).
Setup Instructions
- Open
~/.cursor/mcp.jsonfor global access or.cursor/mcp.jsonfor workspace-specific access. -
Configure the server definition:
{ "mcpServers": { "aptori": { "command": "npx", "args": ["-y", "mcp-remote@0.17.1", "https://app.aptori.dev/api/v1/platform-mcp"] } } } -
Restart Cursor.
- Authenticate via the browser prompt and select Allow.
Windows Configuration
If running Cursor on Windows, use the cmd wrapper variant if npx fails to launch:
{
"mcpServers": {
"aptori": {
"command": "cmd",
"args": ["/c", "npx", "-y", "mcp-remote@0.17.1", "https://app.aptori.dev/api/v1/platform-mcp"]
}
}
}
Troubleshooting & Utility
| Problem | Fix |
|---|---|
npx not found (common on macOS with nvm) |
Set command to the path from which npx, and supply "env": {"PATH": "<folder of npx>:/usr/local/bin:/usr/bin:/bin"} |
Windows fails to launch npx |
Apply the Windows cmd configuration structure detailed above |
To force a fresh authentication session:
- Quit Cursor
- Remove the
~/.mcp-authdirectory - Launch Cursor
Claude Code
-
Add the HTTP transport endpoint:
claude mcp add --transport http aptori https://app.aptori.dev/api/v1/platform-mcp -
Inside Claude Code, run
/mcp, selectaptori, and initiate authentication. - Complete sign-in within the browser window by selecting Allow.
To share configuration across a repository, commit a .mcp.json file to the root of your project:
```json
{
"mcpServers": {
"aptori": {
"type": "http",
"url": "https://app.aptori.dev/api/v1/platform-mcp"
}
}
}
```
Troubleshooting & Utility
| Problem | Fix |
|---|---|
npx not found (common on macOS with nvm) |
Set command to the output of which npx, and add "env": {"PATH": "<folder of npx>:/usr/local/bin:/usr/bin:/bin"} |
Windows cannot launch npx |
Set command to cmd and prepend "/c", "npx" to args |
Claude Desktop
Claude Desktop connects via mcp-remote to manage browser sign-in.
Prerequisites
- Node.js version 18 or later.
Setup Instructions
- Open Settings → Developer → Edit Config (
claude_desktop_config.json). -
Add the
aptoriserver entry intomcpServers:{ "mcpServers": { "aptori": { "command": "npx", "args": ["-y", "mcp-remote@0.17.1", "https://app.aptori.dev/api/v1/platform-mcp"] } } } -
Quit Claude Desktop completely and launch it again.
- Authorize access in the browser when prompted by clicking Allow.
Troubleshooting & Utility
| Problem | Fix |
|---|---|
npx not found (common on macOS with nvm) |
Set command to the output of which npx, and add "env": {"PATH": "<folder of npx>:/usr/local/bin:/usr/bin:/bin"} |
Windows cannot launch npx |
Set command to cmd and prepend "/c", "npx" to args |
Log File Location (macOS): ~/Library/Logs/Claude/mcp-server-aptori.log
To clear token state when using mcp-remote:
- Quit Claude Desktop
- Remove the
~/.mcp-authfolder - Restart the Claude Desktop.