@nirvana-labs/nirvana-mcp 1.91.0 → 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 (57) hide show
  1. package/code-tool-worker.d.mts.map +1 -1
  2. package/code-tool-worker.d.ts.map +1 -1
  3. package/code-tool-worker.js +3 -0
  4. package/code-tool-worker.js.map +1 -1
  5. package/code-tool-worker.mjs +3 -0
  6. package/code-tool-worker.mjs.map +1 -1
  7. package/code-tool.d.mts.map +1 -1
  8. package/code-tool.d.ts.map +1 -1
  9. package/code-tool.js +2 -53
  10. package/code-tool.js.map +1 -1
  11. package/code-tool.mjs +3 -54
  12. package/code-tool.mjs.map +1 -1
  13. package/docs-search-tool.d.mts.map +1 -1
  14. package/docs-search-tool.d.ts.map +1 -1
  15. package/docs-search-tool.js +1 -41
  16. package/docs-search-tool.js.map +1 -1
  17. package/docs-search-tool.mjs +1 -41
  18. package/docs-search-tool.mjs.map +1 -1
  19. package/instructions.d.mts.map +1 -1
  20. package/instructions.d.ts.map +1 -1
  21. package/instructions.js +2 -18
  22. package/instructions.js.map +1 -1
  23. package/instructions.mjs +2 -18
  24. package/instructions.mjs.map +1 -1
  25. package/local-docs-search.d.mts.map +1 -1
  26. package/local-docs-search.d.ts.map +1 -1
  27. package/local-docs-search.js +437 -330
  28. package/local-docs-search.js.map +1 -1
  29. package/local-docs-search.mjs +437 -330
  30. package/local-docs-search.mjs.map +1 -1
  31. package/methods.d.mts.map +1 -1
  32. package/methods.d.ts.map +1 -1
  33. package/methods.js +187 -169
  34. package/methods.js.map +1 -1
  35. package/methods.mjs +187 -169
  36. package/methods.mjs.map +1 -1
  37. package/options.d.mts +2 -2
  38. package/options.d.mts.map +1 -1
  39. package/options.d.ts +2 -2
  40. package/options.d.ts.map +1 -1
  41. package/options.js +6 -6
  42. package/options.js.map +1 -1
  43. package/options.mjs +6 -6
  44. package/options.mjs.map +1 -1
  45. package/package.json +2 -2
  46. package/server.js +2 -2
  47. package/server.js.map +1 -1
  48. package/server.mjs +2 -2
  49. package/server.mjs.map +1 -1
  50. package/src/code-tool-worker.ts +3 -0
  51. package/src/code-tool.ts +4 -83
  52. package/src/docs-search-tool.ts +2 -61
  53. package/src/instructions.ts +2 -28
  54. package/src/local-docs-search.ts +560 -435
  55. package/src/methods.ts +187 -169
  56. package/src/options.ts +9 -9
  57. package/src/server.ts +2 -2
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
@@ -28,7 +28,7 @@ export const newMcpServer = async ({
28
28
  new McpServer(
29
29
  {
30
30
  name: 'nirvana_labs_nirvana_api',
31
- version: '1.91.0',
31
+ version: '1.91.1',
32
32
  },
33
33
  {
34
34
  instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),
@@ -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
  }