@atbash/atbash-mcp 0.21.0 → 0.24.1-dev.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.
package/README.md CHANGED
@@ -7,7 +7,7 @@ This package starts an MCP server process that loads one Atbash agent identity a
7
7
  ## Installation
8
8
 
9
9
  ```bash
10
- npm install @atbash/atbash-mcp@0.0.13
10
+ npm install @atbash/atbash-mcp
11
11
  ```
12
12
 
13
13
  ## When To Use It
@@ -31,7 +31,7 @@ Add to your `claude_desktop_config.json`:
31
31
  "mcpServers": {
32
32
  "atbash": {
33
33
  "command": "npx",
34
- "args": ["-y", "@atbash/atbash-mcp@0.0.13"],
34
+ "args": ["-y", "@atbash/atbash-mcp"],
35
35
  "env": {
36
36
  "ATBASH_AGENT_PRIVKEY": "your_agent_private_key_here",
37
37
  "ATBASH_ORG_NAME": "your_org_name"
@@ -48,7 +48,7 @@ import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js"
48
48
 
49
49
  const transport = new StdioClientTransport({
50
50
  command: "npx",
51
- args: ["-y", "@atbash/atbash-mcp@0.0.13"],
51
+ args: ["-y", "@atbash/atbash-mcp"],
52
52
  env: {
53
53
  ...process.env,
54
54
  ATBASH_AGENT_PRIVKEY: process.env.ATBASH_AGENT_PRIVKEY,
package/dist/index.js CHANGED
@@ -74,12 +74,13 @@ function hardenJudgeClient(client2) {
74
74
  async function guardedAuditToolCall(input) {
75
75
  let wire;
76
76
  const shadow = Object.create(client2);
77
- Object.defineProperty(shadow, "judgeAction", {
78
- value: async (...args) => {
79
- const result = await sdkJudge.apply(client2, args);
77
+ Object.defineProperty(shadow, "_judgeAction", {
78
+ value: async (action, context, options) => {
79
+ const result = await sdkJudge.call(client2, action, context, options);
80
80
  wire = result;
81
81
  return result;
82
- }
82
+ },
83
+ configurable: true
83
84
  });
84
85
  const decision = await sdkAudit.call(shadow, input);
85
86
  if (!isDecisionShaped(decision)) {
@@ -203,7 +204,7 @@ function registerJudgeTools(server2, client2) {
203
204
  }
204
205
  if (decision.verdict === "HOLD") {
205
206
  const holdParts = [
206
- "Action held for operator review. The agent will not be jailed \u2014 please approve or reject this request from the Atbash dashboard, then ask the agent to try again.",
207
+ "Action flagged as a policy gap. The agent will not be jailed \u2014 please adjust your policy in the Atbash dashboard, then ask the agent to try again.",
207
208
  `Reason: ${decision.reason ?? ""}`
208
209
  ];
209
210
  if (decision.toolCallId) holdParts.push(`Tool Call ID: ${decision.toolCallId}`);
@@ -250,7 +251,7 @@ function registerJudgeTools(server2, client2) {
250
251
  }
251
252
  if (decision.verdict === "HOLD") {
252
253
  const holdParts = [
253
- "Action held for operator review. The agent will not be jailed \u2014 please approve or reject this request from the Atbash dashboard, then ask the agent to try again.",
254
+ "Action flagged as a policy gap. The agent will not be jailed \u2014 please adjust your policy in the Atbash dashboard, then ask the agent to try again.",
254
255
  `Reason: ${decision.reason ?? ""}`
255
256
  ];
256
257
  if (decision.toolCallId) holdParts.push(`Tool Call ID: ${decision.toolCallId}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atbash/atbash-mcp",
3
- "version": "0.21.0",
3
+ "version": "0.24.1-dev.0",
4
4
  "description": "Atbash safety judge exposed as a standalone MCP server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -49,9 +49,9 @@
49
49
  "release:dev": "node scripts/release.mjs --channel dev"
50
50
  },
51
51
  "dependencies": {
52
+ "@atbash/sdk": "0.24.1-dev.0",
52
53
  "@modelcontextprotocol/sdk": "^1.12.3",
53
- "zod": "^4.6.7",
54
- "@atbash/sdk": ">=0.11.0 <1.0.0"
54
+ "zod": "^4.6.7"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/node": "^25.7.0",
@@ -61,6 +61,6 @@
61
61
  "vitest": "^4.1.6"
62
62
  },
63
63
  "peerDependencies": {
64
- "@atbash/sdk": ">=0.11.0 <1.0.0"
64
+ "@atbash/sdk": "0.24.1-dev.0"
65
65
  }
66
66
  }