Skip to main content
Glama
Kherrisan

security-context-before

by Kherrisan

security-context-before

Authenticated remote MCP proxy in front of Security Context. Same tools as SC. Repo queries take a snapshot ref (tag or commit). Responses keep only CVEs and fix fingerprints that already landed before that snapshot, so live bugs at the tag are not handed to the agent.

Endpoint

After Vercel deploy: https://<project>.vercel.app/api/mcp (Streamable HTTP).

Auth (required):

Authorization: Bearer $PROXY_API_KEY

or x-api-key: $PROXY_API_KEY.

Related MCP server: scopeguard-mcp

Tools

Tool

Extra vs SC

get_security_context

required ref

create_security_context

required ref

get_vulnerability_leads

required ref

get_vulnerability

pass-through

search_vulnerabilities

pass-through

ref is a git tag (7.0.1) or commit SHA.

Filter

  1. Resolve ref on GitHub (SHA, date, product version / $wp_version).

  2. Fetch SC JSON for the repo in parallel with GitHub and the upstream MCP call.

  3. Parse each CVE’s affected/fixed version via Vercel AI Gateway. Cache by CVE id.

  4. Keep a CVE only if snapshotVersion > affectedMax/fixedIn.

  5. Keep a fingerprint only if its fix commit is an ancestor of the snapshot SHA.

Unknown version ranges are dropped (no leak).

Deploy

cp .env.example .env.local
# set PROXY_API_KEY, AI_GATEWAY_API_KEY, GITHUB_TOKEN
npx vercel

Vercel env: PROXY_API_KEY, AI_GATEWAY_API_KEY, AI_GATEWAY_MODEL, GITHUB_TOKEN. Optional durable cache: UPSTASH_REDIS_REST_URL + UPSTASH_REDIS_REST_TOKEN.

Local:

pnpm install
pnpm test
pnpm dev

MCP inspector: Streamable HTTP → http://localhost:3210/api/mcp with the bearer token.

Vulseek

Point the org MCP server securitycontext URL at this /api/mcp and send ref from the job tag. The upstream SC tools do not have ref; orch/hunter tool schemas must include it when using this proxy.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    Enables triage of SAST findings by exposing a read-only MCP server with tools to access hash-verified source-to-sink code slices, unguarded sinks, and layered enrichment for local LLM analysis.
    10
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables permission-preserving access to DefectDojo OSS via MCP, using the caller's own API token, with read tools, deterministic analytics and reporting, plus optional gated write and history tools.
    2
    AGPL 3.0
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables MCP clients to query previously analyzed GitHub repositories for architecture analysis, code review findings, and single-turn code Q&A with verifiable file and line references.
    MIT