@totemsdk/mcp-server 0.5.0 → 0.5.1

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/dist/recipes.js CHANGED
@@ -31,6 +31,17 @@ exports.RECIPES = [
31
31
  requiredCapabilities: ['edge device runtime', 'mqtt transport', 'payment channel', 'agent policy'],
32
32
  },
33
33
  },
34
+ {
35
+ id: 'governed-industrial-action',
36
+ title: 'Governed Industrial Action',
37
+ boundary: 'Act-core executes only bounded actions inside a signed authority mandate; a receipt proves governed execution, not the physical outcome.',
38
+ input: {
39
+ runtime: 'node-esm',
40
+ requiredPackages: ['@totemsdk/act-core', '@totemsdk/edge', '@totemsdk/authority'],
41
+ suggestedPackages: ['@totemsdk/proof', '@totemsdk/proofgraph', '@totemsdk/manifest', '@totemsdk/edge-modbus'],
42
+ requiredCapabilities: ['governed action runtime', 'edge device runtime', 'authority mandate', 'verifiable receipt'],
43
+ },
44
+ },
34
45
  ];
35
46
  function planRecipe(recipe, index) {
36
47
  return (0, composition_js_1.planComposition)({ ...recipe.input, brief: `${recipe.title}. ${recipe.boundary}` }, index);
package/dist/resources.js CHANGED
@@ -78,7 +78,7 @@ const PAPERS = [
78
78
  {
79
79
  uri: 'totemsdk://papers/grey',
80
80
  name: 'Edge Grey Paper',
81
- description: 'Port-injected transport-agnostic edge runtime, 11 protocol adapters, MachinePay credit gating, offline operation, industrial action, sensor-to-settlement bridge',
81
+ description: 'Port-injected transport-agnostic edge runtime, 11 protocol adapters, MachinePay credit gating, offline operation, act-core governed actions, sensor-to-settlement bridge',
82
82
  file: 'TOTEM_EDGE_GREY_PAPER.md',
83
83
  },
84
84
  {
@@ -38,12 +38,12 @@ exports.TEMPLATE_CATALOG = [
38
38
  description: 'Proposal lifecycle 7-status state machine, vote submission with nonce/weight/window, on-chain vote tally with batch delta ports, execution mandate with timelock+multisig+commitments, and treasury fund release',
39
39
  },
40
40
  {
41
- template: 'industrial-action',
41
+ template: 'act-core',
42
42
  functions: ['buildCommitScript', 'buildRevealScript', 'buildActionStateMachineScript', 'buildEscrowEnforcementScript'],
43
43
  configTypes: ['CommitConfig', 'RevealConfig', 'ActionStateMachineConfig', 'EscrowEnforcementConfig'],
44
- package: 'industrial-action',
45
- keywords: ['industrial action', 'strike', 'commit reveal', 'hash commit', 'preimage reveal', 'state machine', 'notice period', 'max duration', 'escrow', 'condition enforcement'],
46
- description: 'Industrial action scripts: hash-commit and preimage reveal, 6-status action FSM (proposed/noticed/active/resolved/escalated/expired) with notice period and max duration, and condition-based escrow enforcement',
44
+ package: 'act-core',
45
+ keywords: ['act-core', 'industrial action', 'strike', 'commit reveal', 'hash commit', 'preimage reveal', 'state machine', 'notice period', 'max duration', 'escrow', 'condition enforcement'],
46
+ description: 'Act-core action scripts (industrial action): hash-commit and preimage reveal, 6-status action FSM (proposed/noticed/active/resolved/escalated/expired) with notice period and max duration, and condition-based escrow enforcement',
47
47
  },
48
48
  {
49
49
  template: 'identity',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@totemsdk/mcp-server",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "MCP server exposing the full Totem SDK package set — metadata, types, exports, dependency graphs, and scaffolding tools",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,10 +25,7 @@
25
25
  "@modelcontextprotocol/sdk": "^1.30.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@types/jest": "^30.0.0",
29
28
  "@types/node": "^20.0.0",
30
- "jest": "^30.4.2",
31
- "ts-jest": "^29.0.0",
32
29
  "typescript": "^7.0.2"
33
30
  },
34
31
  "engines": {
@@ -59,7 +56,7 @@
59
56
  "build": "tsc && node ../../scripts/build-mcp-bundle.mjs",
60
57
  "clean": "rm -rf dist data",
61
58
  "start": "node dist/index.js",
62
- "test": "jest",
59
+ "test": "jest --config ../../tests/jest/mcp-server.cjs",
63
60
  "test:consumer": "node ../../scripts/test-mcp-consumer.mjs"
64
61
  }
65
62
  }