
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.
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.
Installation
In SourceWeft
- Open Sphior Code Mcp in the dashboard and add it to a workspace.
- 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.
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:
Installation
Two modes
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:
Environment variables
Example config (Cursor / Claude Code / VS Code style)
Local mode — copy, paste, done. No account, no key.
Claude Code users can skip the file entirely:
Then ask your agent: "Scan this project and fix the critical issues."
Cloud mode — add the key to the same block:
For GitHub Copilot in VS Code, use "servers" instead of "mcpServers" (the env block is
optional here too):
Tools exposed
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 posturesphior-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
License
MIT © SPHIOR Security
Links
Source: packages/code-mcp/README.md at commit 564b189
Tools
0Version history
3- v1.1.6LatestOct 17, 2026
- v1.1.4Oct 16, 2026
- 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