@ferrfleet/mcp 10.21.0 → 10.21.2
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.
|
@@ -390,30 +390,30 @@ describe('ferrfleet tools', () => {
|
|
|
390
390
|
});
|
|
391
391
|
it('bind_repo upserts the binding with the repository and agent', async () => {
|
|
392
392
|
await handlers.get('bind_repo')({
|
|
393
|
-
repo_full_name: '
|
|
393
|
+
repo_full_name: 'acme/widgets',
|
|
394
394
|
agent_id: 'pr-review',
|
|
395
395
|
});
|
|
396
396
|
const call = lastCall();
|
|
397
397
|
expect(call.url).toBe(`${FLEET}/repos/bindings`);
|
|
398
398
|
expect(call.method).toBe('POST');
|
|
399
|
-
expect(call.body).toEqual({ repo_full_name: '
|
|
399
|
+
expect(call.body).toEqual({ repo_full_name: 'acme/widgets', agent_id: 'pr-review' });
|
|
400
400
|
});
|
|
401
401
|
it('bind_repo keeps enabled=false so a binding can be switched off', async () => {
|
|
402
402
|
await handlers.get('bind_repo')({
|
|
403
|
-
repo_full_name: '
|
|
403
|
+
repo_full_name: 'acme/widgets',
|
|
404
404
|
agent_id: 'pr-review',
|
|
405
405
|
enabled: false,
|
|
406
406
|
});
|
|
407
407
|
expect(lastCall().body).toEqual({
|
|
408
|
-
repo_full_name: '
|
|
408
|
+
repo_full_name: 'acme/widgets',
|
|
409
409
|
agent_id: 'pr-review',
|
|
410
410
|
enabled: false,
|
|
411
411
|
});
|
|
412
412
|
});
|
|
413
413
|
it('bind_repo only accepts owner/name repositories', () => {
|
|
414
414
|
const repo = schemas.get('bind_repo').repo_full_name;
|
|
415
|
-
expect(repo.safeParse('
|
|
416
|
-
expect(repo.safeParse('
|
|
415
|
+
expect(repo.safeParse('acme/widgets').success).toBe(true);
|
|
416
|
+
expect(repo.safeParse('widgets').success).toBe(false);
|
|
417
417
|
expect(repo.safeParse('a/b/c').success).toBe(false);
|
|
418
418
|
expect(repo.safeParse('../agents').success).toBe(false);
|
|
419
419
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ferrfleet/mcp",
|
|
3
|
-
"version": "10.21.
|
|
3
|
+
"version": "10.21.2",
|
|
4
4
|
"description": "Model Context Protocol server for FerrFleet: agents, runs, skills",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"model-context-protocol"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@ferrlabs/mcp-core": "^10.
|
|
25
|
+
"@ferrlabs/mcp-core": "^10.17.1",
|
|
26
26
|
"zod": "^4.3.6"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|