npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

sphior-code-mcp

v1.0.3

Published

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.

Downloads

151

Readme

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'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:

| Client | Config location | Setup | |---|---|---| | Cursor | ~/.cursor/mcp.json | Add MCP | | Claude Code | ~/.claude.json | claude 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.json | Native MCP | | Cline (VS Code extension) | ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json | Settings UI | | Continue (VS Code extension) | ~/.continue/config.yaml | mcpServers: section | | Windsurf | ~/.codeium/windsurf/mcp_config.json | Settings UI | | Zed | ~/.config/zed/settings.json (context_servers) | Native MCP | | JetBrains AI Assistant (2024.3+) | Settings → Tools → AI Assistant → MCP | Built-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/api:

export SPHIOR_API_KEY=sk_live_xxxxxxxxxxxx

Environment variables

| Variable | Required | Default | Description | |---|---|---|---| | SPHIOR_API_KEY | ✅ Yes | — | Bearer token from your SPHIOR Code account | | SPHIOR_API_BASE | No | https://sphior.com/api/v1 | Override for self-hosted / regional deployments | | SPHIOR_TIMEOUT | No | 30000 | Request timeout in ms (1000–300000) | | SPHIOR_DEBUG | No | false | Enable 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

| Tool | Purpose | |---|---| | list_findings | List vulnerabilities (filter by severity / status / limit) | | get_finding | Full details for one finding (CVSS, CWE, file path, fix hint) | | get_security_summary | Posture overview (counts by severity, last scan, repos monitored) | | resolve_finding | Mark as fixed | | mark_false_positive | Mark as not exploitable | | health_check | Verify 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

Links