Skip to content

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.

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

  1. Create a configuration file at .vscode/mcp.json in 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"
        }
      }
    }
    
  2. Open the Command Palette, run MCP: List Servers, select aptori, and initiate the server connection.

  3. Grant VS Code permission to authenticate, complete the sign-in prompt in your web browser, and select Allow.
  4. 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

  1. 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"
    
  2. Run the authentication command in your terminal:

    codex mcp login aptori
    
  3. Complete the web authentication flow in the browser window and click Allow.

  4. Verify server connectivity by executing codex mcp list in your shell or typing /mcp inside 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

  1. Open ~/.gemini/config/mcp_config.json
  2. 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"
          }
        }
      }
    }
    
  3. Restart Antigravity.

  4. 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:

  1. Quit Antigravity
  2. Remove the ~/.mcp-auth directory
  3. 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

  1. Open ~/.cursor/mcp.json for global access or .cursor/mcp.json for workspace-specific access.
  2. Configure the server definition:

    {
      "mcpServers": {
        "aptori": {
          "command": "npx",
          "args": ["-y", "mcp-remote@0.17.1", "https://app.aptori.dev/api/v1/platform-mcp"]
        }
      }
    }
    
  3. Restart Cursor.

  4. 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:

  1. Quit Cursor
  2. Remove the ~/.mcp-auth directory
  3. Launch Cursor

Claude Code

  1. Add the HTTP transport endpoint:

    claude mcp add --transport http aptori https://app.aptori.dev/api/v1/platform-mcp
    
  2. Inside Claude Code, run /mcp, select aptori, and initiate authentication.

  3. 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

  1. Open Settings → Developer → Edit Config (claude_desktop_config.json).
  2. Add the aptori server entry into mcpServers:

    {
      "mcpServers": {
        "aptori": {
          "command": "npx",
          "args": ["-y", "mcp-remote@0.17.1", "https://app.aptori.dev/api/v1/platform-mcp"]
        }
      }
    }
    
  3. Quit Claude Desktop completely and launch it again.

  4. 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:

  1. Quit Claude Desktop
  2. Remove the ~/.mcp-auth folder
  3. Restart the Claude Desktop.