@odingard/guardian-mcp 0.1.3 → 0.2.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 +2 -2
- package/dist/index.js +9 -0
- package/package.json +3 -3
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ npm i -g @odingard/guardian-mcp
|
|
|
18
18
|
"guardian": {
|
|
19
19
|
"command": "guardian-mcp",
|
|
20
20
|
"env": {
|
|
21
|
-
"GUARDIAN_BASE_URL": "https://api.
|
|
21
|
+
"GUARDIAN_BASE_URL": "https://guardian-api.odingard.com",
|
|
22
22
|
"GUARDIAN_AGENT_CREDENTIAL": "gac1.…",
|
|
23
23
|
"GUARDIAN_CONNECTION_ID": "con_…"
|
|
24
24
|
}
|
|
@@ -41,4 +41,4 @@ Nothing executes without a Guardian capability — the model's output is a propo
|
|
|
41
41
|
|
|
42
42
|
## License
|
|
43
43
|
|
|
44
|
-
Apache-2.0. Canonical development happens in the Odingard Guardian monorepo.
|
|
44
|
+
Apache-2.0. Canonical development happens in the [Odingard Guardian monorepo](https://github.com/Odingard/guardian).
|
package/dist/index.js
CHANGED
|
@@ -17095,6 +17095,15 @@ function errorResult(message) {
|
|
|
17095
17095
|
}
|
|
17096
17096
|
async function requestAndExecute(client2, result) {
|
|
17097
17097
|
if (!result.ok) {
|
|
17098
|
+
const heldRequestId = result.requestId;
|
|
17099
|
+
if (result.reasonCode === "APPROVAL_REQUIRED" && typeof heldRequestId === "string" && heldRequestId.length > 0) {
|
|
17100
|
+
return jsonResult({
|
|
17101
|
+
decision: "ASK",
|
|
17102
|
+
requestId: heldRequestId,
|
|
17103
|
+
reasonCode: result.reasonCode,
|
|
17104
|
+
next: "Held for human approval. Call guardian_claim with this requestId after approval."
|
|
17105
|
+
});
|
|
17106
|
+
}
|
|
17098
17107
|
return jsonResult({ decision: "DENY", reasonCode: result.reasonCode });
|
|
17099
17108
|
}
|
|
17100
17109
|
if (result.decision === "ALLOW" && result.capabilityToken) {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odingard/guardian-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"mcpName": "io.github.Odingard/guardian-mcp",
|
|
5
|
-
"description": "MCP server that routes an agent's tool calls through Guardian
|
|
5
|
+
"description": "MCP server that routes an agent's tool calls through Guardian — the human authority layer for autonomous AI. Every tool call gets a deterministic ALLOW/ASK/DENY decision before anything executes; ASK holds for human approval, DENY never runs, every outcome carries a verifiable receipt.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
27
|
-
"@odingard/guardian-sdk": "^0.
|
|
27
|
+
"@odingard/guardian-sdk": "^0.2.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^22",
|
package/server.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-10-17/server.schema.json",
|
|
3
3
|
"name": "io.github.Odingard/guardian-mcp",
|
|
4
4
|
"description": "MCP server that routes an agent's tool calls through Guardian — Human Authority Infrastructure for Autonomous AI. Every tool call gets a deterministic ALLOW/ASK/DENY decision before anything executes; ASK holds the call until a human approves it, DENY never runs, and every outcome carries a verifiable receipt.",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.2.0",
|
|
6
6
|
"tools": [
|
|
7
7
|
{
|
|
8
8
|
"name": "guardian_invoke_tool",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{
|
|
26
26
|
"registryType": "npm",
|
|
27
27
|
"identifier": "@odingard/guardian-mcp",
|
|
28
|
-
"version": "0.
|
|
28
|
+
"version": "0.2.0",
|
|
29
29
|
"transport": {
|
|
30
30
|
"type": "stdio"
|
|
31
31
|
},
|