@roarkanalytics/sdk-mcp 3.12.0 → 3.13.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/CHANGELOG.md +14 -0
- package/README.md +5 -3
- package/code-tool-worker.d.mts.map +1 -1
- package/code-tool-worker.d.ts.map +1 -1
- package/code-tool-worker.js +1 -0
- package/code-tool-worker.js.map +1 -1
- package/code-tool-worker.mjs +1 -0
- package/code-tool-worker.mjs.map +1 -1
- package/code-tool.d.mts +9 -0
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts +9 -0
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +29 -1
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +27 -1
- package/code-tool.mjs.map +1 -1
- package/local-docs-search.d.mts.map +1 -1
- package/local-docs-search.d.ts.map +1 -1
- package/local-docs-search.js +54 -28
- package/local-docs-search.js.map +1 -1
- package/local-docs-search.mjs +54 -28
- package/local-docs-search.mjs.map +1 -1
- package/methods.d.mts.map +1 -1
- package/methods.d.ts.map +1 -1
- package/methods.js +6 -0
- package/methods.js.map +1 -1
- package/methods.mjs +6 -0
- package/methods.mjs.map +1 -1
- package/options.d.mts.map +1 -1
- package/options.d.ts.map +1 -1
- package/options.js +10 -3
- package/options.js.map +1 -1
- package/options.mjs +10 -3
- package/options.mjs.map +1 -1
- package/package.json +1 -1
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/code-tool-worker.ts +1 -0
- package/src/code-tool.ts +32 -1
- package/src/local-docs-search.ts +60 -28
- package/src/methods.ts +6 -0
- package/src/options.ts +13 -3
- package/src/server.ts +1 -1
package/src/methods.ts
CHANGED
|
@@ -256,6 +256,12 @@ export const sdkMethods: SdkMethod[] = [
|
|
|
256
256
|
httpMethod: 'get',
|
|
257
257
|
httpPath: '/v1/simulation/environment/{environmentId}',
|
|
258
258
|
},
|
|
259
|
+
{
|
|
260
|
+
clientCallName: 'client.simulationTemplate.list',
|
|
261
|
+
fullyQualifiedName: 'simulationTemplate.list',
|
|
262
|
+
httpMethod: 'get',
|
|
263
|
+
httpPath: '/v1/simulation/template',
|
|
264
|
+
},
|
|
259
265
|
{
|
|
260
266
|
clientCallName: 'client.customerFlow.create',
|
|
261
267
|
fullyQualifiedName: 'customerFlow.create',
|
package/src/options.ts
CHANGED
|
@@ -51,9 +51,9 @@ export function parseCLIOptions(): CLIOptions {
|
|
|
51
51
|
.option('code-execution-mode', {
|
|
52
52
|
type: 'string',
|
|
53
53
|
choices: ['stainless-sandbox', 'local'],
|
|
54
|
-
default: '
|
|
54
|
+
default: 'local',
|
|
55
55
|
description:
|
|
56
|
-
"Where to run code execution in code tool; '
|
|
56
|
+
"Where to run code execution in code tool; 'local' executes code on the MCP server machine using Deno. 'stainless-sandbox' has been retired and is rejected.",
|
|
57
57
|
})
|
|
58
58
|
.option('custom-instructions-path', {
|
|
59
59
|
type: 'string',
|
|
@@ -128,6 +128,16 @@ export function parseCLIOptions(): CLIOptions {
|
|
|
128
128
|
const includeCodeTool = shouldIncludeToolType('code');
|
|
129
129
|
const includeDocsTools = shouldIncludeToolType('docs');
|
|
130
130
|
|
|
131
|
+
const codeExecutionMode = argv.codeExecutionMode as McpCodeExecutionMode;
|
|
132
|
+
// The choice is still accepted by yargs so that anyone carrying the old flag (or
|
|
133
|
+
// the MCP_SERVER_CODE_EXECUTION_MODE env var) gets told why it stopped working,
|
|
134
|
+
// instead of a request that fails against the retired endpoint at tool-call time.
|
|
135
|
+
if (codeExecutionMode === 'stainless-sandbox') {
|
|
136
|
+
throw new Error(
|
|
137
|
+
"code-execution-mode 'stainless-sandbox' is no longer available: the Stainless-hosted sandbox has been retired. Use 'local', which runs code on this machine with Deno (https://deno.land).",
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
131
141
|
const transport = argv.transport as 'stdio' | 'http';
|
|
132
142
|
const logFormat =
|
|
133
143
|
argv.logFormat ? (argv.logFormat as 'json' | 'pretty')
|
|
@@ -144,7 +154,7 @@ export function parseCLIOptions(): CLIOptions {
|
|
|
144
154
|
codeAllowHttpGets: argv.codeAllowHttpGets,
|
|
145
155
|
codeAllowedMethods: argv.codeAllowedMethods,
|
|
146
156
|
codeBlockedMethods: argv.codeBlockedMethods,
|
|
147
|
-
codeExecutionMode
|
|
157
|
+
codeExecutionMode,
|
|
148
158
|
customInstructionsPath: argv.customInstructionsPath,
|
|
149
159
|
transport,
|
|
150
160
|
logFormat,
|
package/src/server.ts
CHANGED
|
@@ -28,7 +28,7 @@ export const newMcpServer = async ({
|
|
|
28
28
|
new McpServer(
|
|
29
29
|
{
|
|
30
30
|
name: 'roarkanalytics_sdk_api',
|
|
31
|
-
version: '3.
|
|
31
|
+
version: '3.13.0', // x-release-please-version
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),
|