@henrylabs/mcp 1.0.0 → 1.2.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/README.md +1 -3
- package/code-tool-worker.d.mts.map +1 -1
- package/code-tool-worker.d.ts.map +1 -1
- package/code-tool-worker.js +57 -27
- package/code-tool-worker.js.map +1 -1
- package/code-tool-worker.mjs +24 -27
- package/code-tool-worker.mjs.map +1 -1
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +13 -10
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +13 -10
- package/code-tool.mjs.map +1 -1
- package/docs-search-tool.d.mts +2 -0
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts +2 -0
- package/docs-search-tool.d.ts.map +1 -1
- package/docs-search-tool.js +32 -2
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +31 -2
- package/docs-search-tool.mjs.map +1 -1
- package/http.d.mts.map +1 -1
- package/http.d.ts.map +1 -1
- package/http.js +24 -1
- package/http.js.map +1 -1
- package/http.mjs +24 -1
- package/http.mjs.map +1 -1
- package/instructions.d.mts +4 -1
- package/instructions.d.mts.map +1 -1
- package/instructions.d.ts +4 -1
- package/instructions.d.ts.map +1 -1
- package/instructions.js +24 -5
- package/instructions.js.map +1 -1
- package/instructions.mjs +21 -5
- package/instructions.mjs.map +1 -1
- package/local-docs-search.d.mts +28 -0
- package/local-docs-search.d.mts.map +1 -0
- package/local-docs-search.d.ts +28 -0
- package/local-docs-search.d.ts.map +1 -0
- package/local-docs-search.js +752 -0
- package/local-docs-search.js.map +1 -0
- package/local-docs-search.mjs +712 -0
- package/local-docs-search.mjs.map +1 -0
- package/methods.d.mts.map +1 -1
- package/methods.d.ts.map +1 -1
- package/methods.js +51 -117
- package/methods.js.map +1 -1
- package/methods.mjs +51 -117
- package/methods.mjs.map +1 -1
- package/options.d.mts +3 -0
- package/options.d.mts.map +1 -1
- package/options.d.ts +3 -0
- package/options.d.ts.map +1 -1
- package/options.js +19 -0
- package/options.js.map +1 -1
- package/options.mjs +19 -0
- package/options.mjs.map +1 -1
- package/package.json +14 -3
- package/server.d.mts +9 -1
- package/server.d.mts.map +1 -1
- package/server.d.ts +9 -1
- package/server.d.ts.map +1 -1
- package/server.js +12 -5
- package/server.js.map +1 -1
- package/server.mjs +12 -5
- package/server.mjs.map +1 -1
- package/src/code-tool-worker.ts +24 -27
- package/src/code-tool.ts +16 -16
- package/src/docs-search-tool.ts +46 -8
- package/src/http.ts +27 -1
- package/src/instructions.ts +28 -5
- package/src/local-docs-search.ts +856 -0
- package/src/methods.ts +51 -117
- package/src/options.ts +24 -0
- package/src/server.ts +21 -5
- package/src/stdio.ts +4 -1
- package/src/types.ts +2 -0
- package/stdio.d.mts.map +1 -1
- package/stdio.d.ts.map +1 -1
- package/stdio.js +4 -1
- package/stdio.js.map +1 -1
- package/stdio.mjs +4 -1
- package/stdio.mjs.map +1 -1
- package/types.d.mts +5 -0
- package/types.d.mts.map +1 -1
- package/types.d.ts +5 -0
- package/types.d.ts.map +1 -1
- package/types.js.map +1 -1
- package/types.mjs.map +1 -1
package/src/methods.ts
CHANGED
|
@@ -11,166 +11,100 @@ export type SdkMethod = {
|
|
|
11
11
|
|
|
12
12
|
export const sdkMethods: SdkMethod[] = [
|
|
13
13
|
{
|
|
14
|
-
clientCallName: 'client.products.
|
|
15
|
-
fullyQualifiedName: 'products.
|
|
14
|
+
clientCallName: 'client.products.details',
|
|
15
|
+
fullyQualifiedName: 'products.details',
|
|
16
16
|
httpMethod: 'post',
|
|
17
|
-
httpPath: '/
|
|
17
|
+
httpPath: '/product/details',
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
clientCallName: 'client.products.
|
|
21
|
-
fullyQualifiedName: 'products.
|
|
20
|
+
clientCallName: 'client.products.pollDetails',
|
|
21
|
+
fullyQualifiedName: 'products.pollDetails',
|
|
22
22
|
httpMethod: 'get',
|
|
23
|
-
httpPath: '/
|
|
23
|
+
httpPath: '/product/details/status',
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
clientCallName: 'client.products.
|
|
27
|
-
fullyQualifiedName: 'products.
|
|
28
|
-
httpMethod: 'post',
|
|
29
|
-
httpPath: '/products/search',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
clientCallName: 'client.products.variantCheck.create',
|
|
33
|
-
fullyQualifiedName: 'products.variantCheck.create',
|
|
34
|
-
httpMethod: 'post',
|
|
35
|
-
httpPath: '/products/variant-check',
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
clientCallName: 'client.products.variantCheck.retrieveStatus',
|
|
39
|
-
fullyQualifiedName: 'products.variantCheck.retrieveStatus',
|
|
26
|
+
clientCallName: 'client.products.pollSearch',
|
|
27
|
+
fullyQualifiedName: 'products.pollSearch',
|
|
40
28
|
httpMethod: 'get',
|
|
41
|
-
httpPath: '/
|
|
29
|
+
httpPath: '/product/search/status',
|
|
42
30
|
},
|
|
43
31
|
{
|
|
44
|
-
clientCallName: 'client.products.
|
|
45
|
-
fullyQualifiedName: 'products.
|
|
32
|
+
clientCallName: 'client.products.search',
|
|
33
|
+
fullyQualifiedName: 'products.search',
|
|
46
34
|
httpMethod: 'post',
|
|
47
|
-
httpPath: '/
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
clientCallName: 'client.products.enrich.retrieveStatus',
|
|
51
|
-
fullyQualifiedName: 'products.enrich.retrieveStatus',
|
|
52
|
-
httpMethod: 'get',
|
|
53
|
-
httpPath: '/products/enrich/{id}',
|
|
35
|
+
httpPath: '/product/search',
|
|
54
36
|
},
|
|
55
37
|
{
|
|
56
|
-
clientCallName: 'client.cart.
|
|
57
|
-
fullyQualifiedName: 'cart.
|
|
38
|
+
clientCallName: 'client.cart.create',
|
|
39
|
+
fullyQualifiedName: 'cart.create',
|
|
58
40
|
httpMethod: 'post',
|
|
59
|
-
httpPath: '/cart
|
|
41
|
+
httpPath: '/cart',
|
|
60
42
|
},
|
|
61
43
|
{
|
|
62
|
-
clientCallName: 'client.cart.
|
|
63
|
-
fullyQualifiedName: 'cart.
|
|
44
|
+
clientCallName: 'client.cart.list',
|
|
45
|
+
fullyQualifiedName: 'cart.list',
|
|
64
46
|
httpMethod: 'get',
|
|
65
|
-
httpPath: '/cart
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
clientCallName: 'client.cart.items.add',
|
|
69
|
-
fullyQualifiedName: 'cart.items.add',
|
|
70
|
-
httpMethod: 'post',
|
|
71
|
-
httpPath: '/cart/items',
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
clientCallName: 'client.cart.items.clear',
|
|
75
|
-
fullyQualifiedName: 'cart.items.clear',
|
|
76
|
-
httpMethod: 'delete',
|
|
77
|
-
httpPath: '/cart/items',
|
|
47
|
+
httpPath: '/cart',
|
|
78
48
|
},
|
|
79
49
|
{
|
|
80
|
-
clientCallName: 'client.cart.
|
|
81
|
-
fullyQualifiedName: 'cart.
|
|
50
|
+
clientCallName: 'client.cart.delete',
|
|
51
|
+
fullyQualifiedName: 'cart.delete',
|
|
82
52
|
httpMethod: 'delete',
|
|
83
|
-
httpPath: '/cart/
|
|
53
|
+
httpPath: '/cart/{cartId}',
|
|
84
54
|
},
|
|
85
55
|
{
|
|
86
|
-
clientCallName: 'client.
|
|
87
|
-
fullyQualifiedName: '
|
|
88
|
-
httpMethod: '
|
|
89
|
-
httpPath: '/
|
|
56
|
+
clientCallName: 'client.cart.item.update',
|
|
57
|
+
fullyQualifiedName: 'cart.item.update',
|
|
58
|
+
httpMethod: 'put',
|
|
59
|
+
httpPath: '/cart/{cartId}/item',
|
|
90
60
|
},
|
|
91
61
|
{
|
|
92
|
-
clientCallName: 'client.
|
|
93
|
-
fullyQualifiedName: '
|
|
94
|
-
httpMethod: 'get',
|
|
95
|
-
httpPath: '/orders/{orderId}',
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
clientCallName: 'client.wallet.createCardCollection',
|
|
99
|
-
fullyQualifiedName: 'wallet.createCardCollection',
|
|
100
|
-
httpMethod: 'post',
|
|
101
|
-
httpPath: '/wallet/card-collect',
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
clientCallName: 'client.merchants.checkStatus',
|
|
105
|
-
fullyQualifiedName: 'merchants.checkStatus',
|
|
106
|
-
httpMethod: 'get',
|
|
107
|
-
httpPath: '/merchants/{merchantDomain}/status',
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
clientCallName: 'client.merchants.listSupported',
|
|
111
|
-
fullyQualifiedName: 'merchants.listSupported',
|
|
112
|
-
httpMethod: 'get',
|
|
113
|
-
httpPath: '/merchants/list',
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
clientCallName: 'client.checkout.createSingleProductToken',
|
|
117
|
-
fullyQualifiedName: 'checkout.createSingleProductToken',
|
|
62
|
+
clientCallName: 'client.cart.item.add',
|
|
63
|
+
fullyQualifiedName: 'cart.item.add',
|
|
118
64
|
httpMethod: 'post',
|
|
119
|
-
httpPath: '/
|
|
65
|
+
httpPath: '/cart/{cartId}/item',
|
|
120
66
|
},
|
|
121
67
|
{
|
|
122
|
-
clientCallName: 'client.
|
|
123
|
-
fullyQualifiedName: '
|
|
124
|
-
httpMethod: '
|
|
125
|
-
httpPath: '/
|
|
68
|
+
clientCallName: 'client.cart.item.remove',
|
|
69
|
+
fullyQualifiedName: 'cart.item.remove',
|
|
70
|
+
httpMethod: 'delete',
|
|
71
|
+
httpPath: '/cart/{cartId}/item',
|
|
126
72
|
},
|
|
127
73
|
{
|
|
128
|
-
clientCallName: 'client.checkout.
|
|
129
|
-
fullyQualifiedName: 'checkout.
|
|
74
|
+
clientCallName: 'client.cart.checkout.details',
|
|
75
|
+
fullyQualifiedName: 'cart.checkout.details',
|
|
130
76
|
httpMethod: 'post',
|
|
131
|
-
httpPath: '/
|
|
77
|
+
httpPath: '/cart/{cartId}/details',
|
|
132
78
|
},
|
|
133
79
|
{
|
|
134
|
-
clientCallName: 'client.checkout.
|
|
135
|
-
fullyQualifiedName: 'checkout.
|
|
80
|
+
clientCallName: 'client.cart.checkout.pollDetails',
|
|
81
|
+
fullyQualifiedName: 'cart.checkout.pollDetails',
|
|
136
82
|
httpMethod: 'get',
|
|
137
|
-
httpPath: '/checkout/
|
|
83
|
+
httpPath: '/cart/checkout/status',
|
|
138
84
|
},
|
|
139
85
|
{
|
|
140
|
-
clientCallName: 'client.checkout.
|
|
141
|
-
fullyQualifiedName: 'checkout.
|
|
86
|
+
clientCallName: 'client.cart.checkout.pollPurchase',
|
|
87
|
+
fullyQualifiedName: 'cart.checkout.pollPurchase',
|
|
142
88
|
httpMethod: 'get',
|
|
143
|
-
httpPath: '/
|
|
89
|
+
httpPath: '/cart/purchase/status',
|
|
144
90
|
},
|
|
145
91
|
{
|
|
146
|
-
clientCallName: 'client.checkout.
|
|
147
|
-
fullyQualifiedName: 'checkout.
|
|
92
|
+
clientCallName: 'client.cart.checkout.purchase',
|
|
93
|
+
fullyQualifiedName: 'cart.checkout.purchase',
|
|
148
94
|
httpMethod: 'post',
|
|
149
|
-
httpPath: '/
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
clientCallName: 'client.checkout.guest.addresses.update',
|
|
153
|
-
fullyQualifiedName: 'checkout.guest.addresses.update',
|
|
154
|
-
httpMethod: 'patch',
|
|
155
|
-
httpPath: '/checkout/guest/addresses/{id}',
|
|
95
|
+
httpPath: '/cart/{cartId}/purchase',
|
|
156
96
|
},
|
|
157
97
|
{
|
|
158
|
-
clientCallName: 'client.
|
|
159
|
-
fullyQualifiedName: '
|
|
98
|
+
clientCallName: 'client.orders.list',
|
|
99
|
+
fullyQualifiedName: 'orders.list',
|
|
160
100
|
httpMethod: 'get',
|
|
161
|
-
httpPath: '/
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
clientCallName: 'client.checkout.guest.addresses.delete',
|
|
165
|
-
fullyQualifiedName: 'checkout.guest.addresses.delete',
|
|
166
|
-
httpMethod: 'delete',
|
|
167
|
-
httpPath: '/checkout/guest/addresses/{id}',
|
|
101
|
+
httpPath: '/orders',
|
|
168
102
|
},
|
|
169
103
|
{
|
|
170
|
-
clientCallName: 'client.
|
|
171
|
-
fullyQualifiedName: '
|
|
172
|
-
httpMethod: '
|
|
173
|
-
httpPath: '/
|
|
104
|
+
clientCallName: 'client.merchants.list',
|
|
105
|
+
fullyQualifiedName: 'merchants.list',
|
|
106
|
+
httpMethod: 'get',
|
|
107
|
+
httpPath: '/merchants',
|
|
174
108
|
},
|
|
175
109
|
];
|
|
176
110
|
|
package/src/options.ts
CHANGED
|
@@ -18,10 +18,13 @@ export type McpOptions = {
|
|
|
18
18
|
includeCodeTool?: boolean | undefined;
|
|
19
19
|
includeDocsTools?: boolean | undefined;
|
|
20
20
|
stainlessApiKey?: string | undefined;
|
|
21
|
+
docsSearchMode?: 'stainless-api' | 'local' | undefined;
|
|
22
|
+
docsDir?: string | undefined;
|
|
21
23
|
codeAllowHttpGets?: boolean | undefined;
|
|
22
24
|
codeAllowedMethods?: string[] | undefined;
|
|
23
25
|
codeBlockedMethods?: string[] | undefined;
|
|
24
26
|
codeExecutionMode: McpCodeExecutionMode;
|
|
27
|
+
customInstructionsPath?: string | undefined;
|
|
25
28
|
};
|
|
26
29
|
|
|
27
30
|
export type McpCodeExecutionMode = 'stainless-sandbox' | 'local';
|
|
@@ -52,7 +55,23 @@ export function parseCLIOptions(): CLIOptions {
|
|
|
52
55
|
description:
|
|
53
56
|
"Where to run code execution in code tool; 'stainless-sandbox' will execute code in Stainless-hosted sandboxes whereas 'local' will execute code locally on the MCP server machine.",
|
|
54
57
|
})
|
|
58
|
+
.option('custom-instructions-path', {
|
|
59
|
+
type: 'string',
|
|
60
|
+
description: 'Path to custom instructions for the MCP server',
|
|
61
|
+
})
|
|
55
62
|
.option('debug', { type: 'boolean', description: 'Enable debug logging' })
|
|
63
|
+
.option('docs-dir', {
|
|
64
|
+
type: 'string',
|
|
65
|
+
description:
|
|
66
|
+
'Path to a directory of local documentation files (markdown/JSON) to include in local docs search.',
|
|
67
|
+
})
|
|
68
|
+
.option('docs-search-mode', {
|
|
69
|
+
type: 'string',
|
|
70
|
+
choices: ['stainless-api', 'local'],
|
|
71
|
+
default: 'stainless-api',
|
|
72
|
+
description:
|
|
73
|
+
"Where to search documentation; 'stainless-api' uses the Stainless-hosted search API whereas 'local' uses an in-memory search index built from embedded SDK method data and optional local docs files.",
|
|
74
|
+
})
|
|
56
75
|
.option('log-format', {
|
|
57
76
|
type: 'string',
|
|
58
77
|
choices: ['json', 'pretty'],
|
|
@@ -113,10 +132,13 @@ export function parseCLIOptions(): CLIOptions {
|
|
|
113
132
|
...(includeDocsTools !== undefined && { includeDocsTools }),
|
|
114
133
|
debug: !!argv.debug,
|
|
115
134
|
stainlessApiKey: argv.stainlessApiKey,
|
|
135
|
+
docsSearchMode: argv.docsSearchMode as 'stainless-api' | 'local' | undefined,
|
|
136
|
+
docsDir: argv.docsDir,
|
|
116
137
|
codeAllowHttpGets: argv.codeAllowHttpGets,
|
|
117
138
|
codeAllowedMethods: argv.codeAllowedMethods,
|
|
118
139
|
codeBlockedMethods: argv.codeBlockedMethods,
|
|
119
140
|
codeExecutionMode: argv.codeExecutionMode as McpCodeExecutionMode,
|
|
141
|
+
customInstructionsPath: argv.customInstructionsPath,
|
|
120
142
|
transport,
|
|
121
143
|
logFormat,
|
|
122
144
|
port: argv.port,
|
|
@@ -157,5 +179,7 @@ export function parseQueryOptions(defaultOptions: McpOptions, query: unknown): M
|
|
|
157
179
|
...(codeTool !== undefined && { includeCodeTool: codeTool }),
|
|
158
180
|
...(docsTools !== undefined && { includeDocsTools: docsTools }),
|
|
159
181
|
codeExecutionMode: defaultOptions.codeExecutionMode,
|
|
182
|
+
docsSearchMode: defaultOptions.docsSearchMode,
|
|
183
|
+
docsDir: defaultOptions.docsDir,
|
|
160
184
|
};
|
|
161
185
|
}
|
package/src/server.ts
CHANGED
|
@@ -11,20 +11,27 @@ import { ClientOptions } from '@henrylabs/sdk';
|
|
|
11
11
|
import HenrySDK from '@henrylabs/sdk';
|
|
12
12
|
import { codeTool } from './code-tool';
|
|
13
13
|
import docsSearchTool from './docs-search-tool';
|
|
14
|
+
import { setLocalSearch } from './docs-search-tool';
|
|
15
|
+
import { LocalDocsSearch } from './local-docs-search';
|
|
14
16
|
import { getInstructions } from './instructions';
|
|
15
17
|
import { McpOptions } from './options';
|
|
16
18
|
import { blockedMethodsForCodeTool } from './methods';
|
|
17
19
|
import { HandlerFunction, McpRequestContext, ToolCallResult, McpTool } from './types';
|
|
18
|
-
import { readEnv } from './util';
|
|
19
20
|
|
|
20
|
-
export const newMcpServer = async (
|
|
21
|
+
export const newMcpServer = async ({
|
|
22
|
+
stainlessApiKey,
|
|
23
|
+
customInstructionsPath,
|
|
24
|
+
}: {
|
|
25
|
+
stainlessApiKey?: string | undefined;
|
|
26
|
+
customInstructionsPath?: string | undefined;
|
|
27
|
+
}) =>
|
|
21
28
|
new McpServer(
|
|
22
29
|
{
|
|
23
30
|
name: 'henrylabs_sdk_api',
|
|
24
|
-
version: '1.
|
|
31
|
+
version: '1.2.0',
|
|
25
32
|
},
|
|
26
33
|
{
|
|
27
|
-
instructions: await getInstructions(stainlessApiKey),
|
|
34
|
+
instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),
|
|
28
35
|
capabilities: { tools: {}, logging: {} },
|
|
29
36
|
},
|
|
30
37
|
);
|
|
@@ -39,6 +46,8 @@ export async function initMcpServer(params: {
|
|
|
39
46
|
mcpOptions?: McpOptions;
|
|
40
47
|
stainlessApiKey?: string | undefined;
|
|
41
48
|
upstreamClientEnvs?: Record<string, string> | undefined;
|
|
49
|
+
mcpSessionId?: string | undefined;
|
|
50
|
+
mcpClientInfo?: { name: string; version: string } | undefined;
|
|
42
51
|
}) {
|
|
43
52
|
const server = params.server instanceof McpServer ? params.server.server : params.server;
|
|
44
53
|
|
|
@@ -57,6 +66,12 @@ export async function initMcpServer(params: {
|
|
|
57
66
|
error: logAtLevel('error'),
|
|
58
67
|
};
|
|
59
68
|
|
|
69
|
+
if (params.mcpOptions?.docsSearchMode === 'local') {
|
|
70
|
+
const docsDir = params.mcpOptions?.docsDir;
|
|
71
|
+
const localSearch = await LocalDocsSearch.create(docsDir ? { docsDir } : undefined);
|
|
72
|
+
setLocalSearch(localSearch);
|
|
73
|
+
}
|
|
74
|
+
|
|
60
75
|
let _client: HenrySDK | undefined;
|
|
61
76
|
let _clientError: Error | undefined;
|
|
62
77
|
let _logLevel: 'debug' | 'info' | 'warn' | 'error' | 'off' | undefined;
|
|
@@ -66,7 +81,6 @@ export async function initMcpServer(params: {
|
|
|
66
81
|
if (!_client) {
|
|
67
82
|
try {
|
|
68
83
|
_client = new HenrySDK({
|
|
69
|
-
...{ environment: (readEnv('HENRY_SDK_ENVIRONMENT') || undefined) as any },
|
|
70
84
|
logger,
|
|
71
85
|
...params.clientOptions,
|
|
72
86
|
defaultHeaders: {
|
|
@@ -122,6 +136,8 @@ export async function initMcpServer(params: {
|
|
|
122
136
|
client,
|
|
123
137
|
stainlessApiKey: params.stainlessApiKey ?? params.mcpOptions?.stainlessApiKey,
|
|
124
138
|
upstreamClientEnvs: params.upstreamClientEnvs,
|
|
139
|
+
mcpSessionId: params.mcpSessionId,
|
|
140
|
+
mcpClientInfo: params.mcpClientInfo,
|
|
125
141
|
},
|
|
126
142
|
args,
|
|
127
143
|
});
|
package/src/stdio.ts
CHANGED
|
@@ -4,7 +4,10 @@ import { initMcpServer, newMcpServer } from './server';
|
|
|
4
4
|
import { getLogger } from './logger';
|
|
5
5
|
|
|
6
6
|
export const launchStdioServer = async (mcpOptions: McpOptions) => {
|
|
7
|
-
const server = await newMcpServer(
|
|
7
|
+
const server = await newMcpServer({
|
|
8
|
+
stainlessApiKey: mcpOptions.stainlessApiKey,
|
|
9
|
+
customInstructionsPath: mcpOptions.customInstructionsPath,
|
|
10
|
+
});
|
|
8
11
|
|
|
9
12
|
await initMcpServer({ server, mcpOptions, stainlessApiKey: mcpOptions.stainlessApiKey });
|
|
10
13
|
|
package/src/types.ts
CHANGED
|
@@ -46,6 +46,8 @@ export type McpRequestContext = {
|
|
|
46
46
|
client: HenrySDK;
|
|
47
47
|
stainlessApiKey?: string | undefined;
|
|
48
48
|
upstreamClientEnvs?: Record<string, string> | undefined;
|
|
49
|
+
mcpSessionId?: string | undefined;
|
|
50
|
+
mcpClientInfo?: { name: string; version: string } | undefined;
|
|
49
51
|
};
|
|
50
52
|
|
|
51
53
|
export type HandlerFunction = ({
|
package/stdio.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stdio.d.mts","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OACO,EAAE,UAAU,EAAE;AAIrB,eAAO,MAAM,iBAAiB,GAAU,YAAY,UAAU,
|
|
1
|
+
{"version":3,"file":"stdio.d.mts","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OACO,EAAE,UAAU,EAAE;AAIrB,eAAO,MAAM,iBAAiB,GAAU,YAAY,UAAU,kBAW7D,CAAC"}
|
package/stdio.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OACO,EAAE,UAAU,EAAE;AAIrB,eAAO,MAAM,iBAAiB,GAAU,YAAY,UAAU,
|
|
1
|
+
{"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OACO,EAAE,UAAU,EAAE;AAIrB,eAAO,MAAM,iBAAiB,GAAU,YAAY,UAAU,kBAW7D,CAAC"}
|
package/stdio.js
CHANGED
|
@@ -5,7 +5,10 @@ const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
|
|
|
5
5
|
const server_1 = require("./server.js");
|
|
6
6
|
const logger_1 = require("./logger.js");
|
|
7
7
|
const launchStdioServer = async (mcpOptions) => {
|
|
8
|
-
const server = await (0, server_1.newMcpServer)(
|
|
8
|
+
const server = await (0, server_1.newMcpServer)({
|
|
9
|
+
stainlessApiKey: mcpOptions.stainlessApiKey,
|
|
10
|
+
customInstructionsPath: mcpOptions.customInstructionsPath,
|
|
11
|
+
});
|
|
9
12
|
await (0, server_1.initMcpServer)({ server, mcpOptions, stainlessApiKey: mcpOptions.stainlessApiKey });
|
|
10
13
|
const transport = new stdio_js_1.StdioServerTransport();
|
|
11
14
|
await server.connect(transport);
|
package/stdio.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stdio.js","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":";;;AAAA,wEAAiF;AAEjF,wCAAuD;AACvD,wCAAqC;AAE9B,MAAM,iBAAiB,GAAG,KAAK,EAAE,UAAsB,EAAE,EAAE;IAChE,MAAM,MAAM,GAAG,MAAM,IAAA,qBAAY,EAAC,UAAU,CAAC,eAAe,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"stdio.js","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":";;;AAAA,wEAAiF;AAEjF,wCAAuD;AACvD,wCAAqC;AAE9B,MAAM,iBAAiB,GAAG,KAAK,EAAE,UAAsB,EAAE,EAAE;IAChE,MAAM,MAAM,GAAG,MAAM,IAAA,qBAAY,EAAC;QAChC,eAAe,EAAE,UAAU,CAAC,eAAe;QAC3C,sBAAsB,EAAE,UAAU,CAAC,sBAAsB;KAC1D,CAAC,CAAC;IAEH,MAAM,IAAA,sBAAa,EAAC,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,CAAC,eAAe,EAAE,CAAC,CAAC;IAEzF,MAAM,SAAS,GAAG,IAAI,+BAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,IAAA,kBAAS,GAAE,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;AAClD,CAAC,CAAC;AAXW,QAAA,iBAAiB,qBAW5B"}
|
package/stdio.mjs
CHANGED
|
@@ -2,7 +2,10 @@ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
|
|
|
2
2
|
import { initMcpServer, newMcpServer } from "./server.mjs";
|
|
3
3
|
import { getLogger } from "./logger.mjs";
|
|
4
4
|
export const launchStdioServer = async (mcpOptions) => {
|
|
5
|
-
const server = await newMcpServer(
|
|
5
|
+
const server = await newMcpServer({
|
|
6
|
+
stainlessApiKey: mcpOptions.stainlessApiKey,
|
|
7
|
+
customInstructionsPath: mcpOptions.customInstructionsPath,
|
|
8
|
+
});
|
|
6
9
|
await initMcpServer({ server, mcpOptions, stainlessApiKey: mcpOptions.stainlessApiKey });
|
|
7
10
|
const transport = new StdioServerTransport();
|
|
8
11
|
await server.connect(transport);
|
package/stdio.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stdio.mjs","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C;OAEzE,EAAE,aAAa,EAAE,YAAY,EAAE;OAC/B,EAAE,SAAS,EAAE;AAEpB,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,EAAE,UAAsB,EAAE,EAAE;IAChE,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"stdio.mjs","sourceRoot":"","sources":["src/stdio.ts"],"names":[],"mappings":"OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C;OAEzE,EAAE,aAAa,EAAE,YAAY,EAAE;OAC/B,EAAE,SAAS,EAAE;AAEpB,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,EAAE,UAAsB,EAAE,EAAE;IAChE,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC;QAChC,eAAe,EAAE,UAAU,CAAC,eAAe;QAC3C,sBAAsB,EAAE,UAAU,CAAC,sBAAsB;KAC1D,CAAC,CAAC;IAEH,MAAM,aAAa,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,CAAC,eAAe,EAAE,CAAC,CAAC;IAEzF,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,SAAS,EAAE,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;AAClD,CAAC,CAAC"}
|
package/types.d.mts
CHANGED
|
@@ -35,6 +35,11 @@ export type McpRequestContext = {
|
|
|
35
35
|
client: HenrySDK;
|
|
36
36
|
stainlessApiKey?: string | undefined;
|
|
37
37
|
upstreamClientEnvs?: Record<string, string> | undefined;
|
|
38
|
+
mcpSessionId?: string | undefined;
|
|
39
|
+
mcpClientInfo?: {
|
|
40
|
+
name: string;
|
|
41
|
+
version: string;
|
|
42
|
+
} | undefined;
|
|
38
43
|
};
|
|
39
44
|
export type HandlerFunction = ({ reqContext, args, }: {
|
|
40
45
|
reqContext: McpRequestContext;
|
package/types.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":"OAEO,QAAQ,MAAM,gBAAgB;OAC9B,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,oBAAoB,GAAG;I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,GAAG;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC"}
|
package/types.d.ts
CHANGED
|
@@ -35,6 +35,11 @@ export type McpRequestContext = {
|
|
|
35
35
|
client: HenrySDK;
|
|
36
36
|
stainlessApiKey?: string | undefined;
|
|
37
37
|
upstreamClientEnvs?: Record<string, string> | undefined;
|
|
38
|
+
mcpSessionId?: string | undefined;
|
|
39
|
+
mcpClientInfo?: {
|
|
40
|
+
name: string;
|
|
41
|
+
version: string;
|
|
42
|
+
} | undefined;
|
|
38
43
|
};
|
|
39
44
|
export type HandlerFunction = ({ reqContext, args, }: {
|
|
40
45
|
reqContext: McpRequestContext;
|
package/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":"OAEO,QAAQ,MAAM,gBAAgB;OAC9B,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAA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C,OAAO,EAAE,MAAM,GAAG,cAAc,CAU7D;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC"}
|
package/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":";AAAA,sFAAsF;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":";AAAA,sFAAsF;;AA4DtF,kDASC;AAED,sDA2BC;AAED,sCAUC;AAlDD,SAAgB,mBAAmB,CAAC,MAAe;IACjD,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;aACtC;SACF;KACF,CAAC;AACJ,CAAC;AAEM,KAAK,UAAU,qBAAqB,CAAC,QAAkB;IAC5D,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACnC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;IAC3B,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACtE,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAClC,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SAC7C,CAAC;IACJ,CAAC;SAAM,IAAI,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzC,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SAC7C,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,UAAU;oBAChB,QAAQ,EAAE;wBACR,uEAAuE;wBACvE,GAAG,EAAE,0BAA0B;wBAC/B,QAAQ;wBACR,IAAI,EAAE,IAAI;qBACX;iBACF;aACF;SACF,CAAC;IACJ,CAAC;AACH,CAAC;AAED,SAAgB,aAAa,CAAC,OAAe;IAC3C,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,OAAO;aACd;SACF;QACD,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC"}
|
package/types.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"types.mjs","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":"AAAA,sFAAsF;AA4DtF,MAAM,UAAU,mBAAmB,CAAC,MAAe;IACjD,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;aACtC;SACF;KACF,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,QAAkB;IAC5D,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;I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