Sphior Code Mcp

io.github.ToraastrtaPublished by GitHub account Toraastrtav1.1.6Updated Oct 24, 2026

Deterministic SAST/SCA findings + fix guidance for your AI agent. Runs locally, no account needed.

VerifiedSTDIODesktop onlyDeveloper ToolsSecurity & Monitoring

Overview

AI-generated overview

A local MCP server that scans your workspace for security issues with a deterministic SAST/SCA engine and gives your assistant fix guidance.

What you can do
Scan the workspace for secrets, CWE patterns and vulnerable dependencies, and get remediation guidance with locations, steps and references (get_fix_context). Check that the server is running and, in cloud mode, that authentication works (health_check). With an API key, list and inspect findings by severity or status, and view a security posture summary. With an API key, mark findings as resolved or as false positives, and verify the tamper-evident evidence chain. Read posture and per-finding snapshots through the exposed resources.
When to use it
Use it when you want an AI assistant to find and fix security problems in a local codebase, or to review findings and security posture from SPHIOR-connected repositories. Local mode is enough for scanning without an account; cloud mode suits teams tracking history, evidence and GRC.
Requirements
Runs locally over stdio, typically via npx or a global npm install, so Node.js is needed. No account or key is required for local mode. Optional environment variables: SPHIOR_API_KEY for cloud features, SPHIOR_WORKSPACE for the directory to scan, SPHIOR_API_BASE for self-hosted or regional endpoints, plus timeout and debug settings.
Before you install
SPHIOR_API_KEY is a bearer token that unlocks cloud features; keep it out of shared config files. Cloud tools change data: resolve_finding and mark_false_positive alter finding status. In cloud mode the server contacts SPHIOR's API, and SPHIOR_API_BASE can redirect it to another host. The README states source code is never sent, but review that claim before use on sensitive code.

Installation

In SourceWeft

  1. Open Sphior Code Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

sphior-code-mcp

Official Model Context Protocol (MCP) server for SPHIOR CODE — find security issues in your code and let your own AI assistant fix them, inside any MCP-compatible client.

No account needed to start. With no API key set, the server scans your local workspace with the bundled deterministic engine and hands the findings to your AI agent. Add an API key later if you want tamper-evident evidence, history and GRC integrations.

[npm version] [License: MIT]

What this gives you

Your AI assistant can now answer questions like:

  • "Scan this project and fix the critical issues." ← works with no account
  • "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." (requires an API key)
  • "What's our overall security posture this month?" (requires an API key)

…using live data from SPHIOR's scanning engine — deterministic SAST (secrets + CWE patterns, analysed with real parsers across 14 languages) and SCA powered by OSV.dev. No AI is involved in detection, so the same code always produces the same findings.

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

bash
# No install needed — use npxnpx -y sphior-code-mcp
# Or install globallynpm install -g sphior-code-mcpsphior-code-mcp

Two modes

Local (default)Cloud
Setupnothing — just run itset SPHIOR_API_KEY
What it scansyour local workspacerepositories connected to SPHIOR
Tools availableget_fix_context, health_checkall 8 tools
Source code leaves your machinenevernever
Tamper-evident evidence / history / GRC push—✅

In local mode the server runs the same deterministic engine that powers the editor extensions (secrets + CWE patterns + taint analysis across 14 languages, parsed with real grammars) against the directory your client launched it in, then returns remediation guidance your agent can act on. It never contacts SPHIOR's servers.

Cloud-only tools return a clear message explaining what they need, rather than failing silently.

Configuration

Nothing is required to start. To unlock cloud features, set an API key from sphior.com/account/api:

bash
export SPHIOR_API_KEY=sk_live_xxxxxxxxxxxx

Environment variables

VariableRequiredDefaultDescription
SPHIOR_API_KEYNo—Bearer token. Omit for local mode; set it for cloud mode
SPHIOR_WORKSPACENocurrent directoryDirectory to scan in local mode
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)

Local mode — copy, paste, done. No account, no key.

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

Claude Code users can skip the file entirely:

bash
claude mcp add sphior-code -- npx sphior-code-mcp

Then ask your agent: "Scan this project and fix the critical issues."

Cloud mode — add the key to the same block:

json
{  "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" (the env block is optional here too):

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

Tools exposed

ToolModePurpose
get_fix_contextlocal + cloudRemediation guidance your agent acts on — why it matters, exact location, steps, references. Source code is never sent; the agent opens the file in your own workspace
health_checklocal + cloudVerify the server is up (and auth, in cloud mode)
list_findingscloudList vulnerabilities (filter by severity / status / limit)
get_findingcloudFull details for one finding (CVSS, CWE, file path, fix hint)
get_security_summarycloudPosture overview (counts by severity, last scan, repos monitored)
resolve_findingcloudMark as fixed
mark_false_positivecloudMark as not exploitable
verify_evidencecloudIndependently verify the tamper-evident evidence chain (for auditors)

get_fix_context accepts path in local mode to scan a directory other than the one your client launched the server in.

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

bash
# In this directorynpm installnpm run build# Local mode — no key needednode bin/sphior-code-mcp.js
# Cloud modeSPHIOR_API_KEY=sk_test_xxx node bin/sphior-code-mcp.js# Type a JSON-RPC request to test

License

MIT © SPHIOR Security

Links

Source: packages/code-mcp/README.md at commit 564b189

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

3
  1. v1.1.6LatestOct 17, 2026
  2. v1.1.4Oct 16, 2026
  3. v1.0.2Sep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts