SPHIOR
SPHIOR Docs · MCP

AI Tool Integration (MCP)

Connect SPHIOR CODE to Cursor, Claude Code, VS Code, JetBrains and any MCP-compatible agent. SPHIOR finds vulnerabilities deterministically; your own AI applies the fix. Your source code never leaves your machine.

Get your API key

Issue an API key under API keys in SPHIOR CODE settings. Replace sk_live_YOUR_API_KEY below with your key.

Open SPHIOR CODE

Connect your tool

Pick your tool. Each one takes the same server; only where you add it differs.

Claude Code

Run in your terminal:

terminal
claude mcp add --scope user --env SPHIOR_API_KEY=sk_live_YOUR_API_KEY --transport stdio sphior-code -- npx -y sphior-code-mcp

Or add it to .mcp.json:

.mcp.json
{
  "mcpServers": {
    "sphior-code": {
      "command": "npx",
      "args": ["-y", "sphior-code-mcp"],
      "env": { "SPHIOR_API_KEY": "${SPHIOR_API_KEY}" }
    }
  }
}

.mcp.json is shared with your repository, so it reads the key from the SPHIOR_API_KEY environment variable instead of storing it.

Check: claude mcp list · /mcp

Cursor

Use Install in SPHIOR CODE settings to add it with one link. To add it by hand, use:

~/.cursor/mcp.json
{
  "mcpServers": {
    "sphior-code": {
      "command": "npx",
      "args": ["-y", "sphior-code-mcp"],
      "env": { "SPHIOR_API_KEY": "sk_live_YOUR_API_KEY" }
    }
  }
}

Check: Customize lists the server as enabled. Logs are under MCP Logs in the Output panel.

VS Code · GitHub Copilot

Use Install in SPHIOR CODE settings to add it with one link. To add it by hand, use:

.vscode/mcp.json
{
  "inputs": [
    { "type": "promptString", "id": "sphior-api-key", "description": "SPHIOR API Key", "password": true }
  ],
  "servers": {
    "sphior-code": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "sphior-code-mcp"],
      "env": { "SPHIOR_API_KEY": "${input:sphior-api-key}" }
    }
  }
}

VS Code uses servers as the top-level key and asks for the key on first start.

Check: Run MCP: List Servers from the Command Palette.

Other tools

OpenAI Codex

Run in your terminal:

terminal
codex mcp add sphior-code --env SPHIOR_API_KEY=sk_live_YOUR_API_KEY -- npx -y sphior-code-mcp

Or add it to ~/.codex/config.toml:

~/.codex/config.toml
[mcp_servers.sphior-code]
command = "npx"
args = ["-y", "sphior-code-mcp"]

[mcp_servers.sphior-code.env]
SPHIOR_API_KEY = "sk_live_YOUR_API_KEY"

Check: codex mcp list · /mcp

Gemini CLI

Add it to ~/.gemini/settings.json:

~/.gemini/settings.json
{
  "mcpServers": {
    "sphior-code": {
      "command": "npx",
      "args": ["-y", "sphior-code-mcp"],
      "env": { "SPHIOR_API_KEY": "sk_live_YOUR_API_KEY" }
    }
  }
}

Check: gemini mcp list · /mcp

Zed

Add it to settings.json:

settings.json
{
  "context_servers": {
    "sphior-code": {
      "command": "npx",
      "args": ["-y", "sphior-code-mcp"],
      "env": { "SPHIOR_API_KEY": "sk_live_YOUR_API_KEY" }
    }
  }
}

Check: Under Settings → AI → MCP Servers, the dot next to sphior-code turns green.

Windsurf · Devin Desktop

Add it to ~/.config/devin/mcp_config.json:

~/.config/devin/mcp_config.json
{
  "mcpServers": {
    "sphior-code": {
      "command": "npx",
      "args": ["-y", "sphior-code-mcp"],
      "env": { "SPHIOR_API_KEY": "sk_live_YOUR_API_KEY" }
    }
  }
}

Check: Customize → MCPs lists sphior-code as on.

JetBrains AI Assistant

Open Settings | Tools | AI Assistant | Model Context Protocol (MCP), click Add, choose STDIO and paste:

MCP · STDIO
{
  "mcpServers": {
    "sphior-code": {
      "command": "npx",
      "args": ["-y", "sphior-code-mcp"],
      "env": { "SPHIOR_API_KEY": "sk_live_YOUR_API_KEY" }
    }
  }
}

Check: The Status column shows the connection. Click its icon to see the tools.

Cline

Open MCP Servers → Configure → Configure MCP Servers and add to cline_mcp_settings.json:

cline_mcp_settings.json
{
  "mcpServers": {
    "sphior-code": {
      "command": "npx",
      "args": ["-y", "sphior-code-mcp"],
      "env": { "SPHIOR_API_KEY": "sk_live_YOUR_API_KEY" }
    }
  }
}

Check: The SPHIOR CODE tools appear in the MCP Servers panel.

Available tools

list_findingsList open findings across your repositories, filtered by severity or status.
get_findingFetch one finding in full: CVSS, CWE, location and remediation.
get_fix_contextReturn the context your agent needs to fix findings. No source code is sent.
resolve_findingMark a finding as resolved after the fix.
mark_false_positiveRecord a finding as a false positive, with a reason.
get_security_summaryCounts by severity, last scan time and monitored repositories.
verify_evidenceReturn tamper-evident scan records with a verifiable SHA-256 manifest.
health_checkReport the server mode and whether SPHIOR is reachable.

Ask your agent, e.g. "List my critical SPHIOR findings and fix the top one." It calls these tools automatically.

Data boundary

SPHIOR never transmits your source code through MCP. Findings and deterministic remediation guidance are returned; your agent reads the actual code from your local workspace and applies the fix, with a human reviewing before merge.