nlook-mcp 1.0.67 → 1.0.69
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/api-client.d.ts +41 -41
- package/dist/api-client.d.ts.map +1 -1
- package/dist/api-client.js +6 -0
- package/dist/index.js +70 -198
- package/package.json +1 -1
package/dist/api-client.d.ts
CHANGED
|
@@ -201,7 +201,7 @@ export declare class NLookAPIClient {
|
|
|
201
201
|
data?: TemplateConfig;
|
|
202
202
|
error?: string;
|
|
203
203
|
}>;
|
|
204
|
-
listWorkflows(): Promise<
|
|
204
|
+
listWorkflows(): Promise<{
|
|
205
205
|
workflows: Array<{
|
|
206
206
|
id: number;
|
|
207
207
|
title: string;
|
|
@@ -210,8 +210,9 @@ export declare class NLookAPIClient {
|
|
|
210
210
|
created_at: string;
|
|
211
211
|
updated_at: string;
|
|
212
212
|
}>;
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
total: number;
|
|
214
|
+
}>;
|
|
215
|
+
getWorkflow(id: number): Promise<{
|
|
215
216
|
workflow: {
|
|
216
217
|
id: number;
|
|
217
218
|
title: string;
|
|
@@ -234,29 +235,34 @@ export declare class NLookAPIClient {
|
|
|
234
235
|
created_at: string;
|
|
235
236
|
updated_at: string;
|
|
236
237
|
};
|
|
237
|
-
}
|
|
238
|
+
}>;
|
|
238
239
|
createWorkflow(data: {
|
|
239
240
|
title: string;
|
|
240
241
|
description?: string;
|
|
241
|
-
}): Promise<
|
|
242
|
+
}): Promise<{
|
|
242
243
|
workflow: {
|
|
243
244
|
id: number;
|
|
244
245
|
title: string;
|
|
245
246
|
};
|
|
246
|
-
}
|
|
247
|
+
}>;
|
|
247
248
|
updateWorkflow(id: number, data: {
|
|
248
249
|
title?: string;
|
|
249
250
|
description?: string;
|
|
250
251
|
nodes?: Array<Record<string, unknown>>;
|
|
251
252
|
edges?: Array<Record<string, unknown>>;
|
|
252
253
|
viewport?: Record<string, number>;
|
|
253
|
-
}): Promise<
|
|
254
|
+
}): Promise<{
|
|
254
255
|
workflow: Record<string, unknown>;
|
|
255
|
-
}
|
|
256
|
-
deleteWorkflow(id: number): Promise<
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
256
|
+
}>;
|
|
257
|
+
deleteWorkflow(id: number): Promise<Record<string, unknown>>;
|
|
258
|
+
listRouterTools(): Promise<{
|
|
259
|
+
tools: Array<{
|
|
260
|
+
name: string;
|
|
261
|
+
description: string;
|
|
262
|
+
parameters?: Record<string, unknown>;
|
|
263
|
+
}>;
|
|
264
|
+
}>;
|
|
265
|
+
listAgents(): Promise<{
|
|
260
266
|
agents: Array<{
|
|
261
267
|
id: number;
|
|
262
268
|
name: string;
|
|
@@ -266,8 +272,9 @@ export declare class NLookAPIClient {
|
|
|
266
272
|
tool_count: number;
|
|
267
273
|
created_at: string;
|
|
268
274
|
}>;
|
|
269
|
-
|
|
270
|
-
|
|
275
|
+
total: number;
|
|
276
|
+
}>;
|
|
277
|
+
getAgent(agentId: number): Promise<Record<string, unknown>>;
|
|
271
278
|
createAgent(data: {
|
|
272
279
|
name: string;
|
|
273
280
|
description?: string;
|
|
@@ -276,12 +283,10 @@ export declare class NLookAPIClient {
|
|
|
276
283
|
temperature?: number;
|
|
277
284
|
max_tokens?: number;
|
|
278
285
|
tools?: string[];
|
|
279
|
-
}): Promise<
|
|
280
|
-
updateAgent(agentId: number, data: Record<string, unknown>): Promise<
|
|
281
|
-
deleteAgent(agentId: number): Promise<
|
|
282
|
-
|
|
283
|
-
}>>;
|
|
284
|
-
listSkills(): Promise<APIResponse<{
|
|
286
|
+
}): Promise<Record<string, unknown>>;
|
|
287
|
+
updateAgent(agentId: number, data: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
288
|
+
deleteAgent(agentId: number): Promise<Record<string, unknown>>;
|
|
289
|
+
listSkills(): Promise<{
|
|
285
290
|
skills: Array<{
|
|
286
291
|
id: number;
|
|
287
292
|
name: string;
|
|
@@ -289,23 +294,22 @@ export declare class NLookAPIClient {
|
|
|
289
294
|
skill_type: string;
|
|
290
295
|
created_at: string;
|
|
291
296
|
}>;
|
|
292
|
-
|
|
293
|
-
|
|
297
|
+
total: number;
|
|
298
|
+
}>;
|
|
299
|
+
getSkill(skillId: number): Promise<Record<string, unknown>>;
|
|
294
300
|
createSkill(data: {
|
|
295
301
|
name: string;
|
|
296
302
|
description?: string;
|
|
297
303
|
skill_type: string;
|
|
298
304
|
content?: string;
|
|
299
305
|
config?: Record<string, unknown>;
|
|
300
|
-
}): Promise<
|
|
301
|
-
updateSkill(skillId: number, data: Record<string, unknown>): Promise<
|
|
302
|
-
deleteSkill(skillId: number): Promise<
|
|
303
|
-
|
|
304
|
-
}>>;
|
|
305
|
-
listSchedules(): Promise<APIResponse<{
|
|
306
|
+
}): Promise<Record<string, unknown>>;
|
|
307
|
+
updateSkill(skillId: number, data: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
308
|
+
deleteSkill(skillId: number): Promise<Record<string, unknown>>;
|
|
309
|
+
listSchedules(): Promise<{
|
|
306
310
|
schedules: Array<Record<string, unknown>>;
|
|
307
311
|
total: number;
|
|
308
|
-
}
|
|
312
|
+
}>;
|
|
309
313
|
createSchedule(workflowId: number, data: {
|
|
310
314
|
name: string;
|
|
311
315
|
cron_expression: string;
|
|
@@ -315,25 +319,21 @@ export declare class NLookAPIClient {
|
|
|
315
319
|
http_method?: string;
|
|
316
320
|
input?: Record<string, unknown>;
|
|
317
321
|
enabled?: boolean;
|
|
318
|
-
}): Promise<
|
|
319
|
-
updateSchedule(workflowId: number, scheduleId: number, data: Record<string, unknown>): Promise<
|
|
320
|
-
deleteSchedule(workflowId: number, scheduleId: number): Promise<
|
|
321
|
-
|
|
322
|
-
}>>;
|
|
323
|
-
listRuns(): Promise<APIResponse<{
|
|
322
|
+
}): Promise<Record<string, unknown>>;
|
|
323
|
+
updateSchedule(workflowId: number, scheduleId: number, data: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
324
|
+
deleteSchedule(workflowId: number, scheduleId: number): Promise<Record<string, unknown>>;
|
|
325
|
+
listRuns(): Promise<{
|
|
324
326
|
runs: Array<Record<string, unknown>>;
|
|
325
327
|
total: number;
|
|
326
|
-
}
|
|
327
|
-
getRun(workflowId: number, runId: number): Promise<
|
|
328
|
+
}>;
|
|
329
|
+
getRun(workflowId: number, runId: number): Promise<Record<string, unknown>>;
|
|
328
330
|
startRun(workflowId: number, data: {
|
|
329
331
|
name?: string;
|
|
330
332
|
trigger_type?: string;
|
|
331
333
|
run_type?: string;
|
|
332
334
|
agent_id?: number;
|
|
333
335
|
input?: Record<string, unknown>;
|
|
334
|
-
}): Promise<
|
|
335
|
-
deleteRun(workflowId: number, runId: number): Promise<
|
|
336
|
-
success: boolean;
|
|
337
|
-
}>>;
|
|
336
|
+
}): Promise<Record<string, unknown>>;
|
|
337
|
+
deleteRun(workflowId: number, runId: number): Promise<Record<string, unknown>>;
|
|
338
338
|
}
|
|
339
339
|
//# sourceMappingURL=api-client.d.ts.map
|
package/dist/api-client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../src/api-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,qBAAqB,EACrB,qBAAqB,EACrB,IAAI,EACJ,iBAAiB,EACjB,iBAAiB,EACjB,QAAQ,EACR,qBAAqB,EACrB,WAAW,EACX,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,yBAAyB,EACzB,YAAY,EACZ,QAAQ,EACR,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,EACP,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,yBAAyB,EACzB,sBAAsB,EACtB,SAAS,EACT,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,2BAA2B,EAC3B,gCAAgC,EAChC,+BA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,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAQxF,QAAQ,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAI5E,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAI3E,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIrL,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAGrF"}
|
package/dist/api-client.js
CHANGED
|
@@ -643,6 +643,12 @@ export class NLookAPIClient {
|
|
|
643
643
|
});
|
|
644
644
|
}
|
|
645
645
|
// ============================================================
|
|
646
|
+
// Router Tool APIs
|
|
647
|
+
// ============================================================
|
|
648
|
+
async listRouterTools() {
|
|
649
|
+
return this.request('/api/v1/public/router-tools');
|
|
650
|
+
}
|
|
651
|
+
// ============================================================
|
|
646
652
|
// Agent APIs
|
|
647
653
|
// ============================================================
|
|
648
654
|
async listAgents() {
|
package/dist/index.js
CHANGED
|
@@ -2118,22 +2118,16 @@ function registerTools() {
|
|
|
2118
2118
|
server.tool('list_workflows', 'List all workflows for the current user', {}, async () => {
|
|
2119
2119
|
try {
|
|
2120
2120
|
const result = await client.listWorkflows();
|
|
2121
|
-
|
|
2122
|
-
return {
|
|
2123
|
-
content: [{ type: 'text', text: `❌ Failed to list workflows: ${result.error || 'Unknown error'}` }],
|
|
2124
|
-
isError: true,
|
|
2125
|
-
};
|
|
2126
|
-
}
|
|
2127
|
-
const workflows = result.data?.workflows || [];
|
|
2121
|
+
const workflows = result.workflows || [];
|
|
2128
2122
|
if (workflows.length === 0) {
|
|
2129
|
-
return { content: [{ type: 'text', text: '
|
|
2123
|
+
return { content: [{ type: 'text', text: 'No workflows found.' }] };
|
|
2130
2124
|
}
|
|
2131
2125
|
const list = workflows.map((w, i) => `${i + 1}. **${w.title}** (ID: ${w.id})\n ${w.description || 'No description'}\n Nodes: ${w.node_count} | Updated: ${w.updated_at}`).join('\n\n');
|
|
2132
|
-
return { content: [{ type: 'text', text:
|
|
2126
|
+
return { content: [{ type: 'text', text: `Workflows (${workflows.length})\n\n${list}` }] };
|
|
2133
2127
|
}
|
|
2134
2128
|
catch (error) {
|
|
2135
2129
|
return {
|
|
2136
|
-
content: [{ type: 'text', text:
|
|
2130
|
+
content: [{ type: 'text', text: `Failed to list workflows: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2137
2131
|
isError: true,
|
|
2138
2132
|
};
|
|
2139
2133
|
}
|
|
@@ -2144,31 +2138,19 @@ function registerTools() {
|
|
|
2144
2138
|
}, async ({ workflow_id }) => {
|
|
2145
2139
|
try {
|
|
2146
2140
|
const result = await client.getWorkflow(workflow_id);
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
isError: true,
|
|
2151
|
-
};
|
|
2152
|
-
}
|
|
2153
|
-
const w = result.data?.workflow;
|
|
2154
|
-
if (!w) {
|
|
2155
|
-
return {
|
|
2156
|
-
content: [{ type: 'text', text: '❌ Workflow not found' }],
|
|
2157
|
-
isError: true,
|
|
2158
|
-
};
|
|
2159
|
-
}
|
|
2160
|
-
const nodes = w.nodes?.map(n => ` - [${n.node_type}] ${n.node_id} → ref:${n.ref_id} ${n.data?.title || ''}`).join('\n') || ' (none)';
|
|
2161
|
-
const edges = w.edges?.map(e => ` - ${e.source_node_id} → ${e.target_node_id} ${e.label ? `(${e.label})` : ''}`).join('\n') || ' (none)';
|
|
2141
|
+
const w = result.workflow;
|
|
2142
|
+
const nodes = w.nodes?.map(n => ` - [${n.node_type}] ${n.node_id} -> ref:${n.ref_id} ${n.data?.title || ''}`).join('\n') || ' (none)';
|
|
2143
|
+
const edges = w.edges?.map(e => ` - ${e.source_node_id} -> ${e.target_node_id} ${e.label ? `(${e.label})` : ''}`).join('\n') || ' (none)';
|
|
2162
2144
|
return {
|
|
2163
2145
|
content: [{
|
|
2164
2146
|
type: 'text',
|
|
2165
|
-
text:
|
|
2147
|
+
text: `**${w.title}** (ID: ${w.id})\n${w.description || ''}\n\n**Nodes:**\n${nodes}\n\n**Edges:**\n${edges}`,
|
|
2166
2148
|
}],
|
|
2167
2149
|
};
|
|
2168
2150
|
}
|
|
2169
2151
|
catch (error) {
|
|
2170
2152
|
return {
|
|
2171
|
-
content: [{ type: 'text', text:
|
|
2153
|
+
content: [{ type: 'text', text: `Workflow not found: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2172
2154
|
isError: true,
|
|
2173
2155
|
};
|
|
2174
2156
|
}
|
|
@@ -2180,20 +2162,14 @@ function registerTools() {
|
|
|
2180
2162
|
}, async ({ title, description }) => {
|
|
2181
2163
|
try {
|
|
2182
2164
|
const result = await client.createWorkflow({ title, description });
|
|
2183
|
-
|
|
2184
|
-
return {
|
|
2185
|
-
content: [{ type: 'text', text: `❌ Failed to create workflow: ${result.error || 'Unknown error'}` }],
|
|
2186
|
-
isError: true,
|
|
2187
|
-
};
|
|
2188
|
-
}
|
|
2189
|
-
const w = result.data?.workflow;
|
|
2165
|
+
const w = result.workflow;
|
|
2190
2166
|
return {
|
|
2191
|
-
content: [{ type: 'text', text:
|
|
2167
|
+
content: [{ type: 'text', text: `Workflow created: **${w.title}** (ID: ${w.id})` }],
|
|
2192
2168
|
};
|
|
2193
2169
|
}
|
|
2194
2170
|
catch (error) {
|
|
2195
2171
|
return {
|
|
2196
|
-
content: [{ type: 'text', text:
|
|
2172
|
+
content: [{ type: 'text', text: `Failed to create workflow: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2197
2173
|
isError: true,
|
|
2198
2174
|
};
|
|
2199
2175
|
}
|
|
@@ -2210,20 +2186,14 @@ function registerTools() {
|
|
|
2210
2186
|
data.title = title;
|
|
2211
2187
|
if (description !== undefined)
|
|
2212
2188
|
data.description = description;
|
|
2213
|
-
|
|
2214
|
-
if (!result.success) {
|
|
2215
|
-
return {
|
|
2216
|
-
content: [{ type: 'text', text: `❌ Failed to update workflow: ${result.error || 'Unknown error'}` }],
|
|
2217
|
-
isError: true,
|
|
2218
|
-
};
|
|
2219
|
-
}
|
|
2189
|
+
await client.updateWorkflow(workflow_id, data);
|
|
2220
2190
|
return {
|
|
2221
|
-
content: [{ type: 'text', text:
|
|
2191
|
+
content: [{ type: 'text', text: `Workflow ${workflow_id} updated` }],
|
|
2222
2192
|
};
|
|
2223
2193
|
}
|
|
2224
2194
|
catch (error) {
|
|
2225
2195
|
return {
|
|
2226
|
-
content: [{ type: 'text', text:
|
|
2196
|
+
content: [{ type: 'text', text: `Failed to update workflow: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2227
2197
|
isError: true,
|
|
2228
2198
|
};
|
|
2229
2199
|
}
|
|
@@ -2233,20 +2203,30 @@ function registerTools() {
|
|
|
2233
2203
|
workflow_id: z.number().describe('Workflow ID'),
|
|
2234
2204
|
}, async ({ workflow_id }) => {
|
|
2235
2205
|
try {
|
|
2236
|
-
|
|
2237
|
-
if (!result.success) {
|
|
2238
|
-
return {
|
|
2239
|
-
content: [{ type: 'text', text: `❌ Failed to delete workflow: ${result.error || 'Unknown error'}` }],
|
|
2240
|
-
isError: true,
|
|
2241
|
-
};
|
|
2242
|
-
}
|
|
2206
|
+
await client.deleteWorkflow(workflow_id);
|
|
2243
2207
|
return {
|
|
2244
|
-
content: [{ type: 'text', text:
|
|
2208
|
+
content: [{ type: 'text', text: `Workflow ${workflow_id} deleted` }],
|
|
2245
2209
|
};
|
|
2246
2210
|
}
|
|
2247
2211
|
catch (error) {
|
|
2248
2212
|
return {
|
|
2249
|
-
content: [{ type: 'text', text:
|
|
2213
|
+
content: [{ type: 'text', text: `Failed to delete workflow: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2214
|
+
isError: true,
|
|
2215
|
+
};
|
|
2216
|
+
}
|
|
2217
|
+
});
|
|
2218
|
+
// ============================================================
|
|
2219
|
+
// Router Tools (available tools for agents)
|
|
2220
|
+
// ============================================================
|
|
2221
|
+
// List Router Tools
|
|
2222
|
+
server.tool('list_router_tools', 'List all available tools that can be assigned to agents. These are tools provided by connected routers.', {}, async () => {
|
|
2223
|
+
try {
|
|
2224
|
+
const result = await client.listRouterTools();
|
|
2225
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
2226
|
+
}
|
|
2227
|
+
catch (error) {
|
|
2228
|
+
return {
|
|
2229
|
+
content: [{ type: 'text', text: `Failed to list router tools: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2250
2230
|
isError: true,
|
|
2251
2231
|
};
|
|
2252
2232
|
}
|
|
@@ -2258,17 +2238,11 @@ function registerTools() {
|
|
|
2258
2238
|
server.tool('list_agents', 'List all AI agents. Returns agent name, model, description, and tools.', {}, async () => {
|
|
2259
2239
|
try {
|
|
2260
2240
|
const result = await client.listAgents();
|
|
2261
|
-
|
|
2262
|
-
return {
|
|
2263
|
-
content: [{ type: 'text', text: `Failed to list agents: ${result.error || 'Unknown error'}` }],
|
|
2264
|
-
isError: true,
|
|
2265
|
-
};
|
|
2266
|
-
}
|
|
2267
|
-
return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }] };
|
|
2241
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
2268
2242
|
}
|
|
2269
2243
|
catch (error) {
|
|
2270
2244
|
return {
|
|
2271
|
-
content: [{ type: 'text', text: `
|
|
2245
|
+
content: [{ type: 'text', text: `Failed to list agents: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2272
2246
|
isError: true,
|
|
2273
2247
|
};
|
|
2274
2248
|
}
|
|
@@ -2279,17 +2253,11 @@ function registerTools() {
|
|
|
2279
2253
|
}, async ({ agent_id }) => {
|
|
2280
2254
|
try {
|
|
2281
2255
|
const result = await client.getAgent(agent_id);
|
|
2282
|
-
|
|
2283
|
-
return {
|
|
2284
|
-
content: [{ type: 'text', text: `Agent not found: ${result.error || 'Unknown error'}` }],
|
|
2285
|
-
isError: true,
|
|
2286
|
-
};
|
|
2287
|
-
}
|
|
2288
|
-
return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }] };
|
|
2256
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
2289
2257
|
}
|
|
2290
2258
|
catch (error) {
|
|
2291
2259
|
return {
|
|
2292
|
-
content: [{ type: 'text', text: `
|
|
2260
|
+
content: [{ type: 'text', text: `Agent not found: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2293
2261
|
isError: true,
|
|
2294
2262
|
};
|
|
2295
2263
|
}
|
|
@@ -2319,17 +2287,11 @@ function registerTools() {
|
|
|
2319
2287
|
if (tools !== undefined)
|
|
2320
2288
|
data.tools = tools;
|
|
2321
2289
|
const result = await client.createAgent(data);
|
|
2322
|
-
|
|
2323
|
-
return {
|
|
2324
|
-
content: [{ type: 'text', text: `Failed to create agent: ${result.error || 'Unknown error'}` }],
|
|
2325
|
-
isError: true,
|
|
2326
|
-
};
|
|
2327
|
-
}
|
|
2328
|
-
return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }] };
|
|
2290
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
2329
2291
|
}
|
|
2330
2292
|
catch (error) {
|
|
2331
2293
|
return {
|
|
2332
|
-
content: [{ type: 'text', text: `
|
|
2294
|
+
content: [{ type: 'text', text: `Failed to create agent: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2333
2295
|
isError: true,
|
|
2334
2296
|
};
|
|
2335
2297
|
}
|
|
@@ -2362,17 +2324,11 @@ function registerTools() {
|
|
|
2362
2324
|
if (tools !== undefined)
|
|
2363
2325
|
data.tools = tools;
|
|
2364
2326
|
const result = await client.updateAgent(agent_id, data);
|
|
2365
|
-
|
|
2366
|
-
return {
|
|
2367
|
-
content: [{ type: 'text', text: `Failed to update agent: ${result.error || 'Unknown error'}` }],
|
|
2368
|
-
isError: true,
|
|
2369
|
-
};
|
|
2370
|
-
}
|
|
2371
|
-
return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }] };
|
|
2327
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
2372
2328
|
}
|
|
2373
2329
|
catch (error) {
|
|
2374
2330
|
return {
|
|
2375
|
-
content: [{ type: 'text', text: `
|
|
2331
|
+
content: [{ type: 'text', text: `Failed to update agent: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2376
2332
|
isError: true,
|
|
2377
2333
|
};
|
|
2378
2334
|
}
|
|
@@ -2382,18 +2338,12 @@ function registerTools() {
|
|
|
2382
2338
|
agent_id: z.number().describe('Agent ID'),
|
|
2383
2339
|
}, async ({ agent_id }) => {
|
|
2384
2340
|
try {
|
|
2385
|
-
|
|
2386
|
-
if (!result.success) {
|
|
2387
|
-
return {
|
|
2388
|
-
content: [{ type: 'text', text: `Failed to delete agent: ${result.error || 'Unknown error'}` }],
|
|
2389
|
-
isError: true,
|
|
2390
|
-
};
|
|
2391
|
-
}
|
|
2341
|
+
await client.deleteAgent(agent_id);
|
|
2392
2342
|
return { content: [{ type: 'text', text: `Agent ${agent_id} deleted successfully.` }] };
|
|
2393
2343
|
}
|
|
2394
2344
|
catch (error) {
|
|
2395
2345
|
return {
|
|
2396
|
-
content: [{ type: 'text', text: `
|
|
2346
|
+
content: [{ type: 'text', text: `Failed to delete agent: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2397
2347
|
isError: true,
|
|
2398
2348
|
};
|
|
2399
2349
|
}
|
|
@@ -2405,17 +2355,11 @@ function registerTools() {
|
|
|
2405
2355
|
server.tool('list_skills', 'List all skills. Returns skill name, type, and description.', {}, async () => {
|
|
2406
2356
|
try {
|
|
2407
2357
|
const result = await client.listSkills();
|
|
2408
|
-
|
|
2409
|
-
return {
|
|
2410
|
-
content: [{ type: 'text', text: `Failed to list skills: ${result.error || 'Unknown error'}` }],
|
|
2411
|
-
isError: true,
|
|
2412
|
-
};
|
|
2413
|
-
}
|
|
2414
|
-
return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }] };
|
|
2358
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
2415
2359
|
}
|
|
2416
2360
|
catch (error) {
|
|
2417
2361
|
return {
|
|
2418
|
-
content: [{ type: 'text', text: `
|
|
2362
|
+
content: [{ type: 'text', text: `Failed to list skills: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2419
2363
|
isError: true,
|
|
2420
2364
|
};
|
|
2421
2365
|
}
|
|
@@ -2426,17 +2370,11 @@ function registerTools() {
|
|
|
2426
2370
|
}, async ({ skill_id }) => {
|
|
2427
2371
|
try {
|
|
2428
2372
|
const result = await client.getSkill(skill_id);
|
|
2429
|
-
|
|
2430
|
-
return {
|
|
2431
|
-
content: [{ type: 'text', text: `Skill not found: ${result.error || 'Unknown error'}` }],
|
|
2432
|
-
isError: true,
|
|
2433
|
-
};
|
|
2434
|
-
}
|
|
2435
|
-
return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }] };
|
|
2373
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
2436
2374
|
}
|
|
2437
2375
|
catch (error) {
|
|
2438
2376
|
return {
|
|
2439
|
-
content: [{ type: 'text', text: `
|
|
2377
|
+
content: [{ type: 'text', text: `Skill not found: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2440
2378
|
isError: true,
|
|
2441
2379
|
};
|
|
2442
2380
|
}
|
|
@@ -2458,17 +2396,11 @@ function registerTools() {
|
|
|
2458
2396
|
if (config !== undefined)
|
|
2459
2397
|
data.config = config;
|
|
2460
2398
|
const result = await client.createSkill(data);
|
|
2461
|
-
|
|
2462
|
-
return {
|
|
2463
|
-
content: [{ type: 'text', text: `Failed to create skill: ${result.error || 'Unknown error'}` }],
|
|
2464
|
-
isError: true,
|
|
2465
|
-
};
|
|
2466
|
-
}
|
|
2467
|
-
return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }] };
|
|
2399
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
2468
2400
|
}
|
|
2469
2401
|
catch (error) {
|
|
2470
2402
|
return {
|
|
2471
|
-
content: [{ type: 'text', text: `
|
|
2403
|
+
content: [{ type: 'text', text: `Failed to create skill: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2472
2404
|
isError: true,
|
|
2473
2405
|
};
|
|
2474
2406
|
}
|
|
@@ -2495,17 +2427,11 @@ function registerTools() {
|
|
|
2495
2427
|
if (config !== undefined)
|
|
2496
2428
|
data.config = config;
|
|
2497
2429
|
const result = await client.updateSkill(skill_id, data);
|
|
2498
|
-
|
|
2499
|
-
return {
|
|
2500
|
-
content: [{ type: 'text', text: `Failed to update skill: ${result.error || 'Unknown error'}` }],
|
|
2501
|
-
isError: true,
|
|
2502
|
-
};
|
|
2503
|
-
}
|
|
2504
|
-
return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }] };
|
|
2430
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
2505
2431
|
}
|
|
2506
2432
|
catch (error) {
|
|
2507
2433
|
return {
|
|
2508
|
-
content: [{ type: 'text', text: `
|
|
2434
|
+
content: [{ type: 'text', text: `Failed to update skill: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2509
2435
|
isError: true,
|
|
2510
2436
|
};
|
|
2511
2437
|
}
|
|
@@ -2515,18 +2441,12 @@ function registerTools() {
|
|
|
2515
2441
|
skill_id: z.number().describe('Skill ID'),
|
|
2516
2442
|
}, async ({ skill_id }) => {
|
|
2517
2443
|
try {
|
|
2518
|
-
|
|
2519
|
-
if (!result.success) {
|
|
2520
|
-
return {
|
|
2521
|
-
content: [{ type: 'text', text: `Failed to delete skill: ${result.error || 'Unknown error'}` }],
|
|
2522
|
-
isError: true,
|
|
2523
|
-
};
|
|
2524
|
-
}
|
|
2444
|
+
await client.deleteSkill(skill_id);
|
|
2525
2445
|
return { content: [{ type: 'text', text: `Skill ${skill_id} deleted successfully.` }] };
|
|
2526
2446
|
}
|
|
2527
2447
|
catch (error) {
|
|
2528
2448
|
return {
|
|
2529
|
-
content: [{ type: 'text', text: `
|
|
2449
|
+
content: [{ type: 'text', text: `Failed to delete skill: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2530
2450
|
isError: true,
|
|
2531
2451
|
};
|
|
2532
2452
|
}
|
|
@@ -2538,17 +2458,11 @@ function registerTools() {
|
|
|
2538
2458
|
server.tool('list_schedules', 'List all workflow schedules with their cron expressions and status.', {}, async () => {
|
|
2539
2459
|
try {
|
|
2540
2460
|
const result = await client.listSchedules();
|
|
2541
|
-
|
|
2542
|
-
return {
|
|
2543
|
-
content: [{ type: 'text', text: `Failed to list schedules: ${result.error || 'Unknown error'}` }],
|
|
2544
|
-
isError: true,
|
|
2545
|
-
};
|
|
2546
|
-
}
|
|
2547
|
-
return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }] };
|
|
2461
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
2548
2462
|
}
|
|
2549
2463
|
catch (error) {
|
|
2550
2464
|
return {
|
|
2551
|
-
content: [{ type: 'text', text: `
|
|
2465
|
+
content: [{ type: 'text', text: `Failed to list schedules: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2552
2466
|
isError: true,
|
|
2553
2467
|
};
|
|
2554
2468
|
}
|
|
@@ -2580,17 +2494,11 @@ function registerTools() {
|
|
|
2580
2494
|
if (enabled !== undefined)
|
|
2581
2495
|
data.enabled = enabled;
|
|
2582
2496
|
const result = await client.createSchedule(workflow_id, data);
|
|
2583
|
-
|
|
2584
|
-
return {
|
|
2585
|
-
content: [{ type: 'text', text: `Failed to create schedule: ${result.error || 'Unknown error'}` }],
|
|
2586
|
-
isError: true,
|
|
2587
|
-
};
|
|
2588
|
-
}
|
|
2589
|
-
return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }] };
|
|
2497
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
2590
2498
|
}
|
|
2591
2499
|
catch (error) {
|
|
2592
2500
|
return {
|
|
2593
|
-
content: [{ type: 'text', text: `
|
|
2501
|
+
content: [{ type: 'text', text: `Failed to create schedule: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2594
2502
|
isError: true,
|
|
2595
2503
|
};
|
|
2596
2504
|
}
|
|
@@ -2627,17 +2535,11 @@ function registerTools() {
|
|
|
2627
2535
|
if (enabled !== undefined)
|
|
2628
2536
|
data.enabled = enabled;
|
|
2629
2537
|
const result = await client.updateSchedule(workflow_id, schedule_id, data);
|
|
2630
|
-
|
|
2631
|
-
return {
|
|
2632
|
-
content: [{ type: 'text', text: `Failed to update schedule: ${result.error || 'Unknown error'}` }],
|
|
2633
|
-
isError: true,
|
|
2634
|
-
};
|
|
2635
|
-
}
|
|
2636
|
-
return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }] };
|
|
2538
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
2637
2539
|
}
|
|
2638
2540
|
catch (error) {
|
|
2639
2541
|
return {
|
|
2640
|
-
content: [{ type: 'text', text: `
|
|
2542
|
+
content: [{ type: 'text', text: `Failed to update schedule: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2641
2543
|
isError: true,
|
|
2642
2544
|
};
|
|
2643
2545
|
}
|
|
@@ -2648,18 +2550,12 @@ function registerTools() {
|
|
|
2648
2550
|
schedule_id: z.number().describe('Schedule ID'),
|
|
2649
2551
|
}, async ({ workflow_id, schedule_id }) => {
|
|
2650
2552
|
try {
|
|
2651
|
-
|
|
2652
|
-
if (!result.success) {
|
|
2653
|
-
return {
|
|
2654
|
-
content: [{ type: 'text', text: `Failed to delete schedule: ${result.error || 'Unknown error'}` }],
|
|
2655
|
-
isError: true,
|
|
2656
|
-
};
|
|
2657
|
-
}
|
|
2553
|
+
await client.deleteSchedule(workflow_id, schedule_id);
|
|
2658
2554
|
return { content: [{ type: 'text', text: `Schedule ${schedule_id} deleted successfully.` }] };
|
|
2659
2555
|
}
|
|
2660
2556
|
catch (error) {
|
|
2661
2557
|
return {
|
|
2662
|
-
content: [{ type: 'text', text: `
|
|
2558
|
+
content: [{ type: 'text', text: `Failed to delete schedule: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2663
2559
|
isError: true,
|
|
2664
2560
|
};
|
|
2665
2561
|
}
|
|
@@ -2671,17 +2567,11 @@ function registerTools() {
|
|
|
2671
2567
|
server.tool('list_runs', 'List all workflow runs with their status, duration, and trigger info.', {}, async () => {
|
|
2672
2568
|
try {
|
|
2673
2569
|
const result = await client.listRuns();
|
|
2674
|
-
|
|
2675
|
-
return {
|
|
2676
|
-
content: [{ type: 'text', text: `Failed to list runs: ${result.error || 'Unknown error'}` }],
|
|
2677
|
-
isError: true,
|
|
2678
|
-
};
|
|
2679
|
-
}
|
|
2680
|
-
return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }] };
|
|
2570
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
2681
2571
|
}
|
|
2682
2572
|
catch (error) {
|
|
2683
2573
|
return {
|
|
2684
|
-
content: [{ type: 'text', text: `
|
|
2574
|
+
content: [{ type: 'text', text: `Failed to list runs: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2685
2575
|
isError: true,
|
|
2686
2576
|
};
|
|
2687
2577
|
}
|
|
@@ -2693,17 +2583,11 @@ function registerTools() {
|
|
|
2693
2583
|
}, async ({ workflow_id, run_id }) => {
|
|
2694
2584
|
try {
|
|
2695
2585
|
const result = await client.getRun(workflow_id, run_id);
|
|
2696
|
-
|
|
2697
|
-
return {
|
|
2698
|
-
content: [{ type: 'text', text: `Run not found: ${result.error || 'Unknown error'}` }],
|
|
2699
|
-
isError: true,
|
|
2700
|
-
};
|
|
2701
|
-
}
|
|
2702
|
-
return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }] };
|
|
2586
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
2703
2587
|
}
|
|
2704
2588
|
catch (error) {
|
|
2705
2589
|
return {
|
|
2706
|
-
content: [{ type: 'text', text: `
|
|
2590
|
+
content: [{ type: 'text', text: `Run not found: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2707
2591
|
isError: true,
|
|
2708
2592
|
};
|
|
2709
2593
|
}
|
|
@@ -2727,17 +2611,11 @@ function registerTools() {
|
|
|
2727
2611
|
if (input !== undefined)
|
|
2728
2612
|
data.input = input;
|
|
2729
2613
|
const result = await client.startRun(workflow_id, data);
|
|
2730
|
-
|
|
2731
|
-
return {
|
|
2732
|
-
content: [{ type: 'text', text: `Failed to start run: ${result.error || 'Unknown error'}` }],
|
|
2733
|
-
isError: true,
|
|
2734
|
-
};
|
|
2735
|
-
}
|
|
2736
|
-
return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }] };
|
|
2614
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
2737
2615
|
}
|
|
2738
2616
|
catch (error) {
|
|
2739
2617
|
return {
|
|
2740
|
-
content: [{ type: 'text', text: `
|
|
2618
|
+
content: [{ type: 'text', text: `Failed to start run: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2741
2619
|
isError: true,
|
|
2742
2620
|
};
|
|
2743
2621
|
}
|
|
@@ -2748,18 +2626,12 @@ function registerTools() {
|
|
|
2748
2626
|
run_id: z.number().describe('Run ID'),
|
|
2749
2627
|
}, async ({ workflow_id, run_id }) => {
|
|
2750
2628
|
try {
|
|
2751
|
-
|
|
2752
|
-
if (!result.success) {
|
|
2753
|
-
return {
|
|
2754
|
-
content: [{ type: 'text', text: `Failed to delete run: ${result.error || 'Unknown error'}` }],
|
|
2755
|
-
isError: true,
|
|
2756
|
-
};
|
|
2757
|
-
}
|
|
2629
|
+
await client.deleteRun(workflow_id, run_id);
|
|
2758
2630
|
return { content: [{ type: 'text', text: `Run ${run_id} deleted successfully.` }] };
|
|
2759
2631
|
}
|
|
2760
2632
|
catch (error) {
|
|
2761
2633
|
return {
|
|
2762
|
-
content: [{ type: 'text', text: `
|
|
2634
|
+
content: [{ type: 'text', text: `Failed to delete run: ${error instanceof Error ? error.message : 'Unknown error'}` }],
|
|
2763
2635
|
isError: true,
|
|
2764
2636
|
};
|
|
2765
2637
|
}
|