@frockbot/plugin-mcp 0.3.2 → 0.3.3
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/package.json +8 -8
- package/src/agent.test.ts +9 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frockbot/plugin-mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@frockbot/configuration-core": "0.3.
|
|
29
|
-
"@frockbot/connection-core": "0.3.
|
|
30
|
-
"@frockbot/kernel-contracts": "0.3.
|
|
31
|
-
"@frockbot/plugin-credentials": "0.3.
|
|
32
|
-
"@frockbot/plugin-settings": "0.3.
|
|
33
|
-
"@frockbot/plugin-tools": "0.3.
|
|
34
|
-
"@frockbot/plugin-web": "0.3.
|
|
28
|
+
"@frockbot/configuration-core": "0.3.3",
|
|
29
|
+
"@frockbot/connection-core": "0.3.3",
|
|
30
|
+
"@frockbot/kernel-contracts": "0.3.3",
|
|
31
|
+
"@frockbot/plugin-credentials": "0.3.3",
|
|
32
|
+
"@frockbot/plugin-settings": "0.3.3",
|
|
33
|
+
"@frockbot/plugin-tools": "0.3.3",
|
|
34
|
+
"@frockbot/plugin-web": "0.3.3",
|
|
35
35
|
"cordis": "4.0.0-rc.8"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
package/src/agent.test.ts
CHANGED
|
@@ -177,6 +177,8 @@ describe("mounting one enabled Capability", () => {
|
|
|
177
177
|
|
|
178
178
|
expect(schemas.map((schema) => schema.name)).toEqual([
|
|
179
179
|
"mcp__example__echo",
|
|
180
|
+
"get_dynamic_tools",
|
|
181
|
+
"call_dynamic_tool",
|
|
180
182
|
]);
|
|
181
183
|
expect(schemas[0]!.inputSchema).toEqual({
|
|
182
184
|
type: "object",
|
|
@@ -189,7 +191,7 @@ describe("mounting one enabled Capability", () => {
|
|
|
189
191
|
|
|
190
192
|
for (const turnType of ["chat", "automation", "subagent"] as const) {
|
|
191
193
|
expect(root.tools.schemas({ turnType }).map((tool) => tool.name)).toEqual(
|
|
192
|
-
["mcp__example__echo"],
|
|
194
|
+
["mcp__example__echo", "get_dynamic_tools", "call_dynamic_tool"],
|
|
193
195
|
);
|
|
194
196
|
}
|
|
195
197
|
});
|
|
@@ -260,7 +262,9 @@ describe("mounting one enabled Capability", () => {
|
|
|
260
262
|
});
|
|
261
263
|
|
|
262
264
|
expect(mounted).toBe(false);
|
|
263
|
-
expect(
|
|
265
|
+
expect(
|
|
266
|
+
root.tools.schemas({ turnType: "chat" }).map((tool) => tool.name),
|
|
267
|
+
).toEqual(["get_dynamic_tools", "call_dynamic_tool"]);
|
|
264
268
|
expect(failures[0]).toContain("401");
|
|
265
269
|
});
|
|
266
270
|
|
|
@@ -327,7 +331,9 @@ describe("the durable lifecycle a mount participates in", () => {
|
|
|
327
331
|
}),
|
|
328
332
|
});
|
|
329
333
|
|
|
330
|
-
const
|
|
334
|
+
const schema = root.tools
|
|
335
|
+
.schemas({ turnType: "chat" })
|
|
336
|
+
.find((candidate) => candidate.name === "mcp__example__echo");
|
|
331
337
|
expect(schema?.name).toBe("mcp__example__echo");
|
|
332
338
|
// The instructions reach the model in the exact normalized request the
|
|
333
339
|
// session log records, which is the only place a User can prove it.
|