wolfpack-mcp 1.0.69 → 1.0.70
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.
|
@@ -89,6 +89,11 @@ export const AGENT_BUILDER_TOOLS = [
|
|
|
89
89
|
description: 'LLM model family (e.g. "sonnet"). Agent auto-upgrades to latest in family.',
|
|
90
90
|
},
|
|
91
91
|
scheduling_enabled: { type: 'boolean', description: 'Whether scheduled tasks are enabled' },
|
|
92
|
+
api_key_permissions: {
|
|
93
|
+
type: 'array',
|
|
94
|
+
items: { type: 'string' },
|
|
95
|
+
description: 'Replace the full set of MCP permissions granted to the agent\'s session API key (e.g. ["mcp:work_items:read", "mcp:comments:create"]). Grant only what the agent\'s tasks need. An empty array falls back to a read-only default.',
|
|
96
|
+
},
|
|
92
97
|
...ORG_SLUG_PROP,
|
|
93
98
|
},
|
|
94
99
|
required: ['agent_id'],
|
|
@@ -781,6 +786,7 @@ export async function handleAgentBuilderTool(name, args, client) {
|
|
|
781
786
|
llm_model: z.string().nullable().optional(),
|
|
782
787
|
llm_family: z.string().nullable().optional(),
|
|
783
788
|
scheduling_enabled: z.boolean().optional(),
|
|
789
|
+
api_key_permissions: z.array(z.string()).optional(),
|
|
784
790
|
org_slug: orgSlugField,
|
|
785
791
|
})
|
|
786
792
|
.parse(args);
|
|
@@ -804,6 +810,8 @@ export async function handleAgentBuilderTool(name, args, client) {
|
|
|
804
810
|
fields.llmFamily = rest.llm_family;
|
|
805
811
|
if (rest.scheduling_enabled !== undefined)
|
|
806
812
|
fields.schedulingEnabled = rest.scheduling_enabled;
|
|
813
|
+
if (rest.api_key_permissions !== undefined)
|
|
814
|
+
fields.apiKeyPermissions = rest.api_key_permissions;
|
|
807
815
|
const agent = await client.updateAgent(agent_id, fields, resolveOrg(parsed));
|
|
808
816
|
return { content: [{ type: 'text', text: `Updated agent\n\n${text(agent)}` }] };
|
|
809
817
|
}
|