@decionis/mcp 0.4.0 → 0.6.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 (44) hide show
  1. package/README.md +48 -2
  2. package/dist/AgentHookCli.js +2 -2
  3. package/dist/ManagedAgentHookCli.js +53653 -38089
  4. package/dist/agent/AgentIndex.js +2 -2
  5. package/dist/{chunk-GCE6PUYD.js → chunk-KV4WA4BV.js} +2 -2
  6. package/dist/{chunk-5Q6BCK32.js → chunk-XMQRTHQK.js} +29709 -17143
  7. package/dist/chunk-XMQRTHQK.js.map +1 -0
  8. package/dist/index.js +3005 -426
  9. package/dist/index.js.map +1 -1
  10. package/dist/policy_core.wasm +0 -0
  11. package/distribution/chatgpt/Install.md +40 -0
  12. package/distribution/chatgpt/Linked.md +25 -0
  13. package/distribution/chatgpt/Manifest.json +45 -0
  14. package/distribution/chatgpt/Mcp.json +9 -0
  15. package/distribution/chatgpt/Review.json +48 -0
  16. package/distribution/chatgpt/Setup.md +24 -0
  17. package/distribution/claude/Code.md +35 -0
  18. package/distribution/claude/Connected.json +13 -0
  19. package/distribution/claude/Install.md +47 -0
  20. package/distribution/claude/Manifest.json +11 -0
  21. package/distribution/claude/Mcp.json +8 -0
  22. package/distribution/common/Consent.md +22 -0
  23. package/distribution/common/Skill.md +111 -0
  24. package/distribution/copilot/Agent.json +22 -0
  25. package/distribution/copilot/App.json +34 -0
  26. package/distribution/copilot/AuthoringAgent.json +22 -0
  27. package/distribution/copilot/AuthoringApp.json +34 -0
  28. package/distribution/copilot/AuthoringInstructions.md +96 -0
  29. package/distribution/copilot/AuthoringM365.md +38 -0
  30. package/distribution/copilot/AuthoringPlugin.json +20 -0
  31. package/distribution/copilot/Connector.json +36 -0
  32. package/distribution/copilot/Instructions.md +21 -0
  33. package/distribution/copilot/M365.md +38 -0
  34. package/distribution/copilot/Plugin.json +20 -0
  35. package/distribution/copilot/Studio.md +16 -0
  36. package/distribution/schema/CopilotAgent.json +950 -0
  37. package/distribution/schema/CopilotApp.json +2927 -0
  38. package/distribution/schema/CopilotPlugin.json +723 -0
  39. package/distribution/schema/Mcp.json +120 -0
  40. package/distribution/schema/Plugin.json +65 -0
  41. package/distribution/schema/Source.md +36 -0
  42. package/package.json +27 -24
  43. package/dist/chunk-5Q6BCK32.js.map +0 -1
  44. /package/dist/{chunk-GCE6PUYD.js.map → chunk-KV4WA4BV.js.map} +0 -0
package/README.md CHANGED
@@ -11,8 +11,9 @@ protocol's own schema-validated bundle ingestion, and evaluates through
11
11
  locally is the verdict the platform would produce — with **zero network, zero database,
12
12
  zero credentials, and nothing recorded**.
13
13
 
14
- (The protocol service separately exposes a _remote_, authenticated MCP surface for
15
- org-connected agents; this package is the local, offline complement for repo checkouts.)
14
+ (The protocol service also exposes a remote authenticated MCP surface. The local
15
+ execution path stays offline; optional connected PolicyAgent authoring is described
16
+ below.)
16
17
 
17
18
  The package now exposes two complementary surfaces:
18
19
 
@@ -367,3 +368,48 @@ printf '%s\n' \
367
368
  the evaluate tool detects this and tells the agent how to fix the policy.
368
369
  - Local evaluations mint no signed Decision Dossier; CI runs through
369
370
  [`decionis/govern`](https://github.com/decionis/govern) produce the verifiable record.
371
+
372
+ ## Governed PolicyAgent authoring
373
+
374
+ The local package can additionally connect to the governed PolicyAgent workspace.
375
+ This is opt-in: set `DECIONIS_POLICY_CONNECTED=1`, your
376
+ `DECIONIS_POLICY_WORKSPACE_ID`, and a private `DECIONIS_POLICY_OAUTH_TOKEN` issued
377
+ through an approved registered OAuth client. Without the opt-in flag the additional
378
+ authoring tools are absent. Existing execution hooks keep their existing behavior.
379
+ The token is read per call; a wrong workspace, expired grant or missing disclosure
380
+ approval fails closed. The package has no OAuth login or refresh-token store.
381
+
382
+ PolicyAgent reads authorized policy revisions, stores change proposals and requests
383
+ independent review. Human authors accept proposals into drafts and independent
384
+ reviewers attest in the workspace. Assistant confirmation never signs, approves or
385
+ deploys policy. Never put tokens in prompts or checked-in configuration.
386
+
387
+ ### Policy authoring context for your assistant
388
+
389
+ On connect, the server sends short policy authoring instructions: write each rule as a
390
+ rule card, read it back, and propose it with `decionis.propose_policy_change`. Clients
391
+ that support MCP prompts and resources also get three guides:
392
+
393
+ | Prompt | Resource | Use it to |
394
+ | ----------------- | ----------------------------------- | ----------------------------------------------------------- |
395
+ | `policyauthoring` | `decionis://assist/policyauthoring` | Turn plain-English rules into PolicyAgent proposals. |
396
+ | `agentsafe` | `decionis://assist/agentsafe` | Put AgentSafe in front of an agent's writes. |
397
+ | `workflowsetup` | `decionis://assist/workflowsetup` | Set up governed CI and move a policy through its lifecycle. |
398
+
399
+ To keep the guides in a project as files, install them for one assistant:
400
+
401
+ ```bash
402
+ npx @decionis/mcp context install --client claude # or codex, copilot, kiro, cursor
403
+ npx @decionis/mcp context install --client cursor --dir ./my-project --dry-run
404
+ ```
405
+
406
+ The command writes the client's skills, agents, rules or steering files and adds the
407
+ Decionis servers to its MCP settings, keeping any other servers there. It updates files
408
+ it wrote before and skips any other existing file unless you pass `--force`. The files
409
+ name environment variables only; keep keys and tokens in your environment.
410
+
411
+ Provider package sources and installation instructions are under
412
+ `distribution/claude/`. Repository maintainers can run
413
+ `pnpm --filter @decionis/mcp package:policyagent claude` to create reviewable ZIPs.
414
+ See the repository's `docs/marketplace/policyagent/Claude.md` for the full review
415
+ exercise and publication requirements.
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  AgentHookCommand
4
- } from "./chunk-GCE6PUYD.js";
5
- import "./chunk-5Q6BCK32.js";
4
+ } from "./chunk-KV4WA4BV.js";
5
+ import "./chunk-XMQRTHQK.js";
6
6
 
7
7
  // src/AgentHookCli.ts
8
8
  void AgentHookCommand.run(process.argv.slice(2)).then((exitCode) => {