@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/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: 'stainless-sandbox',
54
+ default: 'local',
55
55
  description:
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.",
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: argv.codeExecutionMode as McpCodeExecutionMode,
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.12.0', // x-release-please-version
31
+ version: '3.13.0', // x-release-please-version
32
32
  },
33
33
  {
34
34
  instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),