@atbash/atbash-mcp 0.21.0 → 0.24.0-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 +3 -3
- package/dist/index.js +5 -4
- package/package.json +3 -3
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
|
|
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
|
|
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
|
|
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, "
|
|
78
|
-
value: async (
|
|
79
|
-
const result = await sdkJudge.
|
|
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)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atbash/atbash-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0-dev.0",
|
|
4
4
|
"description": "Atbash safety judge exposed as a standalone MCP server",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@modelcontextprotocol/sdk": "^1.12.3",
|
|
53
53
|
"zod": "^4.6.7",
|
|
54
|
-
"@atbash/sdk": "
|
|
54
|
+
"@atbash/sdk": "0.24.0-dev.0"
|
|
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": "
|
|
64
|
+
"@atbash/sdk": "0.24.0-dev.0"
|
|
65
65
|
}
|
|
66
66
|
}
|