conductor-node-mcp 14.1.0 → 14.2.1
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/LICENSE +1 -1
- package/README.md +1 -1
- package/code-tool-types.d.mts +7 -9
- package/code-tool-types.d.mts.map +1 -1
- package/code-tool-types.d.ts +7 -9
- package/code-tool-types.d.ts.map +1 -1
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +50 -5
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +52 -7
- package/code-tool.mjs.map +1 -1
- package/docs-search-tool.d.mts +1 -0
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts +1 -0
- package/docs-search-tool.d.ts.map +1 -1
- package/http.d.mts.map +1 -1
- package/http.d.ts.map +1 -1
- package/http.js +1 -4
- package/http.js.map +1 -1
- package/http.mjs +1 -4
- package/http.mjs.map +1 -1
- package/options.js +2 -2
- package/options.js.map +1 -1
- package/options.mjs +2 -2
- package/options.mjs.map +1 -1
- package/package.json +4 -4
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/code-tool-types.ts +7 -9
- package/src/code-tool.ts +56 -10
- package/src/http.ts +2 -5
- package/src/options.ts +2 -2
- package/src/server.ts +1 -1
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright 2026 Conductor
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ If you use Claude Code, you can install the MCP server by running the command be
|
|
|
52
52
|
environment variables in Claude Code's `.claude.json`, which can be found in your home directory.
|
|
53
53
|
|
|
54
54
|
```
|
|
55
|
-
claude mcp add
|
|
55
|
+
claude mcp add conductor_node_mcp_api --env CONDUCTOR_SECRET_KEY="Your CONDUCTOR_SECRET_KEY here." -- npx -y conductor-node-mcp
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
## Code Mode
|
package/code-tool-types.d.mts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { ClientOptions } from 'conductor-node';
|
|
2
2
|
export type WorkerInput = {
|
|
3
|
-
|
|
3
|
+
project_name: string;
|
|
4
4
|
code: string;
|
|
5
|
+
client_opts: ClientOptions;
|
|
6
|
+
intent?: string | undefined;
|
|
5
7
|
};
|
|
6
|
-
export type
|
|
8
|
+
export type WorkerOutput = {
|
|
9
|
+
is_error: boolean;
|
|
7
10
|
result: unknown | null;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
export type WorkerError = {
|
|
12
|
-
message: string | undefined;
|
|
13
|
-
logLines: string[];
|
|
14
|
-
errLines: string[];
|
|
11
|
+
log_lines: string[];
|
|
12
|
+
err_lines: string[];
|
|
15
13
|
};
|
|
16
14
|
//# sourceMappingURL=code-tool-types.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool-types.d.mts","sourceRoot":"","sources":["src/code-tool-types.ts"],"names":[],"mappings":"OAEO,EAAE,aAAa,EAAE,MAAM,gBAAgB;AAE9C,MAAM,MAAM,WAAW,GAAG;IACxB,
|
|
1
|
+
{"version":3,"file":"code-tool-types.d.mts","sourceRoot":"","sources":["src/code-tool-types.ts"],"names":[],"mappings":"OAEO,EAAE,aAAa,EAAE,MAAM,gBAAgB;AAE9C,MAAM,MAAM,WAAW,GAAG;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,aAAa,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AACF,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC"}
|
package/code-tool-types.d.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { ClientOptions } from 'conductor-node';
|
|
2
2
|
export type WorkerInput = {
|
|
3
|
-
|
|
3
|
+
project_name: string;
|
|
4
4
|
code: string;
|
|
5
|
+
client_opts: ClientOptions;
|
|
6
|
+
intent?: string | undefined;
|
|
5
7
|
};
|
|
6
|
-
export type
|
|
8
|
+
export type WorkerOutput = {
|
|
9
|
+
is_error: boolean;
|
|
7
10
|
result: unknown | null;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
export type WorkerError = {
|
|
12
|
-
message: string | undefined;
|
|
13
|
-
logLines: string[];
|
|
14
|
-
errLines: string[];
|
|
11
|
+
log_lines: string[];
|
|
12
|
+
err_lines: string[];
|
|
15
13
|
};
|
|
16
14
|
//# sourceMappingURL=code-tool-types.d.ts.map
|
package/code-tool-types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool-types.d.ts","sourceRoot":"","sources":["src/code-tool-types.ts"],"names":[],"mappings":"OAEO,EAAE,aAAa,EAAE,MAAM,gBAAgB;AAE9C,MAAM,MAAM,WAAW,GAAG;IACxB,
|
|
1
|
+
{"version":3,"file":"code-tool-types.d.ts","sourceRoot":"","sources":["src/code-tool-types.ts"],"names":[],"mappings":"OAEO,EAAE,aAAa,EAAE,MAAM,gBAAgB;AAE9C,MAAM,MAAM,WAAW,GAAG;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,aAAa,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AACF,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC"}
|
package/code-tool.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool.d.mts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"code-tool.d.mts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAgE;AA0BhF;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,IAAI,OAAO,CAsElC"}
|
package/code-tool.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool.d.ts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"code-tool.d.ts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAgE;AA0BhF;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,IAAI,OAAO,CAsElC"}
|
package/code-tool.js
CHANGED
|
@@ -4,6 +4,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.codeTool = codeTool;
|
|
5
5
|
const types_1 = require("./types.js");
|
|
6
6
|
const server_1 = require("./server.js");
|
|
7
|
+
const prompt = `Runs JavaScript code to interact with the Conductor API.
|
|
8
|
+
|
|
9
|
+
You are a skilled programmer writing code to interface with the service.
|
|
10
|
+
Define an async function named "run" that takes a single parameter of an initialized SDK client and it will be run.
|
|
11
|
+
For example:
|
|
12
|
+
|
|
13
|
+
\`\`\`
|
|
14
|
+
async function run(conductor) {
|
|
15
|
+
const page = await conductor.qbd.invoices.list({ conductorEndUserId: 'YOUR_END_USER_ID' });
|
|
16
|
+
const invoice = page.data[0]
|
|
17
|
+
|
|
18
|
+
console.log(invoice.id);
|
|
19
|
+
}
|
|
20
|
+
\`\`\`
|
|
21
|
+
|
|
22
|
+
You will be returned anything that your function returns, plus the results of any console.log statements.
|
|
23
|
+
Do not add try-catch blocks for single API calls. The tool will handle errors for you.
|
|
24
|
+
Do not add comments unless necessary for generating better code.
|
|
25
|
+
Code will run in a container, and cannot interact with the network outside of the given SDK client.
|
|
26
|
+
Variables will not persist between calls, so make sure to return or log any data you might need later.`;
|
|
7
27
|
/**
|
|
8
28
|
* A tool that runs code against a copy of the SDK.
|
|
9
29
|
*
|
|
@@ -17,11 +37,25 @@ function codeTool() {
|
|
|
17
37
|
const metadata = { resource: 'all', operation: 'write', tags: [] };
|
|
18
38
|
const tool = {
|
|
19
39
|
name: 'execute',
|
|
20
|
-
description:
|
|
21
|
-
inputSchema: {
|
|
40
|
+
description: prompt,
|
|
41
|
+
inputSchema: {
|
|
42
|
+
type: 'object',
|
|
43
|
+
properties: {
|
|
44
|
+
code: {
|
|
45
|
+
type: 'string',
|
|
46
|
+
description: 'Code to execute.',
|
|
47
|
+
},
|
|
48
|
+
intent: {
|
|
49
|
+
type: 'string',
|
|
50
|
+
description: 'Task you are trying to perform. Used for improving the service.',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
required: ['code'],
|
|
54
|
+
},
|
|
22
55
|
};
|
|
23
56
|
const handler = async (_, args) => {
|
|
24
57
|
const code = args.code;
|
|
58
|
+
const intent = args.intent;
|
|
25
59
|
// this is not required, but passing a Stainless API key for the matching project_name
|
|
26
60
|
// will allow you to run code-mode queries against non-published versions of your SDK.
|
|
27
61
|
const stainlessAPIKey = (0, server_1.readEnv)('STAINLESS_API_KEY');
|
|
@@ -32,20 +66,31 @@ function codeTool() {
|
|
|
32
66
|
...(stainlessAPIKey && { Authorization: stainlessAPIKey }),
|
|
33
67
|
'Content-Type': 'application/json',
|
|
34
68
|
client_envs: JSON.stringify({
|
|
35
|
-
CONDUCTOR_SECRET_KEY: (0, server_1.
|
|
69
|
+
CONDUCTOR_SECRET_KEY: (0, server_1.readEnvOrError)('CONDUCTOR_SECRET_KEY'),
|
|
36
70
|
CONDUCTOR_BASE_URL: (0, server_1.readEnv)('CONDUCTOR_BASE_URL'),
|
|
37
71
|
}),
|
|
38
72
|
},
|
|
39
73
|
body: JSON.stringify({
|
|
40
74
|
project_name: 'conductor',
|
|
41
|
-
client_opts: {},
|
|
42
75
|
code,
|
|
76
|
+
intent,
|
|
77
|
+
client_opts: {},
|
|
43
78
|
}),
|
|
44
79
|
});
|
|
45
80
|
if (!res.ok) {
|
|
46
81
|
throw new Error(`${res.status}: ${res.statusText} error when trying to contact Code Tool server. Details: ${await res.text()}`);
|
|
47
82
|
}
|
|
48
|
-
|
|
83
|
+
const { is_error, result, log_lines, err_lines } = (await res.json());
|
|
84
|
+
const hasLogs = log_lines.length > 0 || err_lines.length > 0;
|
|
85
|
+
const output = {
|
|
86
|
+
result,
|
|
87
|
+
...(log_lines.length > 0 && { log_lines }),
|
|
88
|
+
...(err_lines.length > 0 && { err_lines }),
|
|
89
|
+
};
|
|
90
|
+
if (is_error) {
|
|
91
|
+
return (0, types_1.asErrorResult)(typeof result === 'string' && !hasLogs ? result : JSON.stringify(output, null, 2));
|
|
92
|
+
}
|
|
93
|
+
return (0, types_1.asTextContentResult)(output);
|
|
49
94
|
};
|
|
50
95
|
return { metadata, tool, handler };
|
|
51
96
|
}
|
package/code-tool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool.js","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":";AAAA,sFAAsF;;
|
|
1
|
+
{"version":3,"file":"code-tool.js","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":";AAAA,sFAAsF;;AAqCtF,4BAsEC;AAzGD,sCAAgG;AAEhG,wCAAmD;AAGnD,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;uGAmBwF,CAAC;AAExG;;;;;;;;GAQG;AACH,SA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E,WAAW;gBACzB,IAAI;gBACJ,MAAM;gBACN,WAAW,EAAE,EAAE;aACM,CAAC;SACzB,CAAC,CAAC;QAEH,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CACb,GAAG,GAAG,CAAC,MAAM,KACX,GAAG,CAAC,UACN,4DAA4D,MAAM,GAAG,CAAC,IAAI,EAAE,EAAE,CAC/E,CAAC;QACJ,CAAC;QAED,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAiB,CAAC;QACtF,MAAM,OAAO,GAAG,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC;QAC7D,MAAM,MAAM,GAAG;YACb,MAAM;YACN,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC;YAC1C,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC;SAC3C,CAAC;QACF,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,IAAA,qBAAa,EAAC,OAAO,MAAM,KAAK,QAAQ,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAC1G,CAAC;QACD,OAAO,IAAA,2BAAmB,EAAC,MAAM,CAAC,CAAC;IACrC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACrC,CAAC"}
|
package/code-tool.mjs
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { asTextContentResult } from "./types.mjs";
|
|
3
|
-
import { readEnv } from "./server.mjs";
|
|
2
|
+
import { asErrorResult, asTextContentResult } from "./types.mjs";
|
|
3
|
+
import { readEnv, readEnvOrError } from "./server.mjs";
|
|
4
|
+
const prompt = `Runs JavaScript code to interact with the Conductor API.
|
|
5
|
+
|
|
6
|
+
You are a skilled programmer writing code to interface with the service.
|
|
7
|
+
Define an async function named "run" that takes a single parameter of an initialized SDK client and it will be run.
|
|
8
|
+
For example:
|
|
9
|
+
|
|
10
|
+
\`\`\`
|
|
11
|
+
async function run(conductor) {
|
|
12
|
+
const page = await conductor.qbd.invoices.list({ conductorEndUserId: 'YOUR_END_USER_ID' });
|
|
13
|
+
const invoice = page.data[0]
|
|
14
|
+
|
|
15
|
+
console.log(invoice.id);
|
|
16
|
+
}
|
|
17
|
+
\`\`\`
|
|
18
|
+
|
|
19
|
+
You will be returned anything that your function returns, plus the results of any console.log statements.
|
|
20
|
+
Do not add try-catch blocks for single API calls. The tool will handle errors for you.
|
|
21
|
+
Do not add comments unless necessary for generating better code.
|
|
22
|
+
Code will run in a container, and cannot interact with the network outside of the given SDK client.
|
|
23
|
+
Variables will not persist between calls, so make sure to return or log any data you might need later.`;
|
|
4
24
|
/**
|
|
5
25
|
* A tool that runs code against a copy of the SDK.
|
|
6
26
|
*
|
|
@@ -14,11 +34,25 @@ export function codeTool() {
|
|
|
14
34
|
const metadata = { resource: 'all', operation: 'write', tags: [] };
|
|
15
35
|
const tool = {
|
|
16
36
|
name: 'execute',
|
|
17
|
-
description:
|
|
18
|
-
inputSchema: {
|
|
37
|
+
description: prompt,
|
|
38
|
+
inputSchema: {
|
|
39
|
+
type: 'object',
|
|
40
|
+
properties: {
|
|
41
|
+
code: {
|
|
42
|
+
type: 'string',
|
|
43
|
+
description: 'Code to execute.',
|
|
44
|
+
},
|
|
45
|
+
intent: {
|
|
46
|
+
type: 'string',
|
|
47
|
+
description: 'Task you are trying to perform. Used for improving the service.',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
required: ['code'],
|
|
51
|
+
},
|
|
19
52
|
};
|
|
20
53
|
const handler = async (_, args) => {
|
|
21
54
|
const code = args.code;
|
|
55
|
+
const intent = args.intent;
|
|
22
56
|
// this is not required, but passing a Stainless API key for the matching project_name
|
|
23
57
|
// will allow you to run code-mode queries against non-published versions of your SDK.
|
|
24
58
|
const stainlessAPIKey = readEnv('STAINLESS_API_KEY');
|
|
@@ -29,20 +63,31 @@ export function codeTool() {
|
|
|
29
63
|
...(stainlessAPIKey && { Authorization: stainlessAPIKey }),
|
|
30
64
|
'Content-Type': 'application/json',
|
|
31
65
|
client_envs: JSON.stringify({
|
|
32
|
-
CONDUCTOR_SECRET_KEY:
|
|
66
|
+
CONDUCTOR_SECRET_KEY: readEnvOrError('CONDUCTOR_SECRET_KEY'),
|
|
33
67
|
CONDUCTOR_BASE_URL: readEnv('CONDUCTOR_BASE_URL'),
|
|
34
68
|
}),
|
|
35
69
|
},
|
|
36
70
|
body: JSON.stringify({
|
|
37
71
|
project_name: 'conductor',
|
|
38
|
-
client_opts: {},
|
|
39
72
|
code,
|
|
73
|
+
intent,
|
|
74
|
+
client_opts: {},
|
|
40
75
|
}),
|
|
41
76
|
});
|
|
42
77
|
if (!res.ok) {
|
|
43
78
|
throw new Error(`${res.status}: ${res.statusText} error when trying to contact Code Tool server. Details: ${await res.text()}`);
|
|
44
79
|
}
|
|
45
|
-
|
|
80
|
+
const { is_error, result, log_lines, err_lines } = (await res.json());
|
|
81
|
+
const hasLogs = log_lines.length > 0 || err_lines.length > 0;
|
|
82
|
+
const output = {
|
|
83
|
+
result,
|
|
84
|
+
...(log_lines.length > 0 && { log_lines }),
|
|
85
|
+
...(err_lines.length > 0 && { err_lines }),
|
|
86
|
+
};
|
|
87
|
+
if (is_error) {
|
|
88
|
+
return asErrorResult(typeof result === 'string' && !hasLogs ? result : JSON.stringify(output, null, 2));
|
|
89
|
+
}
|
|
90
|
+
return asTextContentResult(output);
|
|
46
91
|
};
|
|
47
92
|
return { metadata, tool, handler };
|
|
48
93
|
}
|
package/code-tool.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool.mjs","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAqC,mBAAmB,EAAE;
|
|
1
|
+
{"version":3,"file":"code-tool.mjs","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAqC,aAAa,EAAE,mBAAmB,EAAE;OAEzE,EAAE,OAAO,EAAE,cAAc,EAAE;AAGlC,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;uGAmBwF,CAAC;AAExG;;;;;;;;GAQG;AACH,MAAM,UAAU,QAAQ;IACtB,MAAM,QAAQ,GAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IAC7E,MAAM,IAAI,GAAS;QACjB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,MAAM;QACnB,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,kBAAkB;iBAChC;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,iEAAiE;iBAC/E;aACF;YACD,QAAQ,EAAE,CAAC,MAAM,CAAC;SACnB;KACF,CAAC;IACF,MAAM,OAAO,GAAG,KAAK,EAAE,CAAU,EAAE,IAAS,EAA2B,EAAE;QACvE,MAAM,IAAI,GAAG,IAAI,CAAC,IAAc,CAAC;QACjC,MAAM,MAAM,GAAG,IAAI,CAAC,MAA4B,CAAC;QAEjD,sFAAsF;QACtF,sFAAsF;QACtF,MAAM,eAAe,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;QACrD,MAAM,gBAAgB,GACpB,OAAO,CAAC,wBAAwB,CAAC,IAAI,4CAA4C,CAAC;Q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M,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAC1G,CAAC;QACD,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACrC,CAAC"}
|
package/docs-search-tool.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-search-tool.d.mts","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB;OAEjC,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,eAAO,MAAM,QAAQ,EAAE,QAKtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0BlB,CAAC;AAKF,eAAO,MAAM,OAAO,GAAU,GAAG,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,8CAYlF,CAAC
|
|
1
|
+
{"version":3,"file":"docs-search-tool.d.mts","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB;OAEjC,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,eAAO,MAAM,QAAQ,EAAE,QAKtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0BlB,CAAC;AAKF,eAAO,MAAM,OAAO,GAAU,GAAG,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,8CAYlF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAZ+B,OAAO,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAcnF,wBAA2C"}
|
package/docs-search-tool.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-search-tool.d.ts","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB;OAEjC,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,eAAO,MAAM,QAAQ,EAAE,QAKtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0BlB,CAAC;AAKF,eAAO,MAAM,OAAO,GAAU,GAAG,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,8CAYlF,CAAC
|
|
1
|
+
{"version":3,"file":"docs-search-tool.d.ts","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB;OAEjC,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,eAAO,MAAM,QAAQ,EAAE,QAKtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA0BlB,CAAC;AAKF,eAAO,MAAM,OAAO,GAAU,GAAG,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,8CAYlF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAZ+B,OAAO,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAcnF,wBAA2C"}
|
package/http.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.mts","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":"OAKO,OAAO,MAAM,SAAS;OACtB,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAA+B;
|
|
1
|
+
{"version":3,"file":"http.d.mts","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":"OAKO,OAAO,MAAM,SAAS;OACtB,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAA+B;AAoErD,eAAO,MAAM,iBAAiB,GAAI,gCAG/B;IACD,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,KAAG,OAAO,CAAC,OAUX,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAU,SAAS,UAAU,EAAE,MAAM,MAAM,GAAG,MAAM,GAAG,SAAS,kBAYtG,CAAC"}
|
package/http.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":"OAKO,OAAO,MAAM,SAAS;OACtB,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAA+B;
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":"OAKO,OAAO,MAAM,SAAS;OACtB,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAA+B;AAoErD,eAAO,MAAM,iBAAiB,GAAI,gCAG/B;IACD,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,KAAG,OAAO,CAAC,OAUX,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAU,SAAS,UAAU,EAAE,MAAM,MAAM,GAAG,MAAM,GAAG,SAAS,kBAYtG,CAAC"}
|
package/http.js
CHANGED
|
@@ -38,10 +38,7 @@ const post = (options) => async (req, res) => {
|
|
|
38
38
|
// If we return null, we already set the authorization error.
|
|
39
39
|
if (server === null)
|
|
40
40
|
return;
|
|
41
|
-
const transport = new streamableHttp_js_1.StreamableHTTPServerTransport(
|
|
42
|
-
// Stateless server
|
|
43
|
-
sessionIdGenerator: undefined,
|
|
44
|
-
});
|
|
41
|
+
const transport = new streamableHttp_js_1.StreamableHTTPServerTransport();
|
|
45
42
|
await server.connect(transport);
|
|
46
43
|
await transport.handleRequest(req, res, req.body);
|
|
47
44
|
};
|
package/http.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":";AAAA,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vD,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAChC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC;IAEjC,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,OAAO,CAAC,KAAK,CAAC,4CAA4C,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;SAAM,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QAC5B,OAAO,CAAC,KAAK,CAAC,iDAAiD,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IACjF,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,KAAK,CAAC,iDAAiD,IAAI,EAAE,CAAC,CAAC;IACzE,CAAC;AACH,CAAC,CAAC;AAZW,QAAA,0BAA0B,8BAYrC"}
|
package/http.mjs
CHANGED
|
@@ -32,10 +32,7 @@ const post = (options) => async (req, res) => {
|
|
|
32
32
|
// If we return null, we already set the authorization error.
|
|
33
33
|
if (server === null)
|
|
34
34
|
return;
|
|
35
|
-
const transport = new StreamableHTTPServerTransport(
|
|
36
|
-
// Stateless server
|
|
37
|
-
sessionIdGenerator: undefined,
|
|
38
|
-
});
|
|
35
|
+
const transport = new StreamableHTTPServerTransport();
|
|
39
36
|
await server.connect(transport);
|
|
40
37
|
await transport.handleRequest(req, res, req.body);
|
|
41
38
|
};
|
package/http.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.mjs","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,6BAA6B,EAAE,MAAM,oDAAoD;OAE3F,OAAO,MAAM,SAAS;OAEtB,EAAiB,aAAa,EAAE,YAAY,EAAE;OAC9C,EAAE,gBAAgB,EAAE;AAE3B,MAAM,SAAS,GAAG,CAAC,EACjB,aAAa,EACb,GAAG,EACH,GAAG,GAKJ,EAAoB,EAAE;IACrB,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC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C,4CAA4C,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;SAAM,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QAC5B,OAAO,CAAC,KAAK,CAAC,iDAAiD,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IACjF,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,KAAK,CAAC,iDAAiD,IAAI,EAAE,CAAC,CAAC;IACzE,CAAC;AACH,CAAC,CAAC"}
|
package/options.js
CHANGED
|
@@ -45,7 +45,7 @@ function parseCLIOptions() {
|
|
|
45
45
|
const includeDocsTools = shouldIncludeToolType('docs');
|
|
46
46
|
const transport = argv.transport;
|
|
47
47
|
return {
|
|
48
|
-
includeDocsTools,
|
|
48
|
+
...(includeDocsTools !== undefined && { includeDocsTools }),
|
|
49
49
|
transport,
|
|
50
50
|
port: argv.port,
|
|
51
51
|
socket: argv.socket,
|
|
@@ -66,7 +66,7 @@ function parseQueryOptions(defaultOptions, query) {
|
|
|
66
66
|
: queryOptions.tools?.includes('docs') ? true
|
|
67
67
|
: defaultOptions.includeDocsTools;
|
|
68
68
|
return {
|
|
69
|
-
includeDocsTools: docsTools,
|
|
69
|
+
...(docsTools !== undefined && { includeDocsTools: docsTools }),
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
//# sourceMappingURL=options.js.map
|
package/options.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["src/options.ts"],"names":[],"mappings":";;;;;AAeA,0CA+CC;AAiBD,8CAYC;AA3FD,4CAAoB;AACpB,kDAA0B;AAC1B,2CAAwC;AACxC,8CAAoB;AAYpB,SAAgB,eAAe;IAC7B,MAAM,IAAI,GAAG,IAAA,eAAK,EAAC,IAAA,iBAAO,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACtC,MAAM,CAAC,OAAO,EAAE;QACf,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,CAAC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,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK;QACxE,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI;YAC7C,CAAC,CAAC,cAAc,CAAC,gBAAgB,CAAC;IAEpC,OAAO;QACL,GAAG,CAAC,SAAS,KAAK,SAAS,IAAI,EAAE,gBAAgB,EAAE,SAAS,EAAE,CAAC;KAChE,CAAC;AACJ,CAAC"}
|
package/options.mjs
CHANGED
|
@@ -38,7 +38,7 @@ export function parseCLIOptions() {
|
|
|
38
38
|
const includeDocsTools = shouldIncludeToolType('docs');
|
|
39
39
|
const transport = argv.transport;
|
|
40
40
|
return {
|
|
41
|
-
includeDocsTools,
|
|
41
|
+
...(includeDocsTools !== undefined && { includeDocsTools }),
|
|
42
42
|
transport,
|
|
43
43
|
port: argv.port,
|
|
44
44
|
socket: argv.socket,
|
|
@@ -59,7 +59,7 @@ export function parseQueryOptions(defaultOptions, query) {
|
|
|
59
59
|
: queryOptions.tools?.includes('docs') ? true
|
|
60
60
|
: defaultOptions.includeDocsTools;
|
|
61
61
|
return {
|
|
62
|
-
includeDocsTools: docsTools,
|
|
62
|
+
...(docsTools !== undefined && { includeDocsTools: docsTools }),
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
//# sourceMappingURL=options.mjs.map
|
package/options.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.mjs","sourceRoot":"","sources":["src/options.ts"],"names":[],"mappings":"OAAO,EAAE,MAAM,IAAI;OACZ,KAAK,MAAM,OAAO;OAClB,EAAE,OAAO,EAAE,MAAM,eAAe;OAChC,CAAC,MAAM,KAAK;AAYnB,MAAM,UAAU,eAAe;IAC7B,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACtC,MAAM,CAAC,OAAO,EAAE;QACf,IAAI,EAAE,QAAQ;Q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S,GACX,YAAY,CAAC,QAAQ,IAAI,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK;QACxE,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI;YAC7C,CAAC,CAAC,cAAc,CAAC,gBAAgB,CAAC;IAEpC,OAAO;QACL,GAAG,CAAC,SAAS,KAAK,SAAS,IAAI,EAAE,gBAAgB,EAAE,SAAS,EAAE,CAAC;KAChE,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "conductor-node-mcp",
|
|
3
|
-
"version": "14.1
|
|
3
|
+
"version": "14.2.1",
|
|
4
4
|
"description": "The official MCP Server for the Conductor API",
|
|
5
5
|
"author": "Conductor <support@conductor.is>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"fix": "eslint --fix --ext ts,js ."
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"conductor-node": "^14.1
|
|
30
|
+
"conductor-node": "^14.2.1",
|
|
31
31
|
"@cloudflare/cabidela": "^0.2.4",
|
|
32
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
32
|
+
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
33
33
|
"@valtown/deno-http-worker": "^0.0.21",
|
|
34
34
|
"cors": "^2.8.5",
|
|
35
35
|
"express": "^5.1.0",
|
|
36
36
|
"fuse.js": "^7.1.0",
|
|
37
37
|
"jq-web": "https://github.com/stainless-api/jq-web/releases/download/v0.8.8/jq-web.tar.gz",
|
|
38
|
-
"qs": "^6.14.
|
|
38
|
+
"qs": "^6.14.1",
|
|
39
39
|
"typescript": "5.8.3",
|
|
40
40
|
"yargs": "^17.7.2",
|
|
41
41
|
"zod": "^3.25.20",
|
package/server.js
CHANGED
|
@@ -15,7 +15,7 @@ const code_tool_1 = require("./code-tool.js");
|
|
|
15
15
|
const docs_search_tool_1 = __importDefault(require("./docs-search-tool.js"));
|
|
16
16
|
const newMcpServer = () => new mcp_js_1.McpServer({
|
|
17
17
|
name: 'conductor_node_api',
|
|
18
|
-
version: '14.1
|
|
18
|
+
version: '14.2.1',
|
|
19
19
|
}, { capabilities: { tools: {}, logging: {} } });
|
|
20
20
|
exports.newMcpServer = newMcpServer;
|
|
21
21
|
// Create server instance
|
package/server.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { codeTool } from "./code-tool.mjs";
|
|
|
6
6
|
import docsSearchTool from "./docs-search-tool.mjs";
|
|
7
7
|
export const newMcpServer = () => new McpServer({
|
|
8
8
|
name: 'conductor_node_api',
|
|
9
|
-
version: '14.1
|
|
9
|
+
version: '14.2.1',
|
|
10
10
|
}, { capabilities: { tools: {}, logging: {} } });
|
|
11
11
|
// Create server instance
|
|
12
12
|
export const server = newMcpServer();
|
package/src/code-tool-types.ts
CHANGED
|
@@ -3,16 +3,14 @@
|
|
|
3
3
|
import { ClientOptions } from 'conductor-node';
|
|
4
4
|
|
|
5
5
|
export type WorkerInput = {
|
|
6
|
-
|
|
6
|
+
project_name: string;
|
|
7
7
|
code: string;
|
|
8
|
+
client_opts: ClientOptions;
|
|
9
|
+
intent?: string | undefined;
|
|
8
10
|
};
|
|
9
|
-
export type
|
|
11
|
+
export type WorkerOutput = {
|
|
12
|
+
is_error: boolean;
|
|
10
13
|
result: unknown | null;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
export type WorkerError = {
|
|
15
|
-
message: string | undefined;
|
|
16
|
-
logLines: string[];
|
|
17
|
-
errLines: string[];
|
|
14
|
+
log_lines: string[];
|
|
15
|
+
err_lines: string[];
|
|
18
16
|
};
|
package/src/code-tool.ts
CHANGED
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { McpTool, Metadata, ToolCallResult, asTextContentResult } from './types';
|
|
3
|
+
import { McpTool, Metadata, ToolCallResult, asErrorResult, asTextContentResult } from './types';
|
|
4
4
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
5
|
-
import { readEnv } from './server';
|
|
6
|
-
import {
|
|
5
|
+
import { readEnv, readEnvOrError } from './server';
|
|
6
|
+
import { WorkerInput, WorkerOutput } from './code-tool-types';
|
|
7
|
+
|
|
8
|
+
const prompt = `Runs JavaScript code to interact with the Conductor API.
|
|
9
|
+
|
|
10
|
+
You are a skilled programmer writing code to interface with the service.
|
|
11
|
+
Define an async function named "run" that takes a single parameter of an initialized SDK client and it will be run.
|
|
12
|
+
For example:
|
|
13
|
+
|
|
14
|
+
\`\`\`
|
|
15
|
+
async function run(conductor) {
|
|
16
|
+
const page = await conductor.qbd.invoices.list({ conductorEndUserId: 'YOUR_END_USER_ID' });
|
|
17
|
+
const invoice = page.data[0]
|
|
18
|
+
|
|
19
|
+
console.log(invoice.id);
|
|
20
|
+
}
|
|
21
|
+
\`\`\`
|
|
22
|
+
|
|
23
|
+
You will be returned anything that your function returns, plus the results of any console.log statements.
|
|
24
|
+
Do not add try-catch blocks for single API calls. The tool will handle errors for you.
|
|
25
|
+
Do not add comments unless necessary for generating better code.
|
|
26
|
+
Code will run in a container, and cannot interact with the network outside of the given SDK client.
|
|
27
|
+
Variables will not persist between calls, so make sure to return or log any data you might need later.`;
|
|
28
|
+
|
|
7
29
|
/**
|
|
8
30
|
* A tool that runs code against a copy of the SDK.
|
|
9
31
|
*
|
|
@@ -17,12 +39,25 @@ export function codeTool(): McpTool {
|
|
|
17
39
|
const metadata: Metadata = { resource: 'all', operation: 'write', tags: [] };
|
|
18
40
|
const tool: Tool = {
|
|
19
41
|
name: 'execute',
|
|
20
|
-
description:
|
|
21
|
-
|
|
22
|
-
|
|
42
|
+
description: prompt,
|
|
43
|
+
inputSchema: {
|
|
44
|
+
type: 'object',
|
|
45
|
+
properties: {
|
|
46
|
+
code: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
description: 'Code to execute.',
|
|
49
|
+
},
|
|
50
|
+
intent: {
|
|
51
|
+
type: 'string',
|
|
52
|
+
description: 'Task you are trying to perform. Used for improving the service.',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
required: ['code'],
|
|
56
|
+
},
|
|
23
57
|
};
|
|
24
58
|
const handler = async (_: unknown, args: any): Promise<ToolCallResult> => {
|
|
25
59
|
const code = args.code as string;
|
|
60
|
+
const intent = args.intent as string | undefined;
|
|
26
61
|
|
|
27
62
|
// this is not required, but passing a Stainless API key for the matching project_name
|
|
28
63
|
// will allow you to run code-mode queries against non-published versions of your SDK.
|
|
@@ -36,15 +71,16 @@ export function codeTool(): McpTool {
|
|
|
36
71
|
...(stainlessAPIKey && { Authorization: stainlessAPIKey }),
|
|
37
72
|
'Content-Type': 'application/json',
|
|
38
73
|
client_envs: JSON.stringify({
|
|
39
|
-
CONDUCTOR_SECRET_KEY:
|
|
74
|
+
CONDUCTOR_SECRET_KEY: readEnvOrError('CONDUCTOR_SECRET_KEY'),
|
|
40
75
|
CONDUCTOR_BASE_URL: readEnv('CONDUCTOR_BASE_URL'),
|
|
41
76
|
}),
|
|
42
77
|
},
|
|
43
78
|
body: JSON.stringify({
|
|
44
79
|
project_name: 'conductor',
|
|
45
|
-
client_opts: {},
|
|
46
80
|
code,
|
|
47
|
-
|
|
81
|
+
intent,
|
|
82
|
+
client_opts: {},
|
|
83
|
+
} satisfies WorkerInput),
|
|
48
84
|
});
|
|
49
85
|
|
|
50
86
|
if (!res.ok) {
|
|
@@ -55,7 +91,17 @@ export function codeTool(): McpTool {
|
|
|
55
91
|
);
|
|
56
92
|
}
|
|
57
93
|
|
|
58
|
-
|
|
94
|
+
const { is_error, result, log_lines, err_lines } = (await res.json()) as WorkerOutput;
|
|
95
|
+
const hasLogs = log_lines.length > 0 || err_lines.length > 0;
|
|
96
|
+
const output = {
|
|
97
|
+
result,
|
|
98
|
+
...(log_lines.length > 0 && { log_lines }),
|
|
99
|
+
...(err_lines.length > 0 && { err_lines }),
|
|
100
|
+
};
|
|
101
|
+
if (is_error) {
|
|
102
|
+
return asErrorResult(typeof result === 'string' && !hasLogs ? result : JSON.stringify(output, null, 2));
|
|
103
|
+
}
|
|
104
|
+
return asTextContentResult(output);
|
|
59
105
|
};
|
|
60
106
|
|
|
61
107
|
return { metadata, tool, handler };
|
package/src/http.ts
CHANGED
|
@@ -48,11 +48,8 @@ const post =
|
|
|
48
48
|
const server = newServer({ ...options, req, res });
|
|
49
49
|
// If we return null, we already set the authorization error.
|
|
50
50
|
if (server === null) return;
|
|
51
|
-
const transport = new StreamableHTTPServerTransport(
|
|
52
|
-
|
|
53
|
-
sessionIdGenerator: undefined,
|
|
54
|
-
});
|
|
55
|
-
await server.connect(transport);
|
|
51
|
+
const transport = new StreamableHTTPServerTransport();
|
|
52
|
+
await server.connect(transport as any);
|
|
56
53
|
await transport.handleRequest(req, res, req.body);
|
|
57
54
|
};
|
|
58
55
|
|
package/src/options.ts
CHANGED
|
@@ -55,7 +55,7 @@ export function parseCLIOptions(): CLIOptions {
|
|
|
55
55
|
const transport = argv.transport as 'stdio' | 'http';
|
|
56
56
|
|
|
57
57
|
return {
|
|
58
|
-
includeDocsTools,
|
|
58
|
+
...(includeDocsTools !== undefined && { includeDocsTools }),
|
|
59
59
|
transport,
|
|
60
60
|
port: argv.port,
|
|
61
61
|
socket: argv.socket,
|
|
@@ -87,6 +87,6 @@ export function parseQueryOptions(defaultOptions: McpOptions, query: unknown): M
|
|
|
87
87
|
: defaultOptions.includeDocsTools;
|
|
88
88
|
|
|
89
89
|
return {
|
|
90
|
-
includeDocsTools: docsTools,
|
|
90
|
+
...(docsTools !== undefined && { includeDocsTools: docsTools }),
|
|
91
91
|
};
|
|
92
92
|
}
|