saktum 0.1.3 → 0.2.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 +25 -6
  2. package/package.json +1 -1
  3. package/saktum.mjs +1316 -600
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Saktum Check
2
2
 
3
3
  **Test your MCP server in one command:** conformance, sign-in, security mapped to the **OWASP MCP Top 10**, agent
4
- experience, what your tools cost an agent in context, and performance. A grade, plain findings, a fix for each, and a
5
- signed result anyone can verify.
4
+ experience, what your tools cost an agent in context, and performance. Two grades (**trust** and **agent readiness**),
5
+ plain findings, a fix for each, and a signed result anyone can verify.
6
6
 
7
7
  ```
8
8
  npx saktum check -- npx -y @your/mcp-server # a local server
@@ -32,9 +32,26 @@ Runs on your machine. Nothing is uploaded. Your own environment variables are ne
32
32
  Evidence: at handleCall (/home/deploy/acme-mcp/src/handlers.js:42:11)
33
33
  ```
34
34
 
35
- Every report ends with **OWASP MCP Top 10 coverage**: which categories this run tested and which come in later releases.
35
+ **Two grades.** *Trust* covers conformance, sign-in and security; *agent readiness* covers whether agents can choose and
36
+ use your tools safely and cheaply (danger annotations, descriptions, context cost). Readiness never changes the trust
37
+ grade. Every report ends with **OWASP MCP Top 10 coverage**: which categories this run tested and which come later.
36
38
 
37
- ## 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
+ ## What it checks
38
55
 
39
56
  | Area | Checks |
40
57
  | --- | --- |
@@ -42,9 +59,11 @@ Every report ends with **OWASP MCP Top 10 coverage**: which categories this run
42
59
  | 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) |
43
60
  | 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 |
44
61
  | Agent experience | Danger annotations, description quality, context cost in tokens and dollars |
45
- | Performance (never scored) | Start-up, latency, memory of the whole process tree, and a rate-limit burst test with `--active` |
62
+ | Functional (`--active` or test cases) | Tools respond to valid arguments; results well-formed and matching their `outputSchema`; invalid arguments rejected gracefully; the server survives |
63
+ | Performance (never scored) | Start-up, latency percentiles, behaviour at 1, 5 and 20 concurrent callers, memory of the whole process tree |
46
64
 
47
- Validated on 31 public MCP servers before release. Each check cites the specification clause or OWASP item it verifies.
65
+ Validated on real public MCP servers before every release ([docs/VALIDATION.md](docs/VALIDATION.md)), including active
66
+ runs, with no false failures. Each check cites the specification clause or OWASP item it verifies.
48
67
 
49
68
  ## Options
50
69
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saktum",
3
- "version": "0.1.3",
3
+ "version": "0.2.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",