Skip to content
seedfundedPublic

About

Zero-dependency Skills over MCP (SEP-2640) spec linter, SHA-256 anti-rug-pull lockfile, live wire prober, adversarial chaos fixture server, SARIF 2.1.0 security auditor, and skill scaffolder.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

sep2640

Zero-dependency Skills over MCP (SEP-2640 / io.modelcontextprotocol/skills) semantic spec linter, auto-fixer, SHA-256 anti-rug-pull lockfile, dual-era HTTP/stdio wire prober, multi-server .mcp.json fleet auditor, verified remote skill puller, org security policy gate, local/chaos skill server, SARIF 2.1.0 auditor, and scaffolder.

Built strictly on Web Crypto (crypto.subtle) and Node built-ins — 0 runtime dependencies, strict TypeScript, dual ESM + CommonJS, running on Node 20+.

Why sep2640?

  1. Enforces what JSON Schema cannot: Validates SHA-256 digest integrity, raw byte size, URI-segment vs. frontmatter.name agreement, skills/list vs. skills/get parity, resultType: "complete", required ttlMs / cacheScope cache hints, resources/directory/read negative & recursive descent rules, and the 512-file / 16 MiB SEP-2640 limits.
  2. Multi-server MCP fleet auditing (audit --config .mcp.json): Parses Claude Code (.mcp.json), Claude Desktop, Cursor, and VS Code (.vscode/mcp.json) configs; probes all HTTP & stdio servers concurrently; flags cross-server skill name collisions (FLEET001), totals startup metadata token cost (FLEET002), and pins/verifies a unified multi-server lockfile.
  3. In-flight zero-disk remote security scanning: probe audits fetched wire bytes in memory for invisible Unicode/BiDi prompt injection (SEC001), overly broad allowed-tools (SEC002), cross-server URIs (SEC003), nested SKILL.md traps (SEC004), and token budgets.
  4. Closes SEP-2640 unsigned-digest trust gap: Pins (serverIdentity, skillUri), per-file SHA-256 digests, raw byte sizes, frontmatter hash, and allowed-tools in skills-mcp.lock.json to catch silent remote rug-pulls, "dynamic" downgrades, and permission escalations in CI.
  5. Serve local skills, pull safely, auto-fix & chaos test: serve --dir ./skills exposes any local skills folder over HTTP or stdio; lint --fix repairs BOM, CRLF, hidden Unicode, trailing newlines, and unquoted metadata; serve --fault injects 10 deterministic spec-violation faults.

Install

npm install sep2640

Or run directly with zero install:

npx sep2640 --help

CLI Usage (npx sep2640)

# Audit every MCP server in .mcp.json / .vscode/mcp.json (auto-discovers config, collisions, secret hygiene, token cost, unified lockfile)
npx sep2640 audit --lock skills-mcp.lock.json --markdown
npx sep2640 audit --config .mcp.json --verify skills-mcp.lock.json --fail-on-collision --sarif fleet.sarif

# Generate an org security policy preset (standard, strict, or enterprise)
npx sep2640 policy init --preset strict --out sep2640.policy.json

# Inspect local project health or explain any diagnostic rule offline
npx sep2640 doctor
npx sep2640 explain SEC005

# Lint, auto-fix, or watch local skills with org policy & SARIF 2.1.0 output
npx sep2640 lint ./skills --fix --strict --policy sep2640.policy.json --sarif sep2640.sarif
npx sep2640 lint ./skills --watch

# Serve any local skills folder over SEP-2640 (HTTP with live --watch or stdio)
npx sep2640 serve --dir ./skills --watch --port 4050
npx sep2640 serve --dir ./skills --stdio

# Probe any HTTP or stdio SEP-2640 server (2026-07-28 + 2025-11-25 auto-negotiation)
npx sep2640 probe http://127.0.0.1:4050/mcp --double-read --junit probe.xml
npx sep2640 probe --stdio "node my-mcp-server.js" --double-read

# Pull remote skills safely (verified & policy-checked in memory before disk write)
npx sep2640 pull http://127.0.0.1:4050/mcp --policy sep2640.policy.json --out ./audited-skills --lockfile skills-mcp.lock.json

# Start an adversarial chaos fixture server for host/client conformance testing
npx sep2640 serve --port 4050 --fault rug-pull-on-second-read

Reusable GitHub Action

- name: SEP-2640 Skills over MCP Check
  uses: seedfunded/sep2640@v1
  with:
    command: lint
    target: ./skills
    policy: sep2640.policy.json
    sarif: sep2640.sarif
    strict: "true"

Benchmarks

Measured with npm run bench (Node v26.13.1, Apple M5):

Operation Throughput Latency
lintSkillDirectory (full static + security) 9,535 ops/s 0.105 ms/op
buildListSkillsManifest (Web Crypto SHA-256) 6,924 ops/s 0.144 ms/op
diffLockfiles (frozen verify) 2,935,169 ops/s 0.000 ms/op
probeSkillsServer (live HTTP + conformance + in-flight scan) 937 ops/s 1.067 ms/op

License

MIT © 2026 (@seedfunded)

About

Zero-dependency Skills over MCP (SEP-2640) spec linter, SHA-256 anti-rug-pull lockfile, live wire prober, adversarial chaos fixture server, SARIF 2.1.0 security auditor, and skill scaffolder.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages