@absolutejs/mcp 0.11.0 → 0.11.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/README.md +6 -0
- package/dist/index.js +2 -18
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -21,6 +21,12 @@ action request; allowed calls execute through a short-lived single-use lease and
|
|
|
21
21
|
produce a receipt. Requestable denials return an `absolute.action_decision`
|
|
22
22
|
payload containing the action id for an approval workflow.
|
|
23
23
|
|
|
24
|
+
Agency is a required host peer (`>=0.7.1 <0.8.0`) and is externalized from the
|
|
25
|
+
MCP build. This guarantees that every transport uses the host's one action
|
|
26
|
+
ledger instead of embedding a private enforcement runtime. The package tests
|
|
27
|
+
against exactly `0.7.1`; a new Agency minor requires an explicit compatibility
|
|
28
|
+
release.
|
|
29
|
+
|
|
24
30
|
```ts
|
|
25
31
|
import { createAgency, createMemoryAgencyStore } from "@absolutejs/agency";
|
|
26
32
|
|
package/dist/index.js
CHANGED
|
@@ -644,24 +644,8 @@ var createMcpOAuthProvider = (options) => {
|
|
|
644
644
|
}
|
|
645
645
|
};
|
|
646
646
|
};
|
|
647
|
-
//
|
|
648
|
-
|
|
649
|
-
actor,
|
|
650
|
-
call,
|
|
651
|
-
effects = ["read"],
|
|
652
|
-
requiredScopes = []
|
|
653
|
-
}) => ({
|
|
654
|
-
action: "call_tool",
|
|
655
|
-
actor,
|
|
656
|
-
context: { required_scopes: requiredScopes, source: "mcp" },
|
|
657
|
-
effects,
|
|
658
|
-
input: call.arguments,
|
|
659
|
-
resource: {
|
|
660
|
-
id: call.name,
|
|
661
|
-
properties: { server_id: call.serverId },
|
|
662
|
-
type: "mcp_tool"
|
|
663
|
-
}
|
|
664
|
-
});
|
|
647
|
+
// src/dispatch.ts
|
|
648
|
+
import { createCoazActionInput } from "@absolutejs/agency/authzen";
|
|
665
649
|
|
|
666
650
|
// src/jsonrpc.ts
|
|
667
651
|
var JSONRPC_PARSE_ERROR = -32700;
|
package/package.json
CHANGED
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
"author": "Alex Kahn",
|
|
3
3
|
"description": "Serve a remote Model Context Protocol endpoint (streamable HTTP, stateless) from a tool/prompt/resource registry — OAuth bearer auth, RFC 9728 discovery, and per-call guards are yours to wire, the JSON-RPC protocol is done correctly by construction.",
|
|
4
4
|
"devDependencies": {
|
|
5
|
+
"@absolutejs/agency": "0.7.1",
|
|
5
6
|
"@types/bun": "latest",
|
|
6
7
|
"elysia": "^1.1.0",
|
|
7
8
|
"prettier": "3.5.3",
|
|
8
9
|
"typescript": "5.8.3"
|
|
9
10
|
},
|
|
10
11
|
"peerDependencies": {
|
|
12
|
+
"@absolutejs/agency": ">=0.7.1 <0.8.0",
|
|
11
13
|
"elysia": ">=1.1.0"
|
|
12
14
|
},
|
|
13
15
|
"dependencies": {
|
|
14
|
-
"@absolutejs/agency": "^0.6.0",
|
|
15
16
|
"@absolutejs/manifest": "^0.3.0",
|
|
16
17
|
"@sinclair/typebox": "^0.34.0"
|
|
17
18
|
},
|
|
@@ -51,12 +52,12 @@
|
|
|
51
52
|
"LICENSE"
|
|
52
53
|
],
|
|
53
54
|
"scripts": {
|
|
54
|
-
"build": "rm -rf dist && bun build src/index.ts src/manifest.ts --outdir dist --root ./src --target=bun --external elysia && tsc --emitDeclarationOnly --project tsconfig.json && absolute-manifest emit",
|
|
55
|
+
"build": "rm -rf dist && bun build src/index.ts src/manifest.ts --outdir dist --root ./src --target=bun --external @absolutejs/agency --external '@absolutejs/agency/*' --external elysia && tsc --emitDeclarationOnly --project tsconfig.json && absolute-manifest emit",
|
|
55
56
|
"format": "prettier --write \"./**/*.{ts,json,md}\"",
|
|
56
57
|
"release": "bun run format && bun run test && bun run build && bun publish",
|
|
57
58
|
"test": "bun test",
|
|
58
59
|
"typecheck": "tsc --noEmit --project tsconfig.json"
|
|
59
60
|
},
|
|
60
61
|
"types": "./dist/src/index.d.ts",
|
|
61
|
-
"version": "0.11.
|
|
62
|
+
"version": "0.11.1"
|
|
62
63
|
}
|