@nirvana-labs/nirvana-mcp 1.91.1 → 1.91.2

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.
Files changed (46) hide show
  1. package/code-tool.d.mts.map +1 -1
  2. package/code-tool.d.ts.map +1 -1
  3. package/code-tool.js +2 -53
  4. package/code-tool.js.map +1 -1
  5. package/code-tool.mjs +3 -54
  6. package/code-tool.mjs.map +1 -1
  7. package/docs-search-tool.d.mts.map +1 -1
  8. package/docs-search-tool.d.ts.map +1 -1
  9. package/docs-search-tool.js +1 -41
  10. package/docs-search-tool.js.map +1 -1
  11. package/docs-search-tool.mjs +1 -41
  12. package/docs-search-tool.mjs.map +1 -1
  13. package/instructions.d.mts.map +1 -1
  14. package/instructions.d.ts.map +1 -1
  15. package/instructions.js +2 -18
  16. package/instructions.js.map +1 -1
  17. package/instructions.mjs +2 -18
  18. package/instructions.mjs.map +1 -1
  19. package/local-docs-search.js +339 -339
  20. package/local-docs-search.js.map +1 -1
  21. package/local-docs-search.mjs +339 -339
  22. package/local-docs-search.mjs.map +1 -1
  23. package/methods.js +177 -177
  24. package/methods.js.map +1 -1
  25. package/methods.mjs +177 -177
  26. package/methods.mjs.map +1 -1
  27. package/options.d.mts +2 -2
  28. package/options.d.mts.map +1 -1
  29. package/options.d.ts +2 -2
  30. package/options.d.ts.map +1 -1
  31. package/options.js +6 -6
  32. package/options.js.map +1 -1
  33. package/options.mjs +6 -6
  34. package/options.mjs.map +1 -1
  35. package/package.json +2 -2
  36. package/server.js +1 -1
  37. package/server.js.map +1 -1
  38. package/server.mjs +1 -1
  39. package/server.mjs.map +1 -1
  40. package/src/code-tool.ts +4 -83
  41. package/src/docs-search-tool.ts +2 -61
  42. package/src/instructions.ts +2 -28
  43. package/src/local-docs-search.ts +450 -450
  44. package/src/methods.ts +177 -177
  45. package/src/options.ts +9 -9
  46. package/src/server.ts +1 -1
package/src/options.ts CHANGED
@@ -18,7 +18,7 @@ export type McpOptions = {
18
18
  includeCodeTool?: boolean | undefined;
19
19
  includeDocsTools?: boolean | undefined;
20
20
  stainlessApiKey?: string | undefined;
21
- docsSearchMode?: 'stainless-api' | 'local' | undefined;
21
+ docsSearchMode?: 'local' | undefined;
22
22
  docsDir?: string | undefined;
23
23
  codeAllowHttpGets?: boolean | undefined;
24
24
  codeAllowedMethods?: string[] | undefined;
@@ -27,7 +27,7 @@ export type McpOptions = {
27
27
  customInstructionsPath?: string | undefined;
28
28
  };
29
29
 
30
- export type McpCodeExecutionMode = 'stainless-sandbox' | 'local';
30
+ export type McpCodeExecutionMode = 'local';
31
31
 
32
32
  export function parseCLIOptions(): CLIOptions {
33
33
  const opts = yargs(hideBin(process.argv))
@@ -50,10 +50,10 @@ export function parseCLIOptions(): CLIOptions {
50
50
  })
51
51
  .option('code-execution-mode', {
52
52
  type: 'string',
53
- choices: ['stainless-sandbox', 'local'],
54
- default: 'stainless-sandbox',
53
+ choices: ['local'],
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
+ 'The server was generated without access to the Stainless API, so code execution can only run locally on the MCP server machine.',
57
57
  })
58
58
  .option('custom-instructions-path', {
59
59
  type: 'string',
@@ -67,10 +67,10 @@ export function parseCLIOptions(): CLIOptions {
67
67
  })
68
68
  .option('docs-search-mode', {
69
69
  type: 'string',
70
- choices: ['stainless-api', 'local'],
71
- default: 'stainless-api',
70
+ choices: ['local'],
71
+ default: 'local',
72
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.",
73
+ "Documentation search will use an in-memory search index built from embedded SDK method data and optional local docs files; the 'stainless-api' option is unavailable.",
74
74
  })
75
75
  .option('log-format', {
76
76
  type: 'string',
@@ -132,7 +132,7 @@ export function parseCLIOptions(): CLIOptions {
132
132
  ...(includeDocsTools !== undefined && { includeDocsTools }),
133
133
  debug: !!argv.debug,
134
134
  stainlessApiKey: argv.stainlessApiKey,
135
- docsSearchMode: argv.docsSearchMode as 'stainless-api' | 'local' | undefined,
135
+ docsSearchMode: argv.docsSearchMode as 'local' | undefined,
136
136
  docsDir: argv.docsDir,
137
137
  codeAllowHttpGets: argv.codeAllowHttpGets,
138
138
  codeAllowedMethods: argv.codeAllowedMethods,
package/src/server.ts CHANGED
@@ -182,7 +182,7 @@ export function selectTools(options?: McpOptions): McpTool[] {
182
182
  includedTools.push(
183
183
  codeTool({
184
184
  blockedMethods: blockedMethodsForCodeTool(options),
185
- codeExecutionMode: options?.codeExecutionMode ?? 'stainless-sandbox',
185
+ codeExecutionMode: options?.codeExecutionMode ?? 'local',
186
186
  }),
187
187
  );
188
188
  }