@dobbyai/mcp-external 1.0.0 → 1.0.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.
- package/dist/__tests__/tools/services.test.d.ts +2 -0
- package/dist/__tests__/tools/services.test.d.ts.map +1 -0
- package/dist/__tests__/tools/services.test.js +223 -0
- package/dist/__tests__/tools/services.test.js.map +1 -0
- package/dist/lib/dobby-client.d.ts +9 -0
- package/dist/lib/dobby-client.d.ts.map +1 -1
- package/dist/lib/dobby-client.js +37 -0
- package/dist/lib/dobby-client.js.map +1 -1
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +27 -0
- package/dist/resources/index.js.map +1 -1
- package/dist/tools/crew-builder.d.ts +165 -0
- package/dist/tools/crew-builder.d.ts.map +1 -0
- package/dist/tools/crew-builder.js +306 -0
- package/dist/tools/crew-builder.js.map +1 -0
- package/dist/tools/crewai.d.ts +140 -0
- package/dist/tools/crewai.d.ts.map +1 -0
- package/dist/tools/crewai.js +226 -0
- package/dist/tools/crewai.js.map +1 -0
- package/dist/tools/index.d.ts +207 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +49 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/mcp-tools.d.ts +90 -0
- package/dist/tools/mcp-tools.d.ts.map +1 -0
- package/dist/tools/mcp-tools.js +203 -0
- package/dist/tools/mcp-tools.js.map +1 -0
- package/dist/tools/services.d.ts +38 -0
- package/dist/tools/services.d.ts.map +1 -0
- package/dist/tools/services.js +166 -0
- package/dist/tools/services.js.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crewai.js","sourceRoot":"","sources":["../../src/tools/crewai.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,+CAA+C;AAC/C,mBAAmB;AACnB,+CAA+C;AAE/C,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,aAAa,EAAE;QACb,IAAI,E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AAU,MAAM,CAAC;QAEhD,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,IAAI,kBAAkB,IAAI,CAAC,MAAM,IAAI,CAAC;QAC5C,CAAC;QAED,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YACrB,IAAI,IAAI,qCAAqC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC;QACrG,CAAC;QAED,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IACxD,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,gCAAgC,KAAK,CAAC,OAAO,EAAE;iBACtD;aACF;YACD,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;AACH,CAAC"}
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -7,8 +7,215 @@
|
|
|
7
7
|
export * from './tasks.js';
|
|
8
8
|
export * from './messages.js';
|
|
9
9
|
export * from './approvals.js';
|
|
10
|
+
export * from './services.js';
|
|
11
|
+
export * from './crewai.js';
|
|
12
|
+
export * from './crew-builder.js';
|
|
13
|
+
export * from './mcp-tools.js';
|
|
10
14
|
import { DobbyClient } from '../lib/dobby-client.js';
|
|
11
15
|
export declare const allTools: {
|
|
16
|
+
mcp_discover_tools: {
|
|
17
|
+
name: string;
|
|
18
|
+
description: string;
|
|
19
|
+
inputSchema: {
|
|
20
|
+
type: "object";
|
|
21
|
+
properties: {
|
|
22
|
+
connection_id: {
|
|
23
|
+
type: string;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
provider_id: {
|
|
27
|
+
type: string;
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
mcp_call_tool: {
|
|
34
|
+
name: string;
|
|
35
|
+
description: string;
|
|
36
|
+
inputSchema: {
|
|
37
|
+
type: "object";
|
|
38
|
+
properties: {
|
|
39
|
+
tool_name: {
|
|
40
|
+
type: string;
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
tool_arguments: {
|
|
44
|
+
type: string;
|
|
45
|
+
description: string;
|
|
46
|
+
additionalProperties: boolean;
|
|
47
|
+
};
|
|
48
|
+
connection_id: {
|
|
49
|
+
type: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
provider_id: {
|
|
53
|
+
type: string;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
required: string[];
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
crew_validate: {
|
|
61
|
+
name: string;
|
|
62
|
+
description: string;
|
|
63
|
+
inputSchema: {
|
|
64
|
+
type: "object";
|
|
65
|
+
properties: {
|
|
66
|
+
agents_yaml: {
|
|
67
|
+
type: string;
|
|
68
|
+
description: string;
|
|
69
|
+
};
|
|
70
|
+
tasks_yaml: {
|
|
71
|
+
type: string;
|
|
72
|
+
description: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
required: string[];
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
crew_kickoff: {
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
inputSchema: {
|
|
82
|
+
type: "object";
|
|
83
|
+
properties: {
|
|
84
|
+
agents_yaml: {
|
|
85
|
+
type: string;
|
|
86
|
+
description: string;
|
|
87
|
+
};
|
|
88
|
+
tasks_yaml: {
|
|
89
|
+
type: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
variables: {
|
|
93
|
+
type: string;
|
|
94
|
+
description: string;
|
|
95
|
+
additionalProperties: {
|
|
96
|
+
type: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
process_type: {
|
|
100
|
+
type: string;
|
|
101
|
+
enum: string[];
|
|
102
|
+
description: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
required: string[];
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
crew_status: {
|
|
109
|
+
name: string;
|
|
110
|
+
description: string;
|
|
111
|
+
inputSchema: {
|
|
112
|
+
type: "object";
|
|
113
|
+
properties: {
|
|
114
|
+
run_id: {
|
|
115
|
+
type: string;
|
|
116
|
+
description: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
required: string[];
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
crew_list: {
|
|
123
|
+
name: string;
|
|
124
|
+
description: string;
|
|
125
|
+
inputSchema: {
|
|
126
|
+
type: "object";
|
|
127
|
+
properties: {
|
|
128
|
+
limit: {
|
|
129
|
+
type: string;
|
|
130
|
+
description: string;
|
|
131
|
+
};
|
|
132
|
+
status_filter: {
|
|
133
|
+
type: string;
|
|
134
|
+
enum: string[];
|
|
135
|
+
description: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
crewai_health: {
|
|
141
|
+
name: string;
|
|
142
|
+
description: string;
|
|
143
|
+
inputSchema: {
|
|
144
|
+
type: "object";
|
|
145
|
+
properties: {
|
|
146
|
+
connection_id: {
|
|
147
|
+
type: string;
|
|
148
|
+
description: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
crewai_inputs: {
|
|
154
|
+
name: string;
|
|
155
|
+
description: string;
|
|
156
|
+
inputSchema: {
|
|
157
|
+
type: "object";
|
|
158
|
+
properties: {
|
|
159
|
+
connection_id: {
|
|
160
|
+
type: string;
|
|
161
|
+
description: string;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
crewai_kickoff: {
|
|
167
|
+
name: string;
|
|
168
|
+
description: string;
|
|
169
|
+
inputSchema: {
|
|
170
|
+
type: "object";
|
|
171
|
+
properties: {
|
|
172
|
+
inputs: {
|
|
173
|
+
type: string;
|
|
174
|
+
description: string;
|
|
175
|
+
additionalProperties: {
|
|
176
|
+
type: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
connection_id: {
|
|
180
|
+
type: string;
|
|
181
|
+
description: string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
required: string[];
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
crewai_status: {
|
|
188
|
+
name: string;
|
|
189
|
+
description: string;
|
|
190
|
+
inputSchema: {
|
|
191
|
+
type: "object";
|
|
192
|
+
properties: {
|
|
193
|
+
kickoff_id: {
|
|
194
|
+
type: string;
|
|
195
|
+
description: string;
|
|
196
|
+
};
|
|
197
|
+
connection_id: {
|
|
198
|
+
type: string;
|
|
199
|
+
description: string;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
required: string[];
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
list_services: {
|
|
206
|
+
name: string;
|
|
207
|
+
description: string;
|
|
208
|
+
inputSchema: {
|
|
209
|
+
type: "object";
|
|
210
|
+
properties: {
|
|
211
|
+
category: {
|
|
212
|
+
type: string;
|
|
213
|
+
enum: string[];
|
|
214
|
+
description: string;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
};
|
|
12
219
|
get_pending_approvals: {
|
|
13
220
|
name: string;
|
|
14
221
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,YAAY,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D,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,0EAA0E;IAC1E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAmGD,wBAAsB,cAAc,CAClC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,EAAE,WAAW,gBAyLrB"}
|
package/dist/tools/index.js
CHANGED
|
@@ -7,9 +7,17 @@
|
|
|
7
7
|
export * from './tasks.js';
|
|
8
8
|
export * from './messages.js';
|
|
9
9
|
export * from './approvals.js';
|
|
10
|
+
export * from './services.js';
|
|
11
|
+
export * from './crewai.js';
|
|
12
|
+
export * from './crew-builder.js';
|
|
13
|
+
export * from './mcp-tools.js';
|
|
10
14
|
import { taskTools, handleCreateTask, handleListTasks, handleGetTask, handleUpdateTask, handleGetTaskTimeline, handleCancelTask } from './tasks.js';
|
|
11
15
|
import { messageTools, handleGetMessages, handleSendMessage } from './messages.js';
|
|
12
16
|
import { approvalTools, handleGetPendingApprovals, handleApproveTask, handleRejectTask, handleRequestChanges } from './approvals.js';
|
|
17
|
+
import { serviceTools, handleListServices } from './services.js';
|
|
18
|
+
import { crewaiTools, handleCrewAIHealth, handleCrewAIInputs, handleCrewAIKickoff, handleCrewAIStatus } from './crewai.js';
|
|
19
|
+
import { crewBuilderTools, handleCrewValidate, handleCrewKickoff, handleCrewStatus, handleCrewList } from './crew-builder.js';
|
|
20
|
+
import { mcpRemoteTools, handleMcpDiscoverTools, handleMcpCallTool } from './mcp-tools.js';
|
|
13
21
|
// ============================================
|
|
14
22
|
// All Tools
|
|
15
23
|
// ============================================
|
|
@@ -17,6 +25,10 @@ export const allTools = {
|
|
|
17
25
|
...taskTools,
|
|
18
26
|
...messageTools,
|
|
19
27
|
...approvalTools,
|
|
28
|
+
...serviceTools,
|
|
29
|
+
...crewaiTools,
|
|
30
|
+
...crewBuilderTools,
|
|
31
|
+
...mcpRemoteTools,
|
|
20
32
|
};
|
|
21
33
|
/**
|
|
22
34
|
* Check gateway auth for an MCP tool call.
|
|
@@ -163,6 +175,43 @@ export async function handleToolCall(toolName, args, context) {
|
|
|
163
175
|
case 'request_changes':
|
|
164
176
|
result = await handleRequestChanges(client, args);
|
|
165
177
|
break;
|
|
178
|
+
// Service discovery tools
|
|
179
|
+
case 'list_services':
|
|
180
|
+
result = await handleListServices(client, args);
|
|
181
|
+
break;
|
|
182
|
+
// CrewAI tools (hosted platform)
|
|
183
|
+
case 'crewai_health':
|
|
184
|
+
result = await handleCrewAIHealth(client, args);
|
|
185
|
+
break;
|
|
186
|
+
case 'crewai_inputs':
|
|
187
|
+
result = await handleCrewAIInputs(client, args);
|
|
188
|
+
break;
|
|
189
|
+
case 'crewai_kickoff':
|
|
190
|
+
result = await handleCrewAIKickoff(client, args);
|
|
191
|
+
break;
|
|
192
|
+
case 'crewai_status':
|
|
193
|
+
result = await handleCrewAIStatus(client, args);
|
|
194
|
+
break;
|
|
195
|
+
// Crew Builder tools (local YAML-based crews)
|
|
196
|
+
case 'crew_validate':
|
|
197
|
+
result = await handleCrewValidate(client, args);
|
|
198
|
+
break;
|
|
199
|
+
case 'crew_kickoff':
|
|
200
|
+
result = await handleCrewKickoff(client, args);
|
|
201
|
+
break;
|
|
202
|
+
case 'crew_status':
|
|
203
|
+
result = await handleCrewStatus(client, args);
|
|
204
|
+
break;
|
|
205
|
+
case 'crew_list':
|
|
206
|
+
result = await handleCrewList(client, args);
|
|
207
|
+
break;
|
|
208
|
+
// MCP remote tools (discover and call tools on external MCP servers)
|
|
209
|
+
case 'mcp_discover_tools':
|
|
210
|
+
result = await handleMcpDiscoverTools(client, args);
|
|
211
|
+
break;
|
|
212
|
+
case 'mcp_call_tool':
|
|
213
|
+
result = await handleMcpCallTool(client, args);
|
|
214
|
+
break;
|
|
166
215
|
default:
|
|
167
216
|
result = {
|
|
168
217
|
content: [
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACpJ,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACpJ,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,gBAAg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,OAAO,EAAE;iBACrC;aACF;YACD,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,IAAI,IAAI,EAAE,CAAC;IAE3B,0CAA0C;IAC1C,oBAAoB,CAClB;QACE,SAAS,EAAE,OAAO,CAAC,QAAQ,IAAI,EAAE;QACjC,QAAQ,EAAE,cAAc;QACxB,OAAO,EAAG,IAAY,CAAC,OAAO,IAAI,EAAE;QACpC,UAAU,EAAE,eAAe;QAC3B,SAAS,EAAE,QAAQ;QACnB,UAAU,EAAE,IAA2B;QACvC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,SAAS;QACtE,MAAM,EAAE,UAAU;QAClB,aAAa,EAAE,SAAS;QACxB,WAAW,EAAE,OAAO,CAAC,OAAO,EAAE,GAAG,SAAS,CAAC,OAAO,EAAE;QACpD,UAAU,EAAE,SAAS,CAAC,WAAW,EAAE;QACnC,YAAY,EAAE,OAAO,CAAC,WAAW,EAAE;KACpC,EACD,UAAU,EACV,OAAO,EACP,eAAe,CAChB,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Remote Tools
|
|
3
|
+
*
|
|
4
|
+
* MCP tools for discovering and calling tools on external MCP servers
|
|
5
|
+
* through the Dobby gateway proxy.
|
|
6
|
+
*
|
|
7
|
+
* These are "meta-tools" — they let Claude Code interact with tools
|
|
8
|
+
* exposed by remote MCP-capable providers (LangSmith, Dify, n8n, etc.)
|
|
9
|
+
* without needing direct MCP transport connectivity.
|
|
10
|
+
*
|
|
11
|
+
* Flow:
|
|
12
|
+
* Claude Code → mcp_discover_tools → gateway proxy → MCP client → remote MCP server
|
|
13
|
+
* Claude Code → mcp_call_tool → gateway proxy → MCP client → remote MCP server
|
|
14
|
+
*/
|
|
15
|
+
import { DobbyClient } from '../lib/dobby-client.js';
|
|
16
|
+
export declare const mcpRemoteTools: {
|
|
17
|
+
mcp_discover_tools: {
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
inputSchema: {
|
|
21
|
+
type: "object";
|
|
22
|
+
properties: {
|
|
23
|
+
connection_id: {
|
|
24
|
+
type: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
provider_id: {
|
|
28
|
+
type: string;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
mcp_call_tool: {
|
|
35
|
+
name: string;
|
|
36
|
+
description: string;
|
|
37
|
+
inputSchema: {
|
|
38
|
+
type: "object";
|
|
39
|
+
properties: {
|
|
40
|
+
tool_name: {
|
|
41
|
+
type: string;
|
|
42
|
+
description: string;
|
|
43
|
+
};
|
|
44
|
+
tool_arguments: {
|
|
45
|
+
type: string;
|
|
46
|
+
description: string;
|
|
47
|
+
additionalProperties: boolean;
|
|
48
|
+
};
|
|
49
|
+
connection_id: {
|
|
50
|
+
type: string;
|
|
51
|
+
description: string;
|
|
52
|
+
};
|
|
53
|
+
provider_id: {
|
|
54
|
+
type: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
required: string[];
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export declare function handleMcpDiscoverTools(client: DobbyClient, args: {
|
|
63
|
+
connection_id?: string;
|
|
64
|
+
provider_id?: string;
|
|
65
|
+
}): Promise<{
|
|
66
|
+
content: {
|
|
67
|
+
type: "text";
|
|
68
|
+
text: string;
|
|
69
|
+
}[];
|
|
70
|
+
isError?: undefined;
|
|
71
|
+
} | {
|
|
72
|
+
content: {
|
|
73
|
+
type: "text";
|
|
74
|
+
text: string;
|
|
75
|
+
}[];
|
|
76
|
+
isError: boolean;
|
|
77
|
+
}>;
|
|
78
|
+
export declare function handleMcpCallTool(client: DobbyClient, args: {
|
|
79
|
+
tool_name: string;
|
|
80
|
+
tool_arguments: Record<string, unknown>;
|
|
81
|
+
connection_id?: string;
|
|
82
|
+
provider_id?: string;
|
|
83
|
+
}): Promise<{
|
|
84
|
+
isError?: boolean | undefined;
|
|
85
|
+
content: {
|
|
86
|
+
type: "text";
|
|
87
|
+
text: string;
|
|
88
|
+
}[];
|
|
89
|
+
}>;
|
|
90
|
+
//# sourceMappingURL=mcp-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-tools.d.ts","sourceRoot":"","sources":["../../src/tools/mcp-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAMrD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D1B,CAAC;AAkDF,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE;IAAE,aAAa,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;GAwDvD;AAED,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE;IACJ,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;;;;;;GAqDF"}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Remote Tools
|
|
3
|
+
*
|
|
4
|
+
* MCP tools for discovering and calling tools on external MCP servers
|
|
5
|
+
* through the Dobby gateway proxy.
|
|
6
|
+
*
|
|
7
|
+
* These are "meta-tools" — they let Claude Code interact with tools
|
|
8
|
+
* exposed by remote MCP-capable providers (LangSmith, Dify, n8n, etc.)
|
|
9
|
+
* without needing direct MCP transport connectivity.
|
|
10
|
+
*
|
|
11
|
+
* Flow:
|
|
12
|
+
* Claude Code → mcp_discover_tools → gateway proxy → MCP client → remote MCP server
|
|
13
|
+
* Claude Code → mcp_call_tool → gateway proxy → MCP client → remote MCP server
|
|
14
|
+
*/
|
|
15
|
+
// ============================================
|
|
16
|
+
// Tool Definitions
|
|
17
|
+
// ============================================
|
|
18
|
+
export const mcpRemoteTools = {
|
|
19
|
+
mcp_discover_tools: {
|
|
20
|
+
name: 'mcp_discover_tools',
|
|
21
|
+
description: 'Discover tools available on a remote MCP server connected through Dobby. ' +
|
|
22
|
+
'Connects to the MCP server configured on the provider connection, ' +
|
|
23
|
+
'runs tools/list, and returns the full tool catalog. ' +
|
|
24
|
+
'Results are cached on the connection for future reference.',
|
|
25
|
+
inputSchema: {
|
|
26
|
+
type: 'object',
|
|
27
|
+
properties: {
|
|
28
|
+
connection_id: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
description: 'Optional: specific connection ID. If omitted, uses the first active MCP-capable connection for the specified provider.',
|
|
31
|
+
},
|
|
32
|
+
provider_id: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
description: 'Optional: provider ID to filter connections (e.g., "langsmith", "dify", "n8n"). Defaults to "langsmith".',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
mcp_call_tool: {
|
|
40
|
+
name: 'mcp_call_tool',
|
|
41
|
+
description: 'Call a tool on a remote MCP server connected through Dobby. ' +
|
|
42
|
+
'Use mcp_discover_tools first to see available tools and their input schemas. ' +
|
|
43
|
+
'The tool call is proxied through the gateway with full auth and audit logging.',
|
|
44
|
+
inputSchema: {
|
|
45
|
+
type: 'object',
|
|
46
|
+
properties: {
|
|
47
|
+
tool_name: {
|
|
48
|
+
type: 'string',
|
|
49
|
+
description: 'Name of the MCP tool to call (from mcp_discover_tools results).',
|
|
50
|
+
},
|
|
51
|
+
tool_arguments: {
|
|
52
|
+
type: 'object',
|
|
53
|
+
description: 'Input arguments for the tool, matching its inputSchema.',
|
|
54
|
+
additionalProperties: true,
|
|
55
|
+
},
|
|
56
|
+
connection_id: {
|
|
57
|
+
type: 'string',
|
|
58
|
+
description: 'Optional: specific connection ID. If omitted, uses the first active MCP-capable connection for the specified provider.',
|
|
59
|
+
},
|
|
60
|
+
provider_id: {
|
|
61
|
+
type: 'string',
|
|
62
|
+
description: 'Optional: provider ID to filter connections (e.g., "langsmith", "dify", "n8n"). Defaults to "langsmith".',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
required: ['tool_name', 'tool_arguments'],
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
async function callMcpGatewayProxy(client, payload) {
|
|
70
|
+
const url = `${client.apiUrl}/api/v1/gateway/agents/proxy`;
|
|
71
|
+
const response = await fetch(url, {
|
|
72
|
+
method: 'POST',
|
|
73
|
+
headers: {
|
|
74
|
+
'Content-Type': 'application/json',
|
|
75
|
+
Authorization: `Bearer ${client.apiKey}`,
|
|
76
|
+
...(client.tenantId ? { 'X-Tenant-Id': client.tenantId } : {}),
|
|
77
|
+
},
|
|
78
|
+
body: JSON.stringify({
|
|
79
|
+
...payload,
|
|
80
|
+
provider_id: payload.provider_id || 'langsmith',
|
|
81
|
+
}),
|
|
82
|
+
});
|
|
83
|
+
if (!response.ok) {
|
|
84
|
+
const errBody = await response.json().catch(() => ({
|
|
85
|
+
error: `Gateway proxy returned ${response.status}`,
|
|
86
|
+
}));
|
|
87
|
+
throw new Error(errBody.error ||
|
|
88
|
+
`Gateway proxy error: HTTP ${response.status}`);
|
|
89
|
+
}
|
|
90
|
+
return response.json();
|
|
91
|
+
}
|
|
92
|
+
// ============================================
|
|
93
|
+
// Tool Handlers
|
|
94
|
+
// ============================================
|
|
95
|
+
export async function handleMcpDiscoverTools(client, args) {
|
|
96
|
+
try {
|
|
97
|
+
const data = await callMcpGatewayProxy(client, {
|
|
98
|
+
action: 'mcp_discover_tools',
|
|
99
|
+
connection_id: args.connection_id,
|
|
100
|
+
provider_id: args.provider_id,
|
|
101
|
+
});
|
|
102
|
+
const tools = data.response?.tools || [];
|
|
103
|
+
const conn = data.connection || {};
|
|
104
|
+
const mcpStatus = data.response?.mcp_status || 'unknown';
|
|
105
|
+
let text = `# MCP Tool Discovery\n\n`;
|
|
106
|
+
text += `- **Provider:** ${conn.provider_id || args.provider_id || 'langsmith'}\n`;
|
|
107
|
+
text += `- **Connection:** ${conn.display_name || conn.connection_id || 'auto'}\n`;
|
|
108
|
+
text += `- **MCP Status:** ${mcpStatus}\n`;
|
|
109
|
+
text += `- **Tools Found:** ${tools.length}\n`;
|
|
110
|
+
text += `- **Latency:** ${data.latency_ms}ms\n\n`;
|
|
111
|
+
if (tools.length > 0) {
|
|
112
|
+
text += `## Available Tools\n\n`;
|
|
113
|
+
for (const tool of tools) {
|
|
114
|
+
text += `### ${tool.name}\n`;
|
|
115
|
+
if (tool.description) {
|
|
116
|
+
text += `${tool.description}\n`;
|
|
117
|
+
}
|
|
118
|
+
if (tool.inputSchema && Object.keys(tool.inputSchema).length > 0) {
|
|
119
|
+
const props = tool.inputSchema.properties;
|
|
120
|
+
if (props) {
|
|
121
|
+
text += `\n**Parameters:**\n`;
|
|
122
|
+
for (const [key, schema] of Object.entries(props)) {
|
|
123
|
+
const s = schema;
|
|
124
|
+
text += `- \`${key}\` (${s.type || 'any'})${s.description ? ` — ${s.description}` : ''}\n`;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
text += '\n';
|
|
129
|
+
}
|
|
130
|
+
text += `Use \`mcp_call_tool\` with the tool name and arguments to execute a tool.`;
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
text += `No tools found. The MCP server may not expose any tools, or the connection may need to be reconfigured.`;
|
|
134
|
+
}
|
|
135
|
+
return { content: [{ type: 'text', text }] };
|
|
136
|
+
}
|
|
137
|
+
catch (error) {
|
|
138
|
+
return {
|
|
139
|
+
content: [
|
|
140
|
+
{
|
|
141
|
+
type: 'text',
|
|
142
|
+
text: `MCP tool discovery failed: ${error.message}`,
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
isError: true,
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
export async function handleMcpCallTool(client, args) {
|
|
150
|
+
try {
|
|
151
|
+
const data = await callMcpGatewayProxy(client, {
|
|
152
|
+
action: 'mcp_call_tool',
|
|
153
|
+
tool_name: args.tool_name,
|
|
154
|
+
tool_arguments: args.tool_arguments,
|
|
155
|
+
connection_id: args.connection_id,
|
|
156
|
+
provider_id: args.provider_id,
|
|
157
|
+
});
|
|
158
|
+
const conn = data.connection || {};
|
|
159
|
+
const content = data.response?.content || [];
|
|
160
|
+
const isError = data.response?.is_error || false;
|
|
161
|
+
let text = `# MCP Tool Call Result\n\n`;
|
|
162
|
+
text += `- **Tool:** ${args.tool_name}\n`;
|
|
163
|
+
text += `- **Provider:** ${conn.provider_id || args.provider_id || 'langsmith'}\n`;
|
|
164
|
+
text += `- **Status:** ${isError ? 'Error' : 'Success'}\n`;
|
|
165
|
+
text += `- **Latency:** ${data.latency_ms}ms\n\n`;
|
|
166
|
+
if (content.length > 0) {
|
|
167
|
+
text += `## Output\n\n`;
|
|
168
|
+
for (const item of content) {
|
|
169
|
+
if (item.type === 'text' && item.text) {
|
|
170
|
+
text += item.text + '\n';
|
|
171
|
+
}
|
|
172
|
+
else if (item.type === 'resource') {
|
|
173
|
+
text += `[Resource: ${item.mimeType || 'unknown type'}]\n`;
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
text += `[${item.type}]\n`;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
else if (data.error) {
|
|
181
|
+
text += `## Error\n\n${data.error}\n`;
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
text += `Tool returned no content.\n`;
|
|
185
|
+
}
|
|
186
|
+
return {
|
|
187
|
+
content: [{ type: 'text', text }],
|
|
188
|
+
...(isError ? { isError: true } : {}),
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
catch (error) {
|
|
192
|
+
return {
|
|
193
|
+
content: [
|
|
194
|
+
{
|
|
195
|
+
type: 'text',
|
|
196
|
+
text: `MCP tool call failed: ${error.message}`,
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
isError: true,
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
//# sourceMappingURL=mcp-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-tools.js","sourceRoot":"","sources":["../../src/tools/mcp-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,+CAA+C;AAC/C,mBAAmB;AACnB,+CAA+C;AAE/C,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,kBAAkB,EAAE;QAClB,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EACT,2EAA2E;YAC3E,oEAAoE;YACpE,sDAAsD;YACtD,4DAA4D;QAC9D,WAAW,EAAE;YACX,IAAI,EAAE,QAAiB;YACvB,UAAU,EAAE;gBACV,aAAa,EAAE;oBACb,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,wHAAwH;iBAC3H;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,0GAA0G;iBAC7G;aACF;SACF;KACF;IAED,aAAa,EAAE;QACb,IAAI,EAAE,eAAe;QACrB,WAAW,EACT,8DAA8D;YAC9D,+EAA+E;YAC/E,gFAAgF;QAClF,WAAW,EAAE;YACX,IAAI,EAAE,QAAiB;YACvB,UAAU,EAAE;gBACV,SAAS,EAAE;oBACT,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,iEAAiE;iBACpE;gBACD,cAAc,EAAE;oBACd,IAAI,EAAE,QAAQ;oBACd,WAAW,E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