@nirvana-labs/nirvana-mcp 1.91.1 → 1.91.3
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/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +2 -53
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +3 -54
- package/code-tool.mjs.map +1 -1
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts.map +1 -1
- package/docs-search-tool.js +1 -41
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +1 -41
- package/docs-search-tool.mjs.map +1 -1
- package/instructions.d.mts.map +1 -1
- package/instructions.d.ts.map +1 -1
- package/instructions.js +2 -18
- package/instructions.js.map +1 -1
- package/instructions.mjs +2 -18
- package/instructions.mjs.map +1 -1
- package/local-docs-search.js +347 -347
- package/local-docs-search.js.map +1 -1
- package/local-docs-search.mjs +347 -347
- package/local-docs-search.mjs.map +1 -1
- package/methods.js +177 -177
- package/methods.js.map +1 -1
- package/methods.mjs +177 -177
- package/methods.mjs.map +1 -1
- package/options.d.mts +2 -2
- package/options.d.mts.map +1 -1
- package/options.d.ts +2 -2
- package/options.d.ts.map +1 -1
- package/options.js +6 -6
- package/options.js.map +1 -1
- package/options.mjs +6 -6
- package/options.mjs.map +1 -1
- package/package.json +2 -2
- package/server.js +2 -2
- package/server.js.map +1 -1
- package/server.mjs +2 -2
- package/server.mjs.map +1 -1
- package/src/code-tool.ts +4 -83
- package/src/docs-search-tool.ts +2 -61
- package/src/instructions.ts +2 -28
- package/src/local-docs-search.ts +458 -458
- package/src/methods.ts +177 -177
- package/src/options.ts +9 -9
- 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?: '
|
|
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 = '
|
|
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: ['
|
|
54
|
-
default: '
|
|
53
|
+
choices: ['local'],
|
|
54
|
+
default: 'local',
|
|
55
55
|
description:
|
|
56
|
-
|
|
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: ['
|
|
71
|
-
default: '
|
|
70
|
+
choices: ['local'],
|
|
71
|
+
default: 'local',
|
|
72
72
|
description:
|
|
73
|
-
"
|
|
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 '
|
|
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.
|
|
31
|
+
version: '1.91.2',
|
|
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 ?? '
|
|
185
|
+
codeExecutionMode: options?.codeExecutionMode ?? 'local',
|
|
186
186
|
}),
|
|
187
187
|
);
|
|
188
188
|
}
|