@panyam/mcpkit-rooms 0.8.9 → 0.8.10
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 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -5,9 +5,11 @@ room for what it shows and offers tools there. An agent attached to the room thr
|
|
|
5
5
|
calls them over MCP, and every call goes to one page. Pre-SEP and experimental, like the bridge. The
|
|
6
6
|
design is in issue [#1581](https://github.com/panyam/mcpkit/issues/1581).
|
|
7
7
|
|
|
8
|
-
It speaks to a [massrelay](https://github.com/panyam/massrelay) relay (v0.
|
|
9
|
-
on `@panyam/massrelay` (0.2
|
|
10
|
-
`@panyam/servicekit-client` (0.
|
|
8
|
+
It speaks to a [massrelay](https://github.com/panyam/massrelay) relay (v0.3.0 or later) and depends
|
|
9
|
+
on `@panyam/massrelay` (0.3.2 or later, whose `CollabClient` it joins through) and
|
|
10
|
+
`@panyam/servicekit-client` (0.2.0 or later). massrelay v0.3.0 renamed the JSON field a reply is
|
|
11
|
+
addressed by, so a page from 0.8.7 or earlier and a v0.3 relay don't work together: the page's
|
|
12
|
+
replies never arrive and the agent's call times out. Upgrade the page with the Go side.
|
|
11
13
|
|
|
12
14
|
```
|
|
13
15
|
npm install @panyam/mcpkit-rooms
|
|
@@ -65,8 +67,7 @@ the page only when the page agreed:
|
|
|
65
67
|
and the code is withdrawn once used. Two minutes by default, at most ten.
|
|
66
68
|
- Each call's `ctx.caller` is the agent's `{ subject, client? }` from the bridge's validated token,
|
|
67
69
|
so a tool can refuse per caller. Any peer in the room can send the page a call, though, so don't
|
|
68
|
-
rely on it alone yet
|
|
69
|
-
relay identity).
|
|
70
|
+
rely on it alone yet. The Go page has `TrustBridges`, and the TS one doesn't yet (#1621).
|
|
70
71
|
- `revoke({ subject, client? })` ends grants to that principal, `revokeAll()` ends every grant, and
|
|
71
72
|
`grants()` lists them. A grant outlives the agent's MCP session and ends when revoked or when the
|
|
72
73
|
page leaves.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panyam/mcpkit-rooms",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.10",
|
|
4
4
|
"description": "Page side of the mcpkit room bridge: offer WebMCP-shaped tools to agents through a massrelay room",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@bufbuild/protobuf": "^2.11.0",
|
|
35
|
-
"@panyam/massrelay": "^0.3.
|
|
36
|
-
"@panyam/servicekit-client": "^0.
|
|
35
|
+
"@panyam/massrelay": "^0.3.2",
|
|
36
|
+
"@panyam/servicekit-client": "^0.2.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@modelcontextprotocol/client": "^2.3.1",
|