wolfpack-mcp 1.0.58 → 1.0.59
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/dist/agentBuilderTools.js +49 -0
- package/dist/client.js +6 -0
- package/dist/index.js +17 -0
- package/package.json +1 -1
|
@@ -91,6 +91,37 @@ export const AGENT_BUILDER_TOOLS = [
|
|
|
91
91
|
required: ['agent_id'],
|
|
92
92
|
},
|
|
93
93
|
},
|
|
94
|
+
{
|
|
95
|
+
name: 'get_agent_mcp_selections',
|
|
96
|
+
description: "List the template MCP servers this agent has opted out of. Returns { disabled: string[] } where each string is the MCP server key from the agent's template.",
|
|
97
|
+
inputSchema: {
|
|
98
|
+
type: 'object',
|
|
99
|
+
properties: {
|
|
100
|
+
agent_id: { type: 'string', description: 'Agent profile ID' },
|
|
101
|
+
...ORG_SLUG_PROP,
|
|
102
|
+
},
|
|
103
|
+
required: ['agent_id'],
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'update_agent_mcp_selections',
|
|
108
|
+
description: 'Replace the list of template MCP servers this agent has opted out of. ' +
|
|
109
|
+
'Pass an empty array to re-enable every template server. Template servers ' +
|
|
110
|
+
'not in the list stay enabled; those in the list are disabled for this agent.',
|
|
111
|
+
inputSchema: {
|
|
112
|
+
type: 'object',
|
|
113
|
+
properties: {
|
|
114
|
+
agent_id: { type: 'string', description: 'Agent profile ID' },
|
|
115
|
+
disabled: {
|
|
116
|
+
type: 'array',
|
|
117
|
+
items: { type: 'string' },
|
|
118
|
+
description: 'MCP server keys (from the template) to disable for this agent',
|
|
119
|
+
},
|
|
120
|
+
...ORG_SLUG_PROP,
|
|
121
|
+
},
|
|
122
|
+
required: ['agent_id', 'disabled'],
|
|
123
|
+
},
|
|
124
|
+
},
|
|
94
125
|
// ─── Group 2: Project Assignment ─────────────────────────────────────────
|
|
95
126
|
{
|
|
96
127
|
name: 'list_agent_projects',
|
|
@@ -763,6 +794,24 @@ export async function handleAgentBuilderTool(name, args, client) {
|
|
|
763
794
|
const agent = await client.updateAgent(agent_id, fields, resolveOrg(parsed));
|
|
764
795
|
return { content: [{ type: 'text', text: `Updated agent\n\n${text(agent)}` }] };
|
|
765
796
|
}
|
|
797
|
+
case 'get_agent_mcp_selections': {
|
|
798
|
+
const parsed = AgentIdSchema.parse(args);
|
|
799
|
+
const selections = await client.getAgentMcpSelections(parsed.agent_id, resolveOrg(parsed));
|
|
800
|
+
return { content: [{ type: 'text', text: text(selections) }] };
|
|
801
|
+
}
|
|
802
|
+
case 'update_agent_mcp_selections': {
|
|
803
|
+
const parsed = z
|
|
804
|
+
.object({
|
|
805
|
+
agent_id: z.string(),
|
|
806
|
+
disabled: z.array(z.string()),
|
|
807
|
+
org_slug: orgSlugField,
|
|
808
|
+
})
|
|
809
|
+
.parse(args);
|
|
810
|
+
const selections = await client.updateAgentMcpSelections(parsed.agent_id, parsed.disabled, resolveOrg(parsed));
|
|
811
|
+
return {
|
|
812
|
+
content: [{ type: 'text', text: `Updated MCP selections\n\n${text(selections)}` }],
|
|
813
|
+
};
|
|
814
|
+
}
|
|
766
815
|
// ─── Project Assignment ─────────────────────────────────────────────────
|
|
767
816
|
case 'list_agent_projects': {
|
|
768
817
|
const parsed = AgentIdSchema.parse(args);
|
package/dist/client.js
CHANGED
|
@@ -604,6 +604,12 @@ export class WolfpackClient {
|
|
|
604
604
|
async updateAgent(agentId, body, orgSlug) {
|
|
605
605
|
return this.api.patch(this.withOrgSlug(`/agents/${agentId}`, orgSlug), body);
|
|
606
606
|
}
|
|
607
|
+
async getAgentMcpSelections(agentId, orgSlug) {
|
|
608
|
+
return this.api.get(this.withOrgSlug(`/agents/${agentId}/mcp-selections`, orgSlug));
|
|
609
|
+
}
|
|
610
|
+
async updateAgentMcpSelections(agentId, disabled, orgSlug) {
|
|
611
|
+
return this.api.patch(this.withOrgSlug(`/agents/${agentId}/mcp-selections`, orgSlug), { disabled });
|
|
612
|
+
}
|
|
607
613
|
// ─── Agent Builder: Project Assignment ────────────────────────────────────
|
|
608
614
|
async listAgentProjects(agentId, orgSlug) {
|
|
609
615
|
return this.api.get(this.withOrgSlug(`/agents/${agentId}/projects`, orgSlug));
|
package/dist/index.js
CHANGED
|
@@ -374,6 +374,10 @@ const UpdateWikiPageSchema = z.object({
|
|
|
374
374
|
page_id: z.string().describe('The page slug'),
|
|
375
375
|
title: z.string().optional().describe('Updated title'),
|
|
376
376
|
content: z.string().optional().describe('Updated content (markdown)'),
|
|
377
|
+
tag_ids: z
|
|
378
|
+
.array(z.string())
|
|
379
|
+
.optional()
|
|
380
|
+
.describe('Tag IDs to apply to the page (replaces existing tags)'),
|
|
377
381
|
project_slug: z
|
|
378
382
|
.string()
|
|
379
383
|
.optional()
|
|
@@ -410,6 +414,7 @@ const UpdateJournalEntrySchema = z.object({
|
|
|
410
414
|
entry_id: z.string().describe('The entry refId (number)'),
|
|
411
415
|
title: z.string().optional().describe('Updated title'),
|
|
412
416
|
content: z.string().optional().describe('Updated content (markdown)'),
|
|
417
|
+
tag_ids: z.array(z.string()).optional().describe('Tag IDs to apply (replaces existing tags)'),
|
|
413
418
|
project_slug: z
|
|
414
419
|
.string()
|
|
415
420
|
.optional()
|
|
@@ -1307,6 +1312,11 @@ class WolfpackMCPServer {
|
|
|
1307
1312
|
type: 'string',
|
|
1308
1313
|
description: 'Updated content (markdown)',
|
|
1309
1314
|
},
|
|
1315
|
+
tag_ids: {
|
|
1316
|
+
type: 'array',
|
|
1317
|
+
items: { type: 'string' },
|
|
1318
|
+
description: 'Tag IDs to apply to the page (replaces existing tags). Use list tags endpoint to get available tag IDs.',
|
|
1319
|
+
},
|
|
1310
1320
|
project_slug: {
|
|
1311
1321
|
type: 'string',
|
|
1312
1322
|
description: 'Project slug (required for multi-project users, use list_projects to get slugs)',
|
|
@@ -1392,6 +1402,11 @@ class WolfpackMCPServer {
|
|
|
1392
1402
|
type: 'string',
|
|
1393
1403
|
description: 'Updated content (markdown)',
|
|
1394
1404
|
},
|
|
1405
|
+
tag_ids: {
|
|
1406
|
+
type: 'array',
|
|
1407
|
+
items: { type: 'string' },
|
|
1408
|
+
description: 'Tag IDs to apply (replaces existing tags)',
|
|
1409
|
+
},
|
|
1395
1410
|
project_slug: {
|
|
1396
1411
|
type: 'string',
|
|
1397
1412
|
description: 'Project slug (required for multi-project users, use list_projects to get slugs)',
|
|
@@ -2333,6 +2348,7 @@ class WolfpackMCPServer {
|
|
|
2333
2348
|
const page = await this.client.updateWikiPage(parsed.page_id, {
|
|
2334
2349
|
title: parsed.title,
|
|
2335
2350
|
content: parsed.content,
|
|
2351
|
+
tagIds: parsed.tag_ids,
|
|
2336
2352
|
}, teamSlug);
|
|
2337
2353
|
return {
|
|
2338
2354
|
content: [
|
|
@@ -2396,6 +2412,7 @@ class WolfpackMCPServer {
|
|
|
2396
2412
|
const entry = await this.client.updateJournalEntry(parsed.entry_id, {
|
|
2397
2413
|
title: parsed.title,
|
|
2398
2414
|
content: parsed.content,
|
|
2415
|
+
tagIds: parsed.tag_ids,
|
|
2399
2416
|
}, teamSlug);
|
|
2400
2417
|
return {
|
|
2401
2418
|
content: [
|