Skip to content

pkgxray-guard: gate MCP-server registrations (mcp add)#3

Merged
adamsjack711-ux merged 1 commit into
pkgxray-guard/recheckfrom
pkgxray-guard/mcp-gate
Jul 4, 2026
Merged

pkgxray-guard: gate MCP-server registrations (mcp add)#3
adamsjack711-ux merged 1 commit into
pkgxray-guard/recheckfrom
pkgxray-guard/mcp-gate

Conversation

@adamsjack711-ux

Copy link
Copy Markdown
Owner

Mirror of pkgxray hook/mcp-gate (source of truth; Go byte-identical per sync-to-hookshot.sh). Stacked on pkgxray-guard/recheck (#2).

  • stdio launchers (… mcp add x -- npx server, or without --) → existing static package scan; the hook never spawns the server
  • streamable-HTTP URLs → probed via pkgxray mcp <url> --format json (pkgxray ≥ 0.16.0), manifest audited for injection/concealment/capability-mismatch
  • legacy SSE / unreadable add-json → Review (unvettable, never silently allowed)
  • fail-closed on engine errors under strict/balanced; PKGXRAY_HOOK_MCP_PROBE=0 degrades to Review

12 new tests; go vet + full package green.

🤖 Generated with Claude Code

…dapter

Mirror of pkgxray hook/mcp-gate (byte-identical Go per
sync-to-hookshot.sh): stdio launchers take the static package scan,
streamable-HTTP URLs are probed with pkgxray mcp <url> (>= 0.16.0),
legacy SSE / unreadable configs surface as Review. Fail-closed on
engine errors under strict/balanced.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@adamsjack711-ux
adamsjack711-ux merged commit cbc053c into pkgxray-guard/recheck Jul 4, 2026
@adamsjack711-ux
adamsjack711-ux deleted the pkgxray-guard/mcp-gate branch July 4, 2026 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant