🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

sphior-code-mcp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sphior-code-mcp

Official Model Context Protocol (MCP) server for SPHIOR CODE — surface security findings from your GitHub repos directly into Cursor, Claude Code, VS Code, Cline, Continue, Windsurf, Zed and any MCP-compatible AI coding assistant.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

sphior-code-mcp

Official Model Context Protocol (MCP) server for SPHIOR CODE — surface security findings from your GitHub repositories directly inside any MCP-compatible AI coding assistant.

npm version License: MIT

What this gives you

Your AI assistant can now answer questions like:

  • "What are the highest-severity vulnerabilities in my code right now?"
  • "Show me the fix for finding abc-123."
  • "Mark this SQL injection alert as resolved — I just fixed it."
  • "What's our overall security posture this month?"

…using live data from SPHIOR CODE's scanning engine (AI SAST + SCA powered by OSV.dev).

Supported clients

This is a standard MCP stdio server, so it works with any MCP-compatible client:

ClientConfig locationSetup
Cursor~/.cursor/mcp.jsonAdd MCP
Claude Code~/.claude.jsonclaude mcp add sphior-code -- npx sphior-code-mcp
VS Code~/.config/Code/User/settings.json (mcp.servers)Built-in MCP
GitHub Copilot (VS Code).vscode/mcp.jsonNative MCP
Cline (VS Code extension)~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.jsonSettings UI
Continue (VS Code extension)~/.continue/config.yamlmcpServers: section
Windsurf~/.codeium/windsurf/mcp_config.jsonSettings UI
Zed~/.config/zed/settings.json (context_servers)Native MCP
JetBrains AI Assistant (2024.3+)Settings → Tools → AI Assistant → MCPBuilt-in

Installation

# No install needed — use npx
npx -y sphior-code-mcp

# Or install globally
npm install -g sphior-code-mcp
sphior-code-mcp

Configuration

Set your API key from sphior.com/account/code/api-keys:

export SPHIOR_API_KEY=sk_live_xxxxxxxxxxxx

Environment variables

VariableRequiredDefaultDescription
SPHIOR_API_KEY✅ YesBearer token from your SPHIOR Code account
SPHIOR_API_BASENohttps://sphior.com/api/v1Override for self-hosted / regional deployments
SPHIOR_TIMEOUTNo30000Request timeout in ms (1000–300000)
SPHIOR_DEBUGNofalseEnable verbose logging to stderr

Example config (Cursor / Claude Code / VS Code style)

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

For GitHub Copilot in VS Code, use "servers" instead of "mcpServers":

{
  "servers": {
    "sphior-code": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "sphior-code-mcp"],
      "env": {
        "SPHIOR_API_KEY": "sk_live_xxxxxxxxxxxx"
      }
    }
  }
}

Tools exposed

ToolPurpose
list_findingsList vulnerabilities (filter by severity / status / limit)
get_findingFull details for one finding (CVSS, CWE, file path, fix hint)
get_security_summaryPosture overview (counts by severity, last scan, repos monitored)
get_fix_proposalAI-generated patch (code + explanation + post-fix CVSS)
resolve_findingMark as fixed
mark_false_positiveMark as not exploitable
health_checkVerify connection + auth

Resources exposed

  • sphior-code://summary — JSON snapshot of current posture
  • sphior-code://findings/{id} — full detail per finding (auto-listed for open findings)

Reliability

  • Exponential backoff retry on 5xx / network errors (3 attempts)
  • 30-second request timeout (configurable)
  • Graceful degradation — auth errors fail fast, server errors retry
  • Structured errors with actionable hints
  • stderr-only logging (stdout is reserved for MCP protocol)

Development

# In this directory
npm install
npm run build
SPHIOR_API_KEY=sk_test_xxx node bin/sphior-code-mcp.js
# Type a JSON-RPC request to test

License

MIT © SPHIOR Security

Keywords

mcp

FAQs

Package last updated on 14 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts