@henrylabs/mcp 0.25.0 → 1.0.0
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/auth.d.mts +6 -0
- package/auth.d.mts.map +1 -0
- package/auth.d.ts +6 -0
- package/auth.d.ts.map +1 -0
- package/auth.js +22 -0
- package/auth.js.map +1 -0
- package/auth.mjs +17 -0
- package/auth.mjs.map +1 -0
- package/code-tool-paths.cjs +8 -0
- package/code-tool-paths.cjs.map +1 -0
- package/code-tool-paths.d.cts +2 -0
- package/code-tool-paths.d.cts.map +1 -0
- package/code-tool-types.d.mts.map +1 -1
- package/code-tool-types.d.ts.map +1 -1
- package/code-tool-worker.d.mts +5 -0
- package/code-tool-worker.d.mts.map +1 -0
- package/code-tool-worker.d.ts +5 -0
- package/code-tool-worker.d.ts.map +1 -0
- package/code-tool-worker.js +251 -0
- package/code-tool-worker.js.map +1 -0
- package/code-tool-worker.mjs +246 -0
- package/code-tool-worker.mjs.map +1 -0
- package/code-tool.d.mts +8 -2
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts +8 -2
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +272 -44
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +240 -45
- package/code-tool.mjs.map +1 -1
- package/docs-search-tool.d.mts +9 -3
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts +9 -3
- package/docs-search-tool.d.ts.map +1 -1
- package/docs-search-tool.js +28 -5
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +28 -5
- package/docs-search-tool.mjs.map +1 -1
- package/http.d.mts +3 -5
- package/http.d.mts.map +1 -1
- package/http.d.ts +3 -5
- package/http.d.ts.map +1 -1
- package/http.js +103 -41
- package/http.js.map +1 -1
- package/http.mjs +103 -41
- package/http.mjs.map +1 -1
- package/index.js +13 -12
- package/index.js.map +1 -1
- package/index.mjs +13 -12
- package/index.mjs.map +1 -1
- package/instructions.d.mts +2 -0
- package/instructions.d.mts.map +1 -0
- package/instructions.d.ts +2 -0
- package/instructions.d.ts.map +1 -0
- package/instructions.js +42 -0
- package/instructions.js.map +1 -0
- package/instructions.mjs +39 -0
- package/instructions.mjs.map +1 -0
- package/logger.d.mts +7 -0
- package/logger.d.mts.map +1 -0
- package/logger.d.ts +7 -0
- package/logger.d.ts.map +1 -0
- package/logger.js +29 -0
- package/logger.js.map +1 -0
- package/logger.mjs +22 -0
- package/logger.mjs.map +1 -0
- package/methods.d.mts.map +1 -1
- package/methods.d.ts.map +1 -1
- package/methods.js +1 -0
- package/methods.js.map +1 -1
- package/methods.mjs +1 -0
- package/methods.mjs.map +1 -1
- package/options.d.mts +5 -0
- package/options.d.mts.map +1 -1
- package/options.d.ts +5 -0
- package/options.d.ts.map +1 -1
- package/options.js +31 -0
- package/options.js.map +1 -1
- package/options.mjs +31 -0
- package/options.mjs.map +1 -1
- package/package.json +67 -17
- package/server.d.mts +9 -9
- package/server.d.mts.map +1 -1
- package/server.d.ts +9 -9
- package/server.d.ts.map +1 -1
- package/server.js +76 -76
- package/server.js.map +1 -1
- package/server.mjs +75 -72
- package/server.mjs.map +1 -1
- package/src/auth.ts +25 -0
- package/src/code-tool-paths.cts +5 -0
- package/src/code-tool-types.ts +1 -0
- package/src/code-tool-worker.ts +297 -0
- package/src/code-tool.ts +325 -59
- package/src/docs-search-tool.ts +48 -7
- package/src/http.ts +116 -45
- package/src/index.ts +15 -13
- package/src/instructions.ts +60 -0
- package/src/logger.ts +28 -0
- package/src/methods.ts +2 -0
- package/src/options.ts +43 -0
- package/src/server.ts +89 -93
- package/src/stdio.ts +4 -3
- package/src/types.ts +13 -4
- package/src/util.ts +25 -0
- package/stdio.d.mts.map +1 -1
- package/stdio.d.ts.map +1 -1
- package/stdio.js +4 -3
- package/stdio.js.map +1 -1
- package/stdio.mjs +4 -3
- package/stdio.mjs.map +1 -1
- package/types.d.mts +9 -1
- package/types.d.mts.map +1 -1
- package/types.d.ts +9 -1
- package/types.d.ts.map +1 -1
- package/types.js.map +1 -1
- package/types.mjs.map +1 -1
- package/util.d.mts +4 -0
- package/util.d.mts.map +1 -0
- package/util.d.ts +4 -0
- package/util.d.ts.map +1 -0
- package/util.js +30 -0
- package/util.js.map +1 -0
- package/util.mjs +24 -0
- package/util.mjs.map +1 -0
- package/headers.d.mts +0 -4
- package/headers.d.mts.map +0 -1
- package/headers.d.ts +0 -4
- package/headers.d.ts.map +0 -1
- package/headers.js +0 -10
- package/headers.js.map +0 -1
- package/headers.mjs +0 -6
- package/headers.mjs.map +0 -1
- package/src/headers.ts +0 -10
package/code-tool.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { asErrorResult, asTextContentResult } from "./types.mjs";
|
|
3
|
-
import { readEnv, requireValue } from "./
|
|
2
|
+
import { asErrorResult, asTextContentResult, } from "./types.mjs";
|
|
3
|
+
import { readEnv, requireValue } from "./util.mjs";
|
|
4
|
+
import { getLogger } from "./logger.mjs";
|
|
4
5
|
const prompt = `Runs JavaScript code to interact with the Henry SDK API.
|
|
5
6
|
|
|
6
|
-
You are a skilled programmer writing code to interface with the service.
|
|
7
|
+
You are a skilled TypeScript programmer writing code to interface with the service.
|
|
7
8
|
Define an async function named "run" that takes a single parameter of an initialized SDK client and it will be run.
|
|
8
9
|
For example:
|
|
9
10
|
|
|
@@ -19,7 +20,9 @@ You will be returned anything that your function returns, plus the results of an
|
|
|
19
20
|
Do not add try-catch blocks for single API calls. The tool will handle errors for you.
|
|
20
21
|
Do not add comments unless necessary for generating better code.
|
|
21
22
|
Code will run in a container, and cannot interact with the network outside of the given SDK client.
|
|
22
|
-
Variables will not persist between calls, so make sure to return or log any data you might need later
|
|
23
|
+
Variables will not persist between calls, so make sure to return or log any data you might need later.
|
|
24
|
+
Remember that you are writing TypeScript code, so you need to be careful with your types.
|
|
25
|
+
Always type dynamic key-value stores explicitly as Record<string, YourValueType> instead of {}.`;
|
|
23
26
|
/**
|
|
24
27
|
* A tool that runs code against a copy of the SDK.
|
|
25
28
|
*
|
|
@@ -27,9 +30,13 @@ Variables will not persist between calls, so make sure to return or log any data
|
|
|
27
30
|
* we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
|
|
28
31
|
* a generic endpoint that can be used to invoke any endpoint with the provided arguments.
|
|
29
32
|
*
|
|
30
|
-
* @param
|
|
33
|
+
* @param blockedMethods - The methods to block for code execution. Blocking is done by simple string
|
|
34
|
+
* matching, so it is not secure against obfuscation. For stronger security, block in the downstream API
|
|
35
|
+
* with limited API keys.
|
|
36
|
+
* @param codeExecutionMode - Whether to execute code in a local Deno environment or in a remote
|
|
37
|
+
* sandbox environment hosted by Stainless.
|
|
31
38
|
*/
|
|
32
|
-
export function codeTool(
|
|
39
|
+
export function codeTool({ blockedMethods, codeExecutionMode, }) {
|
|
33
40
|
const metadata = { resource: 'all', operation: 'write', tags: [] };
|
|
34
41
|
const tool = {
|
|
35
42
|
name: 'execute',
|
|
@@ -49,60 +56,248 @@ export function codeTool(params) {
|
|
|
49
56
|
required: ['code'],
|
|
50
57
|
},
|
|
51
58
|
};
|
|
52
|
-
const
|
|
59
|
+
const logger = getLogger();
|
|
60
|
+
const handler = async ({ reqContext, args, }) => {
|
|
53
61
|
const code = args.code;
|
|
54
|
-
const intent = args.intent;
|
|
55
62
|
// Do very basic blocking of code that includes forbidden method names.
|
|
56
63
|
//
|
|
57
64
|
// WARNING: This is not secure against obfuscation and other evasion methods. If
|
|
58
65
|
// stronger security blocks are required, then these should be enforced in the downstream
|
|
59
66
|
// API (e.g., by having users call the MCP server with API keys with limited permissions).
|
|
60
|
-
if (
|
|
61
|
-
const blockedMatches =
|
|
67
|
+
if (blockedMethods) {
|
|
68
|
+
const blockedMatches = blockedMethods.filter((method) => code.includes(method.fullyQualifiedName));
|
|
62
69
|
if (blockedMatches.length > 0) {
|
|
63
70
|
return asErrorResult(`The following methods have been blocked by the MCP server and cannot be used in code execution: ${blockedMatches
|
|
64
71
|
.map((m) => m.fullyQualifiedName)
|
|
65
72
|
.join(', ')}`);
|
|
66
73
|
}
|
|
67
74
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
method: 'POST',
|
|
74
|
-
headers: {
|
|
75
|
-
...(stainlessAPIKey && { Authorization: stainlessAPIKey }),
|
|
76
|
-
'Content-Type': 'application/json',
|
|
77
|
-
client_envs: JSON.stringify({
|
|
78
|
-
HENRY_SDK_API_KEY: requireValue(readEnv('HENRY_SDK_API_KEY') ?? client.apiKey, 'set HENRY_SDK_API_KEY environment variable or provide apiKey client option'),
|
|
79
|
-
HENRY_SDK_BASE_URL: readEnv('HENRY_SDK_BASE_URL') ?? readEnv('HENRY_SDK_ENVIRONMENT') ?
|
|
80
|
-
undefined
|
|
81
|
-
: client.baseURL ?? undefined,
|
|
82
|
-
}),
|
|
83
|
-
},
|
|
84
|
-
body: JSON.stringify({
|
|
85
|
-
project_name: 'henry-sdk',
|
|
86
|
-
code,
|
|
87
|
-
intent,
|
|
88
|
-
client_opts: { environment: (readEnv('HENRY_SDK_ENVIRONMENT') || undefined) },
|
|
89
|
-
}),
|
|
90
|
-
});
|
|
91
|
-
if (!res.ok) {
|
|
92
|
-
throw new Error(`${res.status}: ${res.statusText} error when trying to contact Code Tool server. Details: ${await res.text()}`);
|
|
75
|
+
let result;
|
|
76
|
+
const startTime = Date.now();
|
|
77
|
+
if (codeExecutionMode === 'local') {
|
|
78
|
+
logger.debug('Executing code in local Deno environment');
|
|
79
|
+
result = await localDenoHandler({ reqContext, args });
|
|
93
80
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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));
|
|
81
|
+
else {
|
|
82
|
+
logger.debug('Executing code in remote Stainless environment');
|
|
83
|
+
result = await remoteStainlessHandler({ reqContext, args });
|
|
103
84
|
}
|
|
104
|
-
|
|
85
|
+
logger.info({
|
|
86
|
+
codeExecutionMode,
|
|
87
|
+
durationMs: Date.now() - startTime,
|
|
88
|
+
isError: result.isError,
|
|
89
|
+
contentRows: result.content?.length ?? 0,
|
|
90
|
+
}, 'Got code tool execution result');
|
|
91
|
+
return result;
|
|
105
92
|
};
|
|
106
93
|
return { metadata, tool, handler };
|
|
107
94
|
}
|
|
95
|
+
const remoteStainlessHandler = async ({ reqContext, args, }) => {
|
|
96
|
+
const code = args.code;
|
|
97
|
+
const intent = args.intent;
|
|
98
|
+
const client = reqContext.client;
|
|
99
|
+
const codeModeEndpoint = readEnv('CODE_MODE_ENDPOINT_URL') ?? 'https://api.stainless.com/api/ai/code-tool';
|
|
100
|
+
const localClientEnvs = {
|
|
101
|
+
HENRY_SDK_API_KEY: requireValue(readEnv('HENRY_SDK_API_KEY') ?? client.apiKey, 'set HENRY_SDK_API_KEY environment variable or provide apiKey client option'),
|
|
102
|
+
HENRY_SDK_BASE_URL: readEnv('HENRY_SDK_BASE_URL') ?? readEnv('HENRY_SDK_ENVIRONMENT') ?
|
|
103
|
+
undefined
|
|
104
|
+
: client.baseURL ?? undefined,
|
|
105
|
+
};
|
|
106
|
+
// Merge any upstream client envs from the request header, with upstream values taking precedence.
|
|
107
|
+
const mergedClientEnvs = { ...localClientEnvs, ...reqContext.upstreamClientEnvs };
|
|
108
|
+
// Setting a Stainless API key authenticates requests to the code tool endpoint.
|
|
109
|
+
const res = await fetch(codeModeEndpoint, {
|
|
110
|
+
method: 'POST',
|
|
111
|
+
headers: {
|
|
112
|
+
...(reqContext.stainlessApiKey && { Authorization: reqContext.stainlessApiKey }),
|
|
113
|
+
'Content-Type': 'application/json',
|
|
114
|
+
'x-stainless-mcp-client-envs': JSON.stringify(mergedClientEnvs),
|
|
115
|
+
},
|
|
116
|
+
body: JSON.stringify({
|
|
117
|
+
project_name: 'henry-sdk',
|
|
118
|
+
code,
|
|
119
|
+
intent,
|
|
120
|
+
client_opts: { environment: (readEnv('HENRY_SDK_ENVIRONMENT') || undefined) },
|
|
121
|
+
}),
|
|
122
|
+
});
|
|
123
|
+
if (!res.ok) {
|
|
124
|
+
if (res.status === 404 && !reqContext.stainlessApiKey) {
|
|
125
|
+
throw new Error('Could not access code tool for this project. You may need to provide a Stainless API key via the STAINLESS_API_KEY environment variable, the --stainless-api-key flag, or the x-stainless-api-key HTTP header.');
|
|
126
|
+
}
|
|
127
|
+
throw new Error(`${res.status}: ${res.statusText} error when trying to contact Code Tool server. Details: ${await res.text()}`);
|
|
128
|
+
}
|
|
129
|
+
const { is_error, result, log_lines, err_lines } = (await res.json());
|
|
130
|
+
const hasLogs = log_lines.length > 0 || err_lines.length > 0;
|
|
131
|
+
const output = {
|
|
132
|
+
result,
|
|
133
|
+
...(log_lines.length > 0 && { log_lines }),
|
|
134
|
+
...(err_lines.length > 0 && { err_lines }),
|
|
135
|
+
};
|
|
136
|
+
if (is_error) {
|
|
137
|
+
return asErrorResult(typeof result === 'string' && !hasLogs ? result : JSON.stringify(output, null, 2));
|
|
138
|
+
}
|
|
139
|
+
return asTextContentResult(output);
|
|
140
|
+
};
|
|
141
|
+
const localDenoHandler = async ({ reqContext, args, }) => {
|
|
142
|
+
const fs = await import('node:fs');
|
|
143
|
+
const path = await import('node:path');
|
|
144
|
+
const url = await import('node:url');
|
|
145
|
+
const { newDenoHTTPWorker } = await import('@valtown/deno-http-worker');
|
|
146
|
+
const { getWorkerPath } = await import('./code-tool-paths.cjs');
|
|
147
|
+
const workerPath = getWorkerPath();
|
|
148
|
+
const client = reqContext.client;
|
|
149
|
+
const baseURLHostname = new URL(client.baseURL).hostname;
|
|
150
|
+
const { code } = args;
|
|
151
|
+
let denoPath;
|
|
152
|
+
const packageRoot = path.resolve(path.dirname(workerPath), '..');
|
|
153
|
+
const packageNodeModulesPath = path.resolve(packageRoot, 'node_modules');
|
|
154
|
+
// Check if deno is in PATH
|
|
155
|
+
const { execSync } = await import('node:child_process');
|
|
156
|
+
try {
|
|
157
|
+
execSync('command -v deno', { stdio: 'ignore' });
|
|
158
|
+
denoPath = 'deno';
|
|
159
|
+
}
|
|
160
|
+
catch {
|
|
161
|
+
try {
|
|
162
|
+
// Use deno binary in node_modules if it's found
|
|
163
|
+
const denoNodeModulesPath = path.resolve(packageNodeModulesPath, 'deno', 'bin.cjs');
|
|
164
|
+
await fs.promises.access(denoNodeModulesPath, fs.constants.X_OK);
|
|
165
|
+
denoPath = denoNodeModulesPath;
|
|
166
|
+
}
|
|
167
|
+
catch {
|
|
168
|
+
return asErrorResult('Deno is required for code execution but was not found. ' +
|
|
169
|
+
'Install it from https://deno.land or run: npm install deno');
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
const allowReadPaths = [
|
|
173
|
+
'code-tool-worker.mjs',
|
|
174
|
+
`${workerPath.replace(/([\/\\]node_modules)[\/\\].+$/, '$1')}/`,
|
|
175
|
+
packageRoot,
|
|
176
|
+
];
|
|
177
|
+
// Follow symlinks in node_modules to allow read access to workspace-linked packages
|
|
178
|
+
try {
|
|
179
|
+
const sdkPkgName = '@henrylabs/sdk';
|
|
180
|
+
const sdkDir = path.resolve(packageNodeModulesPath, sdkPkgName);
|
|
181
|
+
const realSdkDir = fs.realpathSync(sdkDir);
|
|
182
|
+
if (realSdkDir !== sdkDir) {
|
|
183
|
+
allowReadPaths.push(realSdkDir);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
catch {
|
|
187
|
+
// Ignore if symlink resolution fails
|
|
188
|
+
}
|
|
189
|
+
const allowRead = allowReadPaths.join(',');
|
|
190
|
+
const worker = await newDenoHTTPWorker(url.pathToFileURL(workerPath), {
|
|
191
|
+
denoExecutable: denoPath,
|
|
192
|
+
runFlags: [
|
|
193
|
+
`--node-modules-dir=manual`,
|
|
194
|
+
`--allow-read=${allowRead}`,
|
|
195
|
+
`--allow-net=${baseURLHostname}`,
|
|
196
|
+
// Allow environment variables because instantiating the client will try to read from them,
|
|
197
|
+
// even though they are not set.
|
|
198
|
+
'--allow-env',
|
|
199
|
+
],
|
|
200
|
+
printOutput: true,
|
|
201
|
+
spawnOptions: {
|
|
202
|
+
cwd: path.dirname(workerPath),
|
|
203
|
+
// Merge any upstream client envs into the Deno subprocess environment,
|
|
204
|
+
// with the upstream env vars taking precedence.
|
|
205
|
+
env: { ...process.env, ...reqContext.upstreamClientEnvs },
|
|
206
|
+
},
|
|
207
|
+
});
|
|
208
|
+
try {
|
|
209
|
+
const resp = await new Promise((resolve, reject) => {
|
|
210
|
+
worker.addEventListener('exit', (exitCode) => {
|
|
211
|
+
reject(new Error(`Worker exited with code ${exitCode}`));
|
|
212
|
+
});
|
|
213
|
+
// Strip null/undefined values so that the worker SDK client can fall back to
|
|
214
|
+
// reading from environment variables (including any upstreamClientEnvs).
|
|
215
|
+
const opts = Object.fromEntries(Object.entries({
|
|
216
|
+
baseURL: client.baseURL,
|
|
217
|
+
apiKey: client.apiKey,
|
|
218
|
+
defaultHeaders: {
|
|
219
|
+
'X-Stainless-MCP': 'true',
|
|
220
|
+
},
|
|
221
|
+
}).filter(([_, v]) => v != null));
|
|
222
|
+
const req = worker.request('http://localhost', {
|
|
223
|
+
headers: {
|
|
224
|
+
'content-type': 'application/json',
|
|
225
|
+
},
|
|
226
|
+
method: 'POST',
|
|
227
|
+
}, (resp) => {
|
|
228
|
+
const body = [];
|
|
229
|
+
resp.on('error', (err) => {
|
|
230
|
+
reject(err);
|
|
231
|
+
});
|
|
232
|
+
resp.on('data', (chunk) => {
|
|
233
|
+
body.push(chunk);
|
|
234
|
+
});
|
|
235
|
+
resp.on('end', () => {
|
|
236
|
+
resolve(new Response(Buffer.concat(body).toString(), {
|
|
237
|
+
status: resp.statusCode ?? 200,
|
|
238
|
+
headers: resp.headers,
|
|
239
|
+
}));
|
|
240
|
+
});
|
|
241
|
+
});
|
|
242
|
+
const body = JSON.stringify({
|
|
243
|
+
opts,
|
|
244
|
+
code,
|
|
245
|
+
});
|
|
246
|
+
req.write(body, (err) => {
|
|
247
|
+
if (err != null) {
|
|
248
|
+
reject(err);
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
req.end();
|
|
252
|
+
});
|
|
253
|
+
if (resp.status === 200) {
|
|
254
|
+
const { result, log_lines, err_lines } = (await resp.json());
|
|
255
|
+
const returnOutput = result == null ? null : ({
|
|
256
|
+
type: 'text',
|
|
257
|
+
text: typeof result === 'string' ? result : JSON.stringify(result),
|
|
258
|
+
});
|
|
259
|
+
const logOutput = log_lines.length === 0 ?
|
|
260
|
+
null
|
|
261
|
+
: {
|
|
262
|
+
type: 'text',
|
|
263
|
+
text: log_lines.join('\n'),
|
|
264
|
+
};
|
|
265
|
+
const errOutput = err_lines.length === 0 ?
|
|
266
|
+
null
|
|
267
|
+
: {
|
|
268
|
+
type: 'text',
|
|
269
|
+
text: 'Error output:\n' + err_lines.join('\n'),
|
|
270
|
+
};
|
|
271
|
+
return {
|
|
272
|
+
content: [returnOutput, logOutput, errOutput].filter((block) => block !== null),
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
else {
|
|
276
|
+
const { result, log_lines, err_lines } = (await resp.json());
|
|
277
|
+
const messageOutput = result == null ? null : ({
|
|
278
|
+
type: 'text',
|
|
279
|
+
text: typeof result === 'string' ? result : JSON.stringify(result),
|
|
280
|
+
});
|
|
281
|
+
const logOutput = log_lines.length === 0 ?
|
|
282
|
+
null
|
|
283
|
+
: {
|
|
284
|
+
type: 'text',
|
|
285
|
+
text: log_lines.join('\n'),
|
|
286
|
+
};
|
|
287
|
+
const errOutput = err_lines.length === 0 ?
|
|
288
|
+
null
|
|
289
|
+
: {
|
|
290
|
+
type: 'text',
|
|
291
|
+
text: 'Error output:\n' + err_lines.join('\n'),
|
|
292
|
+
};
|
|
293
|
+
return {
|
|
294
|
+
content: [messageOutput, logOutput, errOutput].filter((block) => block !== null),
|
|
295
|
+
isError: true,
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
finally {
|
|
300
|
+
worker.terminate();
|
|
301
|
+
}
|
|
302
|
+
};
|
|
108
303
|
//# sourceMappingURL=code-tool.mjs.map
|
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,
|
|
1
|
+
{"version":3,"file":"code-tool.mjs","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAML,aAAa,EACb,mBAAmB,GACpB;OAEM,EAAE,OAAO,EAAE,YAAY,EAAE;OAEzB,EAAE,SAAS,EAAE;AAKpB,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;gGAoBiF,CAAC;AAEjG;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,QAAQ,CAAC,EACvB,cAAc,EACd,iBAAiB,GAIlB;IACC,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;IAEF,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,MAAM,OAAO,GAAG,KAAK,EAAE,EACrB,UAAU,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,CAAC;IACrB,CAAC;AACH,CAAC,CAAC"}
|
package/docs-search-tool.d.mts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Metadata } from "./types.mjs";
|
|
2
1
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import { Metadata, McpRequestContext } from "./types.mjs";
|
|
3
3
|
export declare const metadata: Metadata;
|
|
4
4
|
export declare const tool: Tool;
|
|
5
|
-
export declare const handler: (
|
|
5
|
+
export declare const handler: ({ reqContext, args, }: {
|
|
6
|
+
reqContext: McpRequestContext;
|
|
7
|
+
args: Record<string, unknown> | undefined;
|
|
8
|
+
}) => Promise<import("./types").ToolCallResult>;
|
|
6
9
|
declare const _default: {
|
|
7
10
|
metadata: Metadata;
|
|
8
11
|
tool: {
|
|
@@ -45,7 +48,10 @@ declare const _default: {
|
|
|
45
48
|
}[] | undefined;
|
|
46
49
|
title?: string | undefined;
|
|
47
50
|
};
|
|
48
|
-
handler: (
|
|
51
|
+
handler: ({ reqContext, args, }: {
|
|
52
|
+
reqContext: McpRequestContext;
|
|
53
|
+
args: Record<string, unknown> | undefined;
|
|
54
|
+
}) => Promise<import("./types").ToolCallResult>;
|
|
49
55
|
};
|
|
50
56
|
export default _default;
|
|
51
57
|
//# sourceMappingURL=docs-search-tool.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-search-tool.d.mts","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"OAEO,EAAE,
|
|
1
|
+
{"version":3,"file":"docs-search-tool.d.mts","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,EAAE,QAAQ,EAAE,iBAAiB,EAAuB;AAG3D,eAAO,MAAM,QAAQ,EAAE,QAKtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA2BlB,CAAC;AAKF,eAAO,MAAM,OAAO,GAAU,uBAG3B;IACD,UAAU,EAAE,iBAAiB,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CAC3C,8CA8CA,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAjDC;QACD,UAAU,EAAE,iBAAiB,CAAC;QAC9B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;KAC3C;;AAgDD,wBAA2C"}
|
package/docs-search-tool.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Metadata } from "./types.js";
|
|
2
1
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import { Metadata, McpRequestContext } from "./types.js";
|
|
3
3
|
export declare const metadata: Metadata;
|
|
4
4
|
export declare const tool: Tool;
|
|
5
|
-
export declare const handler: (
|
|
5
|
+
export declare const handler: ({ reqContext, args, }: {
|
|
6
|
+
reqContext: McpRequestContext;
|
|
7
|
+
args: Record<string, unknown> | undefined;
|
|
8
|
+
}) => Promise<import("./types").ToolCallResult>;
|
|
6
9
|
declare const _default: {
|
|
7
10
|
metadata: Metadata;
|
|
8
11
|
tool: {
|
|
@@ -45,7 +48,10 @@ declare const _default: {
|
|
|
45
48
|
}[] | undefined;
|
|
46
49
|
title?: string | undefined;
|
|
47
50
|
};
|
|
48
|
-
handler: (
|
|
51
|
+
handler: ({ reqContext, args, }: {
|
|
52
|
+
reqContext: McpRequestContext;
|
|
53
|
+
args: Record<string, unknown> | undefined;
|
|
54
|
+
}) => Promise<import("./types").ToolCallResult>;
|
|
49
55
|
};
|
|
50
56
|
export default _default;
|
|
51
57
|
//# sourceMappingURL=docs-search-tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-search-tool.d.ts","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"OAEO,EAAE,
|
|
1
|
+
{"version":3,"file":"docs-search-tool.d.ts","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,EAAE,QAAQ,EAAE,iBAAiB,EAAuB;AAG3D,eAAO,MAAM,QAAQ,EAAE,QAKtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA2BlB,CAAC;AAKF,eAAO,MAAM,OAAO,GAAU,uBAG3B;IACD,UAAU,EAAE,iBAAiB,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CAC3C,8CA8CA,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAjDC;QACD,UAAU,EAAE,iBAAiB,CAAC;QAC9B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;KAC3C;;AAgDD,wBAA2C"}
|
package/docs-search-tool.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
5
|
const types_1 = require("./types.js");
|
|
6
|
+
const logger_1 = require("./logger.js");
|
|
6
7
|
exports.metadata = {
|
|
7
8
|
resource: 'all',
|
|
8
9
|
operation: 'read',
|
|
@@ -11,7 +12,7 @@ exports.metadata = {
|
|
|
11
12
|
};
|
|
12
13
|
exports.tool = {
|
|
13
14
|
name: 'search_docs',
|
|
14
|
-
description: 'Search
|
|
15
|
+
description: 'Search SDK documentation to find methods, parameters, and usage examples for interacting with the API. Use this before writing code when you need to discover the right approach.',
|
|
15
16
|
inputSchema: {
|
|
16
17
|
type: 'object',
|
|
17
18
|
properties: {
|
|
@@ -37,14 +38,36 @@ exports.tool = {
|
|
|
37
38
|
},
|
|
38
39
|
};
|
|
39
40
|
const docsSearchURL = process.env['DOCS_SEARCH_URL'] || 'https://api.stainless.com/api/projects/henry-sdk/docs/search';
|
|
40
|
-
const handler = async (
|
|
41
|
+
const handler = async ({ reqContext, args, }) => {
|
|
41
42
|
const body = args;
|
|
42
43
|
const query = new URLSearchParams(body).toString();
|
|
43
|
-
const
|
|
44
|
+
const startTime = Date.now();
|
|
45
|
+
const result = await fetch(`${docsSearchURL}?${query}`, {
|
|
46
|
+
headers: {
|
|
47
|
+
...(reqContext.stainlessApiKey && { Authorization: reqContext.stainlessApiKey }),
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
const logger = (0, logger_1.getLogger)();
|
|
44
51
|
if (!result.ok) {
|
|
45
|
-
|
|
52
|
+
const errorText = await result.text();
|
|
53
|
+
logger.warn({
|
|
54
|
+
durationMs: Date.now() - startTime,
|
|
55
|
+
query: body.query,
|
|
56
|
+
status: result.status,
|
|
57
|
+
statusText: result.statusText,
|
|
58
|
+
errorText,
|
|
59
|
+
}, 'Got error response from docs search tool');
|
|
60
|
+
if (result.status === 404 && !reqContext.stainlessApiKey) {
|
|
61
|
+
throw new Error('Could not find docs for this project. You may need to provide a Stainless API key via the STAINLESS_API_KEY environment variable, the --stainless-api-key flag, or the x-stainless-api-key HTTP header.');
|
|
62
|
+
}
|
|
63
|
+
throw new Error(`${result.status}: ${result.statusText} when using doc search tool. Details: ${errorText}`);
|
|
46
64
|
}
|
|
47
|
-
|
|
65
|
+
const resultBody = await result.json();
|
|
66
|
+
logger.info({
|
|
67
|
+
durationMs: Date.now() - startTime,
|
|
68
|
+
query: body.query,
|
|
69
|
+
}, 'Got docs search result');
|
|
70
|
+
return (0, types_1.asTextContentResult)(resultBody);
|
|
48
71
|
};
|
|
49
72
|
exports.handler = handler;
|
|
50
73
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
package/docs-search-tool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-search-tool.js","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;
|
|
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AAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
package/docs-search-tool.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { asTextContentResult } from "./types.mjs";
|
|
3
|
+
import { getLogger } from "./logger.mjs";
|
|
3
4
|
export const metadata = {
|
|
4
5
|
resource: 'all',
|
|
5
6
|
operation: 'read',
|
|
@@ -8,7 +9,7 @@ export const metadata = {
|
|
|
8
9
|
};
|
|
9
10
|
export const tool = {
|
|
10
11
|
name: 'search_docs',
|
|
11
|
-
description: 'Search
|
|
12
|
+
description: 'Search SDK documentation to find methods, parameters, and usage examples for interacting with the API. Use this before writing code when you need to discover the right approach.',
|
|
12
13
|
inputSchema: {
|
|
13
14
|
type: 'object',
|
|
14
15
|
properties: {
|
|
@@ -34,14 +35,36 @@ export const tool = {
|
|
|
34
35
|
},
|
|
35
36
|
};
|
|
36
37
|
const docsSearchURL = process.env['DOCS_SEARCH_URL'] || 'https://api.stainless.com/api/projects/henry-sdk/docs/search';
|
|
37
|
-
export const handler = async (
|
|
38
|
+
export const handler = async ({ reqContext, args, }) => {
|
|
38
39
|
const body = args;
|
|
39
40
|
const query = new URLSearchParams(body).toString();
|
|
40
|
-
const
|
|
41
|
+
const startTime = Date.now();
|
|
42
|
+
const result = await fetch(`${docsSearchURL}?${query}`, {
|
|
43
|
+
headers: {
|
|
44
|
+
...(reqContext.stainlessApiKey && { Authorization: reqContext.stainlessApiKey }),
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
const logger = getLogger();
|
|
41
48
|
if (!result.ok) {
|
|
42
|
-
|
|
49
|
+
const errorText = await result.text();
|
|
50
|
+
logger.warn({
|
|
51
|
+
durationMs: Date.now() - startTime,
|
|
52
|
+
query: body.query,
|
|
53
|
+
status: result.status,
|
|
54
|
+
statusText: result.statusText,
|
|
55
|
+
errorText,
|
|
56
|
+
}, 'Got error response from docs search tool');
|
|
57
|
+
if (result.status === 404 && !reqContext.stainlessApiKey) {
|
|
58
|
+
throw new Error('Could not find docs for this project. You may need to provide a Stainless API key via the STAINLESS_API_KEY environment variable, the --stainless-api-key flag, or the x-stainless-api-key HTTP header.');
|
|
59
|
+
}
|
|
60
|
+
throw new Error(`${result.status}: ${result.statusText} when using doc search tool. Details: ${errorText}`);
|
|
43
61
|
}
|
|
44
|
-
|
|
62
|
+
const resultBody = await result.json();
|
|
63
|
+
logger.info({
|
|
64
|
+
durationMs: Date.now() - startTime,
|
|
65
|
+
query: body.query,
|
|
66
|
+
}, 'Got docs search result');
|
|
67
|
+
return asTextContentResult(resultBody);
|
|
45
68
|
};
|
|
46
69
|
export default { metadata, tool, handler };
|
|
47
70
|
//# sourceMappingURL=docs-search-tool.mjs.map
|
package/docs-search-tool.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-search-tool.mjs","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"docs-search-tool.mjs","sourceRoot":"","sources":["src/docs-search-tool.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAA+B,mBAAmB,EAAE;OACpD,EAAE,SAAS,EAAE;AAEpB,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,EACT,mLAAmL;IACrL,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0BAA0B;aACxC;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WA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AM,EAAE,MAAM,CAAC,MAAM;YACrB,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,SAAS;SACV,EACD,0CAA0C,CAC3C,CAAC;QAEF,IAAI,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;YACzD,MAAM,IAAI,KAAK,CACb,yMAAyM,CAC1M,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,KAAK,CACb,GAAG,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC,UAAU,yCAAyC,SAAS,EAAE,CAC3F,CAAC;IACJ,CAAC;IAED,MAAM,UAAU,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;IACvC,MAAM,CAAC,IAAI,CACT;QACE,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS;QAClC,KAAK,EAAE,IAAI,CAAC,KAAK;KAClB,EACD,wBAAwB,CACzB,CAAC;IACF,OAAO,mBAAmB,CAAC,UAAU,CAAC,CAAC;AACzC,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
package/http.d.mts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
+
import { ClientOptions } from '@henrylabs/sdk';
|
|
1
2
|
import express from 'express';
|
|
2
3
|
import { McpOptions } from "./options.mjs";
|
|
3
|
-
|
|
4
|
-
export declare const streamableHTTPApp: ({ clientOptions, mcpOptions, debug, }: {
|
|
4
|
+
export declare const streamableHTTPApp: ({ clientOptions, mcpOptions, }: {
|
|
5
5
|
clientOptions?: ClientOptions;
|
|
6
6
|
mcpOptions: McpOptions;
|
|
7
|
-
debug: boolean;
|
|
8
7
|
}) => express.Express;
|
|
9
|
-
export declare const launchStreamableHTTPServer: (
|
|
8
|
+
export declare const launchStreamableHTTPServer: ({ mcpOptions, port, }: {
|
|
10
9
|
mcpOptions: McpOptions;
|
|
11
|
-
debug: boolean;
|
|
12
10
|
port: number | string | undefined;
|
|
13
11
|
}) => Promise<void>;
|
|
14
12
|
//# sourceMappingURL=http.d.mts.map
|
package/http.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.mts","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":"OAIO,OAAO,MAAM,SAAS;
|
|
1
|
+
{"version":3,"file":"http.d.mts","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":"OAIO,EAAE,aAAa,EAAE,MAAM,gBAAgB;OACvC,OAAO,MAAM,SAAS;OAKtB,EAAE,UAAU,EAAE;AAoHrB,eAAO,MAAM,iBAAiB,GAAI,gCAG/B;IACD,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,EAAE,UAAU,CAAC;CACxB,KAAG,OAAO,CAAC,OA8CX,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAU,uBAG9C;IACD,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACnC,kBAcA,CAAC"}
|
package/http.d.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
+
import { ClientOptions } from '@henrylabs/sdk';
|
|
1
2
|
import express from 'express';
|
|
2
3
|
import { McpOptions } from "./options.js";
|
|
3
|
-
|
|
4
|
-
export declare const streamableHTTPApp: ({ clientOptions, mcpOptions, debug, }: {
|
|
4
|
+
export declare const streamableHTTPApp: ({ clientOptions, mcpOptions, }: {
|
|
5
5
|
clientOptions?: ClientOptions;
|
|
6
6
|
mcpOptions: McpOptions;
|
|
7
|
-
debug: boolean;
|
|
8
7
|
}) => express.Express;
|
|
9
|
-
export declare const launchStreamableHTTPServer: (
|
|
8
|
+
export declare const launchStreamableHTTPServer: ({ mcpOptions, port, }: {
|
|
10
9
|
mcpOptions: McpOptions;
|
|
11
|
-
debug: boolean;
|
|
12
10
|
port: number | string | undefined;
|
|
13
11
|
}) => Promise<void>;
|
|
14
12
|
//# sourceMappingURL=http.d.ts.map
|
package/http.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":"OAIO,OAAO,MAAM,SAAS;
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["src/http.ts"],"names":[],"mappings":"OAIO,EAAE,aAAa,EAAE,MAAM,gBAAgB;OACvC,OAAO,MAAM,SAAS;OAKtB,EAAE,UAAU,EAAE;AAoHrB,eAAO,MAAM,iBAAiB,GAAI,gCAG/B;IACD,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,EAAE,UAAU,CAAC;CACxB,KAAG,OAAO,CAAC,OA8CX,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAU,uBAG9C;IACD,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACnC,kBAcA,CAAC"}
|