Developer guide

Saktum Check, step by step

Test MCP servers, build ones that earn top grades, run it in CI, prove trust to others, and govern what agents do. Free and open source (Apache-2.0).

Start in 60 seconds

Needs Node.js 20 or later (Windows, macOS or Linux). Nothing is uploaded: Saktum runs on your machine or in your CI.

npx saktum

Shows the four main journeys. Then test a real server:

npx saktum check -- npx -y @modelcontextprotocol/server-memory

You get a trust grade, an agent-readiness grade, a trust card (what was tested and what was not), findings with fixes, and a signed result in saktum-report.json.

1. Test an MCP server

Grade a local server (passive: no tool is called)
npx saktum check -- npx -y some-mcp-server
Grade a remote server, including OAuth sign-in
npx saktum check https://your-server.example/mcp
Also call read-only tools and measure load (only servers you own)
npx saktum check --active -- node build/index.js
Run your own test cases (saktum.tests.yaml)
npx saktum test -- node build/index.js
Every check, and the standard behind it
npx saktum checks
Why a server will not start
npx saktum doctor -- npx -y some-mcp-server

2. Build a server that earns top grades

Start a new server (TypeScript or Python)
npx saktum init my-server --lang ts
Static checks on tool definitions in your code
npx saktum lint
Missing annotations, as code to paste (--format py for Python)
npx saktum fix -- node build/index.js
Save a real call as a test case
npx saktum call get_order --args "{\"id\":\"1\"}" --save-test order-1 -- node build/index.js
Re-check on every save
npx saktum check --watch -- node build/index.js
Lock your tools, then catch breaking or silent changes
npx saktum snapshot -- node build/index.js
npx saktum diff saktum.lock.json -- node build/index.js
README tools table and client set-up
npx saktum docs -- npx -y your-package

Templates from init earn trust A and agent readiness A out of the box, with test cases, CI and an AGENTS.md for coding agents.

3. Let your coding agent do it

Saktum is itself an MCP server: your agent can test, fix, diff and document MCP servers.

Claude Code
claude mcp add saktum -- npx -y saktum mcp
Claude Desktop, Cursor or VS Code (MCP configuration)
{ "mcpServers": { "saktum": { "command": "npx", "args": ["-y", "saktum", "mcp"] } } }

Then ask: "Check the MCP server started by node build/index.js and fix anything below A." One-click buttons for Cursor and VS Code are on the home page.

4. Run it in CI

Fail pull requests on new problems, and see findings in GitHub code scanning.

# .github/workflows/saktum.yml
name: saktum
on: [push, pull_request]
permissions:
  contents: read
  security-events: write
jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: soodhere/saktum-check@v0.4.0
        with:
          target: "-- node build/index.js"
          args: "--active --tests saktum.tests.yaml"   # --active only for your own server
          sarif: "true"
          fail-on: high
          # baseline: saktum-baseline.json          # optional: fail only on new findings
          # policy: saktum-policy.yaml               # optional: your organisation's rules

5. Prove trust to others

A signed attestation and README badge
npx saktum attest saktum-report.json
Publish it to the public trust ledger (opens a pre-filled issue)
npx saktum attest saktum-report.json --publish
Verify the ledger, or look a server up
npx saktum ledger verify
npx saktum ledger find my-server
A security packet for a customer's review (print to PDF)
npx saktum packet saktum-report.json

The trust ledger is append-only and hash-chained: anyone can verify every signature and the whole chain.

6. Govern what agents do (preview)

Give an agent its own identity and a mandate you sign; Saktum blocks what the mandate does not allow and writes a signed, chained receipt for every tool call.

Agent identity and mandate
npx saktum agent create --name "Memory reader" --allow-tool read_graph --allow-tool search_nodes
Use in place of the server command in your agent's configuration
npx saktum proxy --mandate agent-mandate.json --enforce -- npx -y @modelcontextprotocol/server-memory
The path, not the answer: tools, order, retry storms, denials
npx saktum receipts summary
Prove the receipts were not altered
npx saktum receipts verify

Preview limits: local (stdio) servers; receipts are signed by the agent side until the Saktum gateway co-signs them.

7. For organisations

Every MCP server on this machine: cost, duplicates, risks
npx saktum scan-config
Check servers against your organisation's policy
npx saktum scan-config --policy saktum-policy.yaml
An allowlist for your MCP firewall or gateway
npx saktum allowlist reports/*.json
Organisation-wide inventory from many machines
npx saktum scan-config --yes --out setup.json
npx saktum fleet setups/*.json --policy saktum-policy.yaml --html inventory.html

Data handling, air-gapped use and the MCP Trust Pilot: enterprise guide · discuss a pilot.

Safety, in short

Reference

Saktum Check 0.4 · questions and false positives welcome in GitHub discussions.