@decionis/mcp 0.1.2 → 0.1.3

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.
package/README.md CHANGED
@@ -27,11 +27,50 @@ surface.
27
27
 
28
28
  ## Tools
29
29
 
30
- | Tool | Purpose |
31
- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------- |
32
- | `decionis_read_policy` | Path, sha256, and compiled rules (or compile errors) of the repo's `DECIONIS_POLICY.md`. |
33
- | `decionis_evaluate` | Evaluate a candidate action payload against the policy through the real evaluator; returns the verdict + matched rule. |
34
- | `decionis_verdict_help` | The verdict vocabulary, rules-block grammar, and how an agent should behave on each verdict. |
30
+ | Tool | Purpose |
31
+ | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
32
+ | `decionis_read_policy` | Path, sha256, and compiled rules (or compile errors) of the repo's `DECIONIS_POLICY.md`. |
33
+ | `decionis_evaluate` | Evaluate a candidate action payload against the policy through the real evaluator; returns the verdict + matched rule. |
34
+ | `decionis_demo` | The one-minute demo: four canned intents through the real evaluator with a built-in sample policy — one per wire outcome. No account, no key, no policy file, no network, nothing recorded. |
35
+ | `decionis_verdict_help` | The verdict vocabulary, rules-block grammar, and how an agent should behave on each verdict. |
36
+
37
+ All four are read-only, credential-free, and networkless (`readOnlyHint: true`,
38
+ `openWorldHint: false`) — an agent host that gates side-effectful tools behind
39
+ approval has nothing to gate here. The `shield.*` tools register only when
40
+ `DECIONIS_SHIELD_API_KEY` and `DECIONIS_SHIELD_APP_ID` are configured.
41
+
42
+ ### Kubernetes execution-authority tools
43
+
44
+ The optional Kubernetes tools add a client-side gate while the validating admission
45
+ webhook remains the independent cluster-side gate:
46
+
47
+ | Tool | Purpose |
48
+ | ----------------------- | ------------------------------------------------------------------------------------------- |
49
+ | `k8s_plan` | Resolve exact objects and show only digests, action hashes, diffs, and bounded facts. |
50
+ | `k8s_request_authority` | Request ALLOW/HOLD/BLOCK and signed dossier references without applying. |
51
+ | `k8s_apply` | Consume an exact Decionis grant, then stream the bound object snapshot to Kubernetes. |
52
+ | `k8s_scale` | Consume an exact scale grant, then submit that bound scale object, including scale-to-zero. |
53
+ | `k8s_rollback` | Apply an exact, existing-target rollback manifest after authority; vague undo is rejected. |
54
+ | `k8s_verify_dossier` | Independently verify the dossier proof bundle and Ed25519 evidence. |
55
+
56
+ Enable them explicitly. The process uses the selected local kube context without reading
57
+ or exporting kubeconfig credentials:
58
+
59
+ ```bash
60
+ DECIONIS_KUBERNETES_TOOLS_ENABLED=true
61
+ DECIONIS_AUTHORITY_BASE_URL=https://api.decionis.example
62
+ DECIONIS_API_KEY=<org-scoped-key>
63
+ DECIONIS_ORG_ID=<org-uuid>
64
+ DECIONIS_KUBERNETES_CLUSTER_ID=production-eu-1
65
+ DECIONIS_KUBERNETES_ACTOR=operator@example.com
66
+ DECIONIS_KUBERNETES_POLICY_VERSION=kubernetes-production-v1
67
+ DECIONIS_KUBERNETES_CONTEXT=production-eu-1
68
+ ```
69
+
70
+ `DECIONIS_KUBERNETES_VERIFICATION_ORIGINS` may add comma-separated HTTPS origins for
71
+ dossier/JWKS verification. Arbitrary origins are rejected. Mutating tools fail closed on
72
+ authority, dossier, action-hash, grant, or Kubernetes errors; a Kubernetes command failure
73
+ requires fresh authority because the single-use client grant has already been consumed.
35
74
 
36
75
  The policy file resolves from the tool's `path` argument, then `$DECIONIS_POLICY_PATH`,
37
76
  then `./DECIONIS_POLICY.md` in the working directory.
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  AgentHookCommand
4
- } from "./chunk-2C62WFX2.js";
5
- import "./chunk-KY5AVRL6.js";
4
+ } from "./chunk-NFWSCSMQ.js";
5
+ import "./chunk-XNC3IZW5.js";
6
6
 
7
7
  // src/AgentHookCli.ts
8
8
  void AgentHookCommand.run(process.argv.slice(2)).then((exitCode) => {