@roarkanalytics/sdk-mcp 4.33.0 → 4.35.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 +21 -0
- package/client-headers.d.mts +10 -0
- package/client-headers.d.mts.map +1 -0
- package/client-headers.d.ts +10 -0
- package/client-headers.d.ts.map +1 -0
- package/client-headers.js +15 -0
- package/client-headers.js.map +1 -0
- package/client-headers.mjs +12 -0
- package/client-headers.mjs.map +1 -0
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +2 -3
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +2 -3
- 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 +13 -12
- package/local-docs-search.js.map +1 -1
- package/local-docs-search.mjs +13 -12
- package/local-docs-search.mjs.map +1 -1
- package/package.json +11 -1
- package/server.d.mts.map +1 -1
- package/server.d.ts.map +1 -1
- package/server.js +4 -2
- package/server.js.map +1 -1
- package/server.mjs +4 -2
- package/server.mjs.map +1 -1
- package/src/client-headers.ts +12 -0
- package/src/code-tool.ts +2 -3
- package/src/local-docs-search.ts +13 -12
- package/src/server.ts +4 -2
package/src/server.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { getInstructions } from './instructions';
|
|
|
17
17
|
import { McpOptions } from './options';
|
|
18
18
|
import { blockedMethodsForCodeTool } from './methods';
|
|
19
19
|
import { HandlerFunction, McpRequestContext, ToolCallResult, McpTool } from './types';
|
|
20
|
+
import { MCP_CLIENT_HEADERS } from './client-headers';
|
|
20
21
|
|
|
21
22
|
export const newMcpServer = async ({
|
|
22
23
|
stainlessApiKey,
|
|
@@ -28,7 +29,8 @@ export const newMcpServer = async ({
|
|
|
28
29
|
new McpServer(
|
|
29
30
|
{
|
|
30
31
|
name: 'roarkanalytics_sdk_api',
|
|
31
|
-
|
|
32
|
+
// A literal, not MCP_SERVER_VERSION: publish.yml checks dist/server.js for it.
|
|
33
|
+
version: '4.35.0', // x-release-please-version
|
|
32
34
|
},
|
|
33
35
|
{
|
|
34
36
|
instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),
|
|
@@ -118,7 +120,7 @@ export async function initMcpServer(params: {
|
|
|
118
120
|
...params.clientOptions,
|
|
119
121
|
defaultHeaders: {
|
|
120
122
|
...params.clientOptions?.defaultHeaders,
|
|
121
|
-
|
|
123
|
+
...MCP_CLIENT_HEADERS,
|
|
122
124
|
},
|
|
123
125
|
});
|
|
124
126
|
if (_logLevel) {
|