langmart-gateway-type3 3.0.44 β 3.0.45
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/src/mcp-tools/gateway-tools.d.ts +107 -0
- package/dist/src/mcp-tools/gateway-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/gateway-tools.js +398 -0
- package/dist/src/mcp-tools/gateway-tools.js.map +1 -0
- package/dist/src/types/mcp-types.d.ts +76 -0
- package/dist/src/types/mcp-types.d.ts.map +1 -0
- package/dist/src/types/mcp-types.js +54 -0
- package/dist/src/types/mcp-types.js.map +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gateway Management MCP Tools
|
|
3
|
+
* Tools for the Orchestrator agent to discover and manage gateways
|
|
4
|
+
* Process ID: ORCH-GATEWAY-001
|
|
5
|
+
*/
|
|
6
|
+
export interface Tool {
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
inputSchema: {
|
|
10
|
+
type: string;
|
|
11
|
+
properties: Record<string, any>;
|
|
12
|
+
required?: string[];
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface ToolResult {
|
|
16
|
+
success: boolean;
|
|
17
|
+
data?: any;
|
|
18
|
+
error?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Gateway List Tool
|
|
22
|
+
* Lists all available gateways with their capabilities
|
|
23
|
+
*/
|
|
24
|
+
export declare const gatewayListTool: Tool;
|
|
25
|
+
export declare function executeGatewayList(args: {
|
|
26
|
+
filter?: {
|
|
27
|
+
type?: number;
|
|
28
|
+
status?: string;
|
|
29
|
+
hasTools?: string[];
|
|
30
|
+
userId?: string;
|
|
31
|
+
};
|
|
32
|
+
}, context: {
|
|
33
|
+
registryUrl: string;
|
|
34
|
+
apiKey: string;
|
|
35
|
+
}): Promise<ToolResult>;
|
|
36
|
+
/**
|
|
37
|
+
* Gateway Capabilities Tool
|
|
38
|
+
* Get detailed capabilities of a specific gateway
|
|
39
|
+
*/
|
|
40
|
+
export declare const gatewayCapabilitiesTool: Tool;
|
|
41
|
+
export declare function executeGatewayCapabilities(args: {
|
|
42
|
+
gateway_id: string;
|
|
43
|
+
}, context: {
|
|
44
|
+
registryUrl: string;
|
|
45
|
+
apiKey: string;
|
|
46
|
+
}): Promise<ToolResult>;
|
|
47
|
+
/**
|
|
48
|
+
* Gateway Availability Tool
|
|
49
|
+
* Check if a gateway can accept new work
|
|
50
|
+
*/
|
|
51
|
+
export declare const gatewayAvailabilityTool: Tool;
|
|
52
|
+
export declare function executeGatewayAvailability(args: {
|
|
53
|
+
gateway_id: string;
|
|
54
|
+
}, context: {
|
|
55
|
+
registryUrl: string;
|
|
56
|
+
apiKey: string;
|
|
57
|
+
}): Promise<ToolResult>;
|
|
58
|
+
/**
|
|
59
|
+
* Workflow Nodes Tool
|
|
60
|
+
* Get all agent nodes in a workflow with their requirements
|
|
61
|
+
*/
|
|
62
|
+
export declare const workflowNodesTool: Tool;
|
|
63
|
+
export declare function executeWorkflowNodes(args: {
|
|
64
|
+
workflow_id: string;
|
|
65
|
+
}, context: {
|
|
66
|
+
registryUrl: string;
|
|
67
|
+
apiKey: string;
|
|
68
|
+
}): Promise<ToolResult>;
|
|
69
|
+
/**
|
|
70
|
+
* Workflow Assign Gateway Tool
|
|
71
|
+
* Assign a gateway to a specific workflow node
|
|
72
|
+
*/
|
|
73
|
+
export declare const workflowAssignGatewayTool: Tool;
|
|
74
|
+
export declare function executeWorkflowAssignGateway(args: {
|
|
75
|
+
workflow_id: string;
|
|
76
|
+
node_id: string;
|
|
77
|
+
gateway_id: string;
|
|
78
|
+
}, context: {
|
|
79
|
+
registryUrl: string;
|
|
80
|
+
apiKey: string;
|
|
81
|
+
}): Promise<ToolResult>;
|
|
82
|
+
/**
|
|
83
|
+
* Workflow Check Ready Tool
|
|
84
|
+
* Check if workflow is ready for execution
|
|
85
|
+
*/
|
|
86
|
+
export declare const workflowCheckReadyTool: Tool;
|
|
87
|
+
export declare function executeWorkflowCheckReady(args: {
|
|
88
|
+
workflow_id: string;
|
|
89
|
+
}, context: {
|
|
90
|
+
registryUrl: string;
|
|
91
|
+
apiKey: string;
|
|
92
|
+
}): Promise<ToolResult>;
|
|
93
|
+
/**
|
|
94
|
+
* Workflow Start Execution Tool
|
|
95
|
+
* Start workflow execution after all assignments are complete
|
|
96
|
+
*/
|
|
97
|
+
export declare const workflowStartExecutionTool: Tool;
|
|
98
|
+
export declare function executeWorkflowStart(args: {
|
|
99
|
+
workflow_id: string;
|
|
100
|
+
input_data?: Record<string, any>;
|
|
101
|
+
}, context: {
|
|
102
|
+
registryUrl: string;
|
|
103
|
+
apiKey: string;
|
|
104
|
+
}): Promise<ToolResult>;
|
|
105
|
+
export declare const gatewayTools: Tool[];
|
|
106
|
+
export declare const gatewayToolExecutors: Record<string, Function>;
|
|
107
|
+
//# sourceMappingURL=gateway-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateway-tools.d.ts","sourceRoot":"","sources":["../../../src/mcp-tools/gateway-tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,MAAM,WAAW,IAAI;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACT,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAChC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;KACvB,CAAC;CACL;AAED,MAAM,WAAW,UAAU;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAuCD;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,IAiB7B,CAAC;AAEF,wBAAsB,kBAAkB,CACpC,IAAI,EAAE;IAAE,MAAM,CA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AM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,EAClE,OAAO,EAAE;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACjD,OAAO,CAAC,UAAU,CAAC,CAuCrB;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,IAUpC,CAAC;AAEF,wBAAsB,yBAAyB,CAC3C,IAAI,EAAE;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,EAC7B,OAAO,EAAE;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACjD,OAAO,CAAC,UAAU,CAAC,CAkCrB;AAED;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,IAWxC,CAAC;AAEF,wBAAsB,oBAAoB,CACtC,IAAI,EAAE;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAE,EAC/D,OAAO,EAAE;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACjD,OAAO,CAAC,UAAU,CAAC,CAqCrB;AAGD,eAAO,MAAM,YAAY,QAQxB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAQzD,CAAC"}
|
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Gateway Management MCP Tools
|
|
4
|
+
* Tools for the Orchestrator agent to discover and manage gateways
|
|
5
|
+
* Process ID: ORCH-GATEWAY-001
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.gatewayToolExecutors = exports.gatewayTools = exports.workflowStartExecutionTool = exports.workflowCheckReadyTool = exports.workflowAssignGatewayTool = exports.workflowNodesTool = exports.gatewayAvailabilityTool = exports.gatewayCapabilitiesTool = exports.gatewayListTool = void 0;
|
|
9
|
+
exports.executeGatewayList = executeGatewayList;
|
|
10
|
+
exports.executeGatewayCapabilities = executeGatewayCapabilities;
|
|
11
|
+
exports.executeGatewayAvailability = executeGatewayAvailability;
|
|
12
|
+
exports.executeWorkflowNodes = executeWorkflowNodes;
|
|
13
|
+
exports.executeWorkflowAssignGateway = executeWorkflowAssignGateway;
|
|
14
|
+
exports.executeWorkflowCheckReady = executeWorkflowCheckReady;
|
|
15
|
+
exports.executeWorkflowStart = executeWorkflowStart;
|
|
16
|
+
/**
|
|
17
|
+
* Gateway List Tool
|
|
18
|
+
* Lists all available gateways with their capabilities
|
|
19
|
+
*/
|
|
20
|
+
exports.gatewayListTool = {
|
|
21
|
+
name: 'gateway_list',
|
|
22
|
+
description: 'List all available Gateway Type 2 and Type 3 instances with their capabilities, status, and current load',
|
|
23
|
+
inputSchema: {
|
|
24
|
+
type: 'object',
|
|
25
|
+
properties: {
|
|
26
|
+
filter: {
|
|
27
|
+
type: 'object',
|
|
28
|
+
properties: {
|
|
29
|
+
type: { type: 'integer', description: 'Filter by gateway type: 2 for cloud-managed, 3 for self-hosted' },
|
|
30
|
+
status: { type: 'string', enum: ['connected', 'disconnected', 'busy'] },
|
|
31
|
+
hasTools: { type: 'array', items: { type: 'string' }, description: 'Filter gateways that have specific tools' },
|
|
32
|
+
userId: { type: 'string', description: 'Filter by user ownership' }
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
async function executeGatewayList(args, context) {
|
|
39
|
+
try {
|
|
40
|
+
// Call Gateway Type 1 to get gateway list
|
|
41
|
+
const queryParams = new URLSearchParams();
|
|
42
|
+
if (args.filter?.type)
|
|
43
|
+
queryParams.set('type', args.filter.type.toString());
|
|
44
|
+
if (args.filter?.status === 'connected')
|
|
45
|
+
queryParams.set('remoteLLMSessionOnly', 'true');
|
|
46
|
+
const response = await fetch(`${context.registryUrl}/api/gateways?${queryParams}`, {
|
|
47
|
+
method: 'GET',
|
|
48
|
+
headers: {
|
|
49
|
+
'Authorization': `Bearer ${context.apiKey}`,
|
|
50
|
+
'Content-Type': 'application/json'
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
if (!response.ok) {
|
|
54
|
+
const error = await response.json();
|
|
55
|
+
return {
|
|
56
|
+
success: false,
|
|
57
|
+
error: error.message || 'Failed to fetch gateway list'
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const data = await response.json();
|
|
61
|
+
return {
|
|
62
|
+
success: true,
|
|
63
|
+
data: {
|
|
64
|
+
gateways: data.gateways,
|
|
65
|
+
summary: {
|
|
66
|
+
total: data.gateways.length,
|
|
67
|
+
type2Count: data.gateways.filter((g) => g.type === 2).length,
|
|
68
|
+
type3Count: data.gateways.filter((g) => g.type === 3).length,
|
|
69
|
+
connectedCount: data.gateways.filter((g) => g.status === 'connected').length
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
catch (error) {
|
|
75
|
+
return {
|
|
76
|
+
success: false,
|
|
77
|
+
error: `Gateway list failed: ${error.message}`
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Gateway Capabilities Tool
|
|
83
|
+
* Get detailed capabilities of a specific gateway
|
|
84
|
+
*/
|
|
85
|
+
exports.gatewayCapabilitiesTool = {
|
|
86
|
+
name: 'gateway_get_capabilities',
|
|
87
|
+
description: 'Get detailed capabilities of a specific gateway including tools, models, and resource limits',
|
|
88
|
+
inputSchema: {
|
|
89
|
+
type: 'object',
|
|
90
|
+
properties: {
|
|
91
|
+
gateway_id: { type: 'string', description: 'Gateway ID to query' }
|
|
92
|
+
},
|
|
93
|
+
required: ['gateway_id']
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
async function executeGatewayCapabilities(args, context) {
|
|
97
|
+
try {
|
|
98
|
+
const response = await fetch(`${context.registryUrl}/api/gateways/${args.gateway_id}/capabilities`, {
|
|
99
|
+
headers: {
|
|
100
|
+
'Authorization': `Bearer ${context.apiKey}`,
|
|
101
|
+
'Content-Type': 'application/json'
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
if (!response.ok) {
|
|
105
|
+
const error = await response.json();
|
|
106
|
+
return {
|
|
107
|
+
success: false,
|
|
108
|
+
error: error.message || 'Failed to fetch gateway capabilities'
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
const data = await response.json();
|
|
112
|
+
return {
|
|
113
|
+
success: true,
|
|
114
|
+
data: data
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
catch (error) {
|
|
118
|
+
return {
|
|
119
|
+
success: false,
|
|
120
|
+
error: `Gateway capabilities query failed: ${error.message}`
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Gateway Availability Tool
|
|
126
|
+
* Check if a gateway can accept new work
|
|
127
|
+
*/
|
|
128
|
+
exports.gatewayAvailabilityTool = {
|
|
129
|
+
name: 'gateway_check_availability',
|
|
130
|
+
description: 'Check if a gateway is available to accept new workflow tasks',
|
|
131
|
+
inputSchema: {
|
|
132
|
+
type: 'object',
|
|
133
|
+
properties: {
|
|
134
|
+
gateway_id: { type: 'string', description: 'Gateway ID to check' }
|
|
135
|
+
},
|
|
136
|
+
required: ['gateway_id']
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
async function executeGatewayAvailability(args, context) {
|
|
140
|
+
try {
|
|
141
|
+
const response = await fetch(`${context.registryUrl}/api/gateways/${args.gateway_id}/availability`, {
|
|
142
|
+
headers: {
|
|
143
|
+
'Authorization': `Bearer ${context.apiKey}`,
|
|
144
|
+
'Content-Type': 'application/json'
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
if (!response.ok) {
|
|
148
|
+
const error = await response.json();
|
|
149
|
+
return {
|
|
150
|
+
success: false,
|
|
151
|
+
error: error.message || 'Failed to check gateway availability'
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
const data = await response.json();
|
|
155
|
+
return {
|
|
156
|
+
success: true,
|
|
157
|
+
data: {
|
|
158
|
+
available: data.available,
|
|
159
|
+
currentLoad: data.current_load,
|
|
160
|
+
queueDepth: data.queue_depth,
|
|
161
|
+
estimatedWaitSeconds: data.estimated_wait_seconds
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
catch (error) {
|
|
166
|
+
return {
|
|
167
|
+
success: false,
|
|
168
|
+
error: `Gateway availability check failed: ${error.message}`
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Workflow Nodes Tool
|
|
174
|
+
* Get all agent nodes in a workflow with their requirements
|
|
175
|
+
*/
|
|
176
|
+
exports.workflowNodesTool = {
|
|
177
|
+
name: 'workflow_get_nodes',
|
|
178
|
+
description: 'Get all agent nodes in a workflow with their capability requirements',
|
|
179
|
+
inputSchema: {
|
|
180
|
+
type: 'object',
|
|
181
|
+
properties: {
|
|
182
|
+
workflow_id: { type: 'string', description: 'Workflow UUID' }
|
|
183
|
+
},
|
|
184
|
+
required: ['workflow_id']
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
async function executeWorkflowNodes(args, context) {
|
|
188
|
+
try {
|
|
189
|
+
const response = await fetch(`${context.registryUrl}/api/agents/workflows/${args.workflow_id}/nodes`, {
|
|
190
|
+
headers: {
|
|
191
|
+
'Authorization': `Bearer ${context.apiKey}`,
|
|
192
|
+
'Content-Type': 'application/json'
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
if (!response.ok) {
|
|
196
|
+
const error = await response.json();
|
|
197
|
+
return {
|
|
198
|
+
success: false,
|
|
199
|
+
error: error.message || 'Failed to fetch workflow nodes'
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
const data = await response.json();
|
|
203
|
+
return {
|
|
204
|
+
success: true,
|
|
205
|
+
data: {
|
|
206
|
+
workflowId: args.workflow_id,
|
|
207
|
+
nodes: data.nodes,
|
|
208
|
+
totalNodes: data.nodes.length,
|
|
209
|
+
assignedNodes: data.nodes.filter((n) => n.assignedGateway).length,
|
|
210
|
+
unassignedNodes: data.nodes.filter((n) => !n.assignedGateway).length
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
catch (error) {
|
|
215
|
+
return {
|
|
216
|
+
success: false,
|
|
217
|
+
error: `Workflow nodes query failed: ${error.message}`
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Workflow Assign Gateway Tool
|
|
223
|
+
* Assign a gateway to a specific workflow node
|
|
224
|
+
*/
|
|
225
|
+
exports.workflowAssignGatewayTool = {
|
|
226
|
+
name: 'workflow_assign_gateway',
|
|
227
|
+
description: 'Assign a gateway to a workflow node for execution',
|
|
228
|
+
inputSchema: {
|
|
229
|
+
type: 'object',
|
|
230
|
+
properties: {
|
|
231
|
+
workflow_id: { type: 'string', description: 'Workflow UUID' },
|
|
232
|
+
node_id: { type: 'string', description: 'Node identifier (definition or instance ID)' },
|
|
233
|
+
gateway_id: { type: 'string', description: 'Gateway ID to assign' }
|
|
234
|
+
},
|
|
235
|
+
required: ['workflow_id', 'node_id', 'gateway_id']
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
async function executeWorkflowAssignGateway(args, context) {
|
|
239
|
+
try {
|
|
240
|
+
const response = await fetch(`${context.registryUrl}/api/agents/workflows/${args.workflow_id}/assign`, {
|
|
241
|
+
method: 'POST',
|
|
242
|
+
headers: {
|
|
243
|
+
'Authorization': `Bearer ${context.apiKey}`,
|
|
244
|
+
'Content-Type': 'application/json'
|
|
245
|
+
},
|
|
246
|
+
body: JSON.stringify({
|
|
247
|
+
node_id: args.node_id,
|
|
248
|
+
gateway_id: args.gateway_id,
|
|
249
|
+
assigned_by: 'orchestrator'
|
|
250
|
+
})
|
|
251
|
+
});
|
|
252
|
+
if (!response.ok) {
|
|
253
|
+
const error = await response.json();
|
|
254
|
+
return {
|
|
255
|
+
success: false,
|
|
256
|
+
error: error.message || 'Failed to assign gateway'
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
const data = await response.json();
|
|
260
|
+
return {
|
|
261
|
+
success: true,
|
|
262
|
+
data: {
|
|
263
|
+
assigned: true,
|
|
264
|
+
workflowId: args.workflow_id,
|
|
265
|
+
nodeId: args.node_id,
|
|
266
|
+
gatewayId: args.gateway_id
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
catch (error) {
|
|
271
|
+
return {
|
|
272
|
+
success: false,
|
|
273
|
+
error: `Gateway assignment failed: ${error.message}`
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Workflow Check Ready Tool
|
|
279
|
+
* Check if workflow is ready for execution
|
|
280
|
+
*/
|
|
281
|
+
exports.workflowCheckReadyTool = {
|
|
282
|
+
name: 'workflow_check_ready',
|
|
283
|
+
description: 'Check if all workflow nodes have gateway assignments and are ready for execution',
|
|
284
|
+
inputSchema: {
|
|
285
|
+
type: 'object',
|
|
286
|
+
properties: {
|
|
287
|
+
workflow_id: { type: 'string', description: 'Workflow UUID' }
|
|
288
|
+
},
|
|
289
|
+
required: ['workflow_id']
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
async function executeWorkflowCheckReady(args, context) {
|
|
293
|
+
try {
|
|
294
|
+
const response = await fetch(`${context.registryUrl}/api/agents/workflows/${args.workflow_id}/ready`, {
|
|
295
|
+
headers: {
|
|
296
|
+
'Authorization': `Bearer ${context.apiKey}`,
|
|
297
|
+
'Content-Type': 'application/json'
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
if (!response.ok) {
|
|
301
|
+
const error = await response.json();
|
|
302
|
+
return {
|
|
303
|
+
success: false,
|
|
304
|
+
error: error.message || 'Failed to check workflow readiness'
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
const data = await response.json();
|
|
308
|
+
return {
|
|
309
|
+
success: true,
|
|
310
|
+
data: {
|
|
311
|
+
ready: data.ready,
|
|
312
|
+
totalNodes: data.total_nodes,
|
|
313
|
+
assignedNodes: data.assigned_nodes,
|
|
314
|
+
unassignedNodes: data.unassigned_nodes,
|
|
315
|
+
missingAssignments: data.missing_assignments
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
catch (error) {
|
|
320
|
+
return {
|
|
321
|
+
success: false,
|
|
322
|
+
error: `Workflow readiness check failed: ${error.message}`
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Workflow Start Execution Tool
|
|
328
|
+
* Start workflow execution after all assignments are complete
|
|
329
|
+
*/
|
|
330
|
+
exports.workflowStartExecutionTool = {
|
|
331
|
+
name: 'workflow_start_execution',
|
|
332
|
+
description: 'Start workflow execution after all nodes have gateway assignments',
|
|
333
|
+
inputSchema: {
|
|
334
|
+
type: 'object',
|
|
335
|
+
properties: {
|
|
336
|
+
workflow_id: { type: 'string', description: 'Workflow UUID' },
|
|
337
|
+
input_data: { type: 'object', description: 'Initial input data for the workflow' }
|
|
338
|
+
},
|
|
339
|
+
required: ['workflow_id']
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
async function executeWorkflowStart(args, context) {
|
|
343
|
+
try {
|
|
344
|
+
const response = await fetch(`${context.registryUrl}/api/agents/workflows/${args.workflow_id}/execute`, {
|
|
345
|
+
method: 'POST',
|
|
346
|
+
headers: {
|
|
347
|
+
'Authorization': `Bearer ${context.apiKey}`,
|
|
348
|
+
'Content-Type': 'application/json'
|
|
349
|
+
},
|
|
350
|
+
body: JSON.stringify({
|
|
351
|
+
input_data: args.input_data || {}
|
|
352
|
+
})
|
|
353
|
+
});
|
|
354
|
+
if (!response.ok) {
|
|
355
|
+
const error = await response.json();
|
|
356
|
+
return {
|
|
357
|
+
success: false,
|
|
358
|
+
error: error.message || 'Failed to start workflow execution'
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
const data = await response.json();
|
|
362
|
+
return {
|
|
363
|
+
success: true,
|
|
364
|
+
data: {
|
|
365
|
+
executionId: data.execution_id,
|
|
366
|
+
status: data.status,
|
|
367
|
+
startedAt: data.started_at,
|
|
368
|
+
estimatedDuration: data.estimated_duration
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
catch (error) {
|
|
373
|
+
return {
|
|
374
|
+
success: false,
|
|
375
|
+
error: `Workflow execution start failed: ${error.message}`
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
// Export all tools and executors
|
|
380
|
+
exports.gatewayTools = [
|
|
381
|
+
exports.gatewayListTool,
|
|
382
|
+
exports.gatewayCapabilitiesTool,
|
|
383
|
+
exports.gatewayAvailabilityTool,
|
|
384
|
+
exports.workflowNodesTool,
|
|
385
|
+
exports.workflowAssignGatewayTool,
|
|
386
|
+
exports.workflowCheckReadyTool,
|
|
387
|
+
exports.workflowStartExecutionTool
|
|
388
|
+
];
|
|
389
|
+
exports.gatewayToolExecutors = {
|
|
390
|
+
'gateway_list': executeGatewayList,
|
|
391
|
+
'gateway_get_capabilities': executeGatewayCapabilities,
|
|
392
|
+
'gateway_check_availability': executeGatewayAvailability,
|
|
393
|
+
'workflow_get_nodes': executeWorkflowNodes,
|
|
394
|
+
'workflow_assign_gateway': executeWorkflowAssignGateway,
|
|
395
|
+
'workflow_check_ready': executeWorkflowCheckReady,
|
|
396
|
+
'workflow_start_execution': executeWorkflowStart
|
|
397
|
+
};
|
|
398
|
+
//# sourceMappingURL=gateway-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateway-tools.js","sourceRoot":"","sources":["../../../src/mcp-tools/gateway-tools.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AA+EH,gDA6CC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6
|
+
* Tool categories for grouping and default behavior
|
|
7
|
+
*/
|
|
8
|
+
export type ToolCategory = 'connections' | 'models' | 'providers' | 'organizations' | 'members' | 'billing' | 'api_keys' | 'collections' | 'mappings' | 'automation' | 'analytics' | 'alerts' | 'support' | 'admin' | 'core' | 'web' | 'gateway' | 'sellers';
|
|
9
|
+
/**
|
|
10
|
+
* Metadata for MCP tools - controls UI display and security
|
|
11
|
+
*/
|
|
12
|
+
export interface MCPToolMetadata {
|
|
13
|
+
category: ToolCategory;
|
|
14
|
+
defaultEnabled: boolean;
|
|
15
|
+
adminOnly: boolean;
|
|
16
|
+
destructive: boolean;
|
|
17
|
+
requiresConfirmation: boolean;
|
|
18
|
+
apiEndpoint: string;
|
|
19
|
+
apiMethod: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
20
|
+
rateLimit?: number;
|
|
21
|
+
tags?: string[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Parameter definition for tool inputs
|
|
25
|
+
*/
|
|
26
|
+
export interface ParameterDefinition {
|
|
27
|
+
type: 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
28
|
+
description: string;
|
|
29
|
+
enum?: (string | number)[];
|
|
30
|
+
default?: any;
|
|
31
|
+
examples?: any[];
|
|
32
|
+
minimum?: number;
|
|
33
|
+
maximum?: number;
|
|
34
|
+
pattern?: string;
|
|
35
|
+
items?: ParameterDefinition;
|
|
36
|
+
properties?: Record<string, ParameterDefinition>;
|
|
37
|
+
required?: string[];
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Complete MCP Tool Definition with metadata
|
|
41
|
+
*/
|
|
42
|
+
export interface MCPToolDefinition {
|
|
43
|
+
type: 'function';
|
|
44
|
+
function: {
|
|
45
|
+
name: string;
|
|
46
|
+
description: string;
|
|
47
|
+
parameters: {
|
|
48
|
+
type: 'object';
|
|
49
|
+
properties: Record<string, ParameterDefinition>;
|
|
50
|
+
required?: string[];
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
metadata?: MCPToolMetadata;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Tool execution result
|
|
57
|
+
*/
|
|
58
|
+
export interface MCPToolResult {
|
|
59
|
+
success: boolean;
|
|
60
|
+
output?: string;
|
|
61
|
+
error?: string;
|
|
62
|
+
data?: any;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Category default settings
|
|
66
|
+
*/
|
|
67
|
+
export declare const CATEGORY_DEFAULTS: Record<ToolCategory, Partial<MCPToolMetadata>>;
|
|
68
|
+
/**
|
|
69
|
+
* Category UI display info
|
|
70
|
+
*/
|
|
71
|
+
export declare const CATEGORY_INFO: Record<ToolCategory, {
|
|
72
|
+
icon: string;
|
|
73
|
+
color: string;
|
|
74
|
+
label: string;
|
|
75
|
+
}>;
|
|
76
|
+
//# sourceMappingURL=mcp-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-types.d.ts","sourceRoot":"","sources":["../../../src/types/mcp-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,YAAY,GAClB,aAAa,GACb,QAAQ,GACR,WAAW,GACX,eAAe,GACf,SAAS,GACT,SAAS,GACT,UAAU,GACV,aAAa,GACb,UAAU,GACV,YAAY,GACZ,WAAW,GACX,QAAQ,GACR,SAAS,GACT,OAAO,GACP,MAAM,GACN,KAAK,GACL,SAAS,GACT,SAAS,CAAC;AAEhB;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,QAAQ,EAAE,YAAY,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAC;I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AAM,CAAC,YAAY,EAAE,OAAO,CAAC,eAAe,CAAC,CAmB5E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAmB9F,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MCP Tool Type Definitions
|
|
4
|
+
* Standardized schema for MCP tool definitions with metadata
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.CATEGORY_INFO = exports.CATEGORY_DEFAULTS = void 0;
|
|
8
|
+
/**
|
|
9
|
+
* Category default settings
|
|
10
|
+
*/
|
|
11
|
+
exports.CATEGORY_DEFAULTS = {
|
|
12
|
+
connections: { defaultEnabled: true, adminOnly: false, destructive: false },
|
|
13
|
+
models: { defaultEnabled: true, adminOnly: false, destructive: false },
|
|
14
|
+
providers: { defaultEnabled: true, adminOnly: false, destructive: false },
|
|
15
|
+
organizations: { defaultEnabled: true, adminOnly: false, destructive: false },
|
|
16
|
+
members: { defaultEnabled: true, adminOnly: false, destructive: false },
|
|
17
|
+
billing: { defaultEnabled: false, adminOnly: false, destructive: false },
|
|
18
|
+
api_keys: { defaultEnabled: false, adminOnly: false, destructive: true },
|
|
19
|
+
collections: { defaultEnabled: true, adminOnly: false, destructive: false },
|
|
20
|
+
mappings: { defaultEnabled: true, adminOnly: false, destructive: false },
|
|
21
|
+
automation: { defaultEnabled: true, adminOnly: false, destructive: false },
|
|
22
|
+
analytics: { defaultEnabled: true, adminOnly: false, destructive: false },
|
|
23
|
+
alerts: { defaultEnabled: true, adminOnly: false, destructive: false },
|
|
24
|
+
support: { defaultEnabled: true, adminOnly: false, destructive: false },
|
|
25
|
+
admin: { defaultEnabled: false, adminOnly: true, destructive: false },
|
|
26
|
+
core: { defaultEnabled: true, adminOnly: false, destructive: false },
|
|
27
|
+
web: { defaultEnabled: true, adminOnly: false, destructive: false },
|
|
28
|
+
gateway: { defaultEnabled: true, adminOnly: false, destructive: false },
|
|
29
|
+
sellers: { defaultEnabled: true, adminOnly: false, destructive: false },
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Category UI display info
|
|
33
|
+
*/
|
|
34
|
+
exports.CATEGORY_INFO = {
|
|
35
|
+
connections: { icon: 'π', color: 'blue', label: 'Connections' },
|
|
36
|
+
models: { icon: 'π€', color: 'green', label: 'Models' },
|
|
37
|
+
providers: { icon: 'π’', color: 'purple', label: 'Providers' },
|
|
38
|
+
organizations: { icon: 'ποΈ', color: 'indigo', label: 'Organizations' },
|
|
39
|
+
members: { icon: 'π₯', color: 'cyan', label: 'Members' },
|
|
40
|
+
billing: { icon: 'π³', color: 'yellow', label: 'Billing' },
|
|
41
|
+
api_keys: { icon: 'π', color: 'red', label: 'API Keys' },
|
|
42
|
+
collections: { icon: 'π', color: 'orange', label: 'Collections' },
|
|
43
|
+
mappings: { icon: 'πΊοΈ', color: 'teal', label: 'Mappings' },
|
|
44
|
+
automation: { icon: 'βοΈ', color: 'gray', label: 'Automation' },
|
|
45
|
+
analytics: { icon: 'π', color: 'blue', label: 'Analytics' },
|
|
46
|
+
alerts: { icon: 'π', color: 'amber', label: 'Alerts' },
|
|
47
|
+
support: { icon: 'π«', color: 'pink', label: 'Support' },
|
|
48
|
+
admin: { icon: 'π‘οΈ', color: 'red', label: 'Admin' },
|
|
49
|
+
core: { icon: 'π', color: 'stone', label: 'Core' },
|
|
50
|
+
web: { icon: 'π', color: 'blue', label: 'Web' },
|
|
51
|
+
gateway: { icon: 'π', color: 'violet', label: 'Gateway' },
|
|
52
|
+
sellers: { icon: 'πͺ', color: 'emerald', label: 'Sellers' },
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=mcp-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "langmart-gateway-type3",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.45",
|
|
4
4
|
"description": "LangMart Type 3 Gateway - Seller-Managed Gateway with Local Vault",
|
|
5
5
|
"main": "dist/index-server.js",
|
|
6
6
|
"types": "dist/index-server.d.ts",
|
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
"dist/welcome-pages.js",
|
|
99
99
|
"dist/welcome-pages.js.map",
|
|
100
100
|
"dist/welcome-pages.d.ts",
|
|
101
|
+
"dist/src/**/*",
|
|
101
102
|
"dist/welcome-pages.d.ts.map",
|
|
102
103
|
"scripts/start.sh",
|
|
103
104
|
"scripts/stop.sh",
|