saktum 0.1.4 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +49 -4
  2. package/package.json +1 -1
  3. package/saktum.mjs +1563 -586
package/README.md CHANGED
@@ -36,17 +36,62 @@ Runs on your machine. Nothing is uploaded. Your own environment variables are ne
36
36
  use your tools safely and cheaply (danger annotations, descriptions, context cost). Readiness never changes the trust
37
37
  grade. Every report ends with **OWASP MCP Top 10 coverage**: which categories this run tested and which come later.
38
38
 
39
- ## What it checks (v0.1: 24 checks)
39
+ ## Functional testing, performance and your own test cases
40
+
41
+ - **`--active`** (only against servers you own): Saktum calls your **read-only** tools with arguments generated from
42
+ their schemas, validates results against any declared `outputSchema`, checks invalid arguments are rejected gracefully,
43
+ confirms the server survives, and measures latency percentiles and behaviour at 1, 5 and 20 concurrent callers.
44
+ Destructive tools are never called automatically; name others with `--call <tool>`.
45
+ - **Your test cases** (`saktum.tests.yaml`, guide in [docs/TESTS.md](docs/TESTS.md)): what your tools should actually
46
+ return, run with `npx saktum test` locally and in CI.
47
+ - **Capability profile:** what your tools can do (run code, reach the network, touch files, change data, send messages,
48
+ move money), declared or conservatively inferred, with a warning when private data, untrusted content and an outbound
49
+ channel combine.
50
+ - **Trust card and scope:** every report says, dimension by dimension, what was tested, what was not, and why.
51
+ `npx saktum checks` lists every check with the standard behind it ([docs/CHECKS.md](docs/CHECKS.md)).
52
+ - **Control:** `--ignore check.id="reason"` (shown in the report, not scored) and `--badge badge.svg` for your README.
53
+
54
+ ## The provider toolkit
55
+
56
+ | Command | What it does |
57
+ | --- | --- |
58
+ | `saktum fix -- <server>` | Suggests danger annotations for every tool, as code to paste (`--format ts` or `py`), and flags annotations that contradict a tool's name |
59
+ | `saktum snapshot -- <server>` | Writes `saktum.lock.json`, a lock file of your tools |
60
+ | `saktum diff saktum.lock.json -- <server>` | Breaking changes (removed tools, new required fields, changed types), changes to review (descriptions, annotations: silent tool changes), additions, and the version bump they need; fails CI on breaking or risky changes |
61
+ | `saktum docs -- <server>` | A Markdown tools table and ready-to-paste configuration for Claude Desktop, Cursor and VS Code |
62
+ | `saktum packet saktum-report.json` | A printable **security packet** for customers' security reviews, built from a verified signed result, with a section for your own statements (clearly marked as not verified) |
63
+
64
+ ## In CI (GitHub Action)
65
+
66
+ ```yaml
67
+ - uses: actions/checkout@v4
68
+ - uses: soodhere/saktum-check@v0.3.0
69
+ with:
70
+ target: "-- node build/index.js" # or an https URL
71
+ args: "--active --tests saktum.tests.yaml" # optional; --active only for your own server
72
+ fail-on: high
73
+ ```
74
+
75
+ The report appears in the job summary; the signed result, HTML report and badge are saved as an artifact.
76
+
77
+ ## Test vectors for the MCP community
78
+
79
+ [`test-vectors/`](test-vectors/) holds known-good and known-bad servers with the expected verdict for every check, so any
80
+ MCP testing tool can validate itself against the same cases. Contributions welcome.
81
+
82
+ ## What it checks
40
83
 
41
84
  | Area | Checks |
42
85
  | --- | --- |
43
86
  | Conformance | Handshake, tool list, valid input schemas (draft-07, 2019-09, 2020-12), tool names, unknown-tool handling |
44
87
  | Sign-in (remote servers) | HTTPS; 401 with a Bearer challenge pointing to resource metadata (RFC 9728); protected resource metadata; authorization server metadata with PKCE S256 (RFC 8414, RFC 7636); invalid tokens rejected (RFC 6750) |
45
- | Security | Hidden instructions to the agent, invisible and bidirectional characters, terminal escape sequences, secrets in tools or errors (always redacted), stack traces and source paths in errors |
88
+ | Security | Hidden instructions to the agent, invisible and bidirectional characters, terminal escape sequences, secrets in tools or errors (always redacted), stack traces and source paths in errors, Origin validation for local HTTP servers (DNS rebinding) |
46
89
  | Agent experience | Danger annotations, description quality, context cost in tokens and dollars |
47
- | Performance (never scored) | Start-up, latency, memory of the whole process tree, and a rate-limit burst test with `--active` |
90
+ | Functional (`--active` or test cases) | Tools respond to valid arguments; results well-formed and matching their `outputSchema`; invalid arguments rejected gracefully; the server survives |
91
+ | Performance (never scored) | Start-up, latency percentiles, behaviour at 1, 5 and 20 concurrent callers, memory of the whole process tree |
48
92
 
49
- Validated on 31 public MCP servers before release. Each check cites the specification clause or OWASP item it verifies.
93
+ Validated on real public MCP servers before every release ([docs/VALIDATION.md](docs/VALIDATION.md)), including active
94
+ runs, with no false failures. Each check cites the specification clause or OWASP item it verifies.
50
95
 
51
96
  ## Options
52
97
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saktum",
3
- "version": "0.1.4",
3
+ "version": "0.3.0",
4
4
  "description": "Test MCP servers in one command: conformance, sign-in, security (OWASP MCP Top 10), agent experience, context cost and performance.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",