@roarkanalytics/sdk-mcp 3.2.0 → 3.3.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/README.md +11 -3
- package/package.json +16 -12
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/server.ts +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Roark TypeScript MCP Server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The official MCP server for the [Roark API](https://docs.roark.ai), published as
|
|
4
|
+
[`@roarkanalytics/sdk-mcp`](https://www.npmjs.com/package/@roarkanalytics/sdk-mcp).
|
|
5
|
+
|
|
6
|
+
Its tool table, the code tool's prompt and its embedded docs index are generated from
|
|
7
|
+
Roark's OpenAPI spec by [app-agent-codegen](https://github.com/roarkhq/app-agent-codegen) and
|
|
8
|
+
arrive here as pull requests. Everything else - the transports, auth, the code tool runtime -
|
|
9
|
+
is hand-maintained. Four files carry generated regions: `src/methods.ts`, `src/code-tool.ts`,
|
|
10
|
+
`src/code-tool-worker.ts` and `src/local-docs-search.ts`.
|
|
4
11
|
|
|
5
12
|
## Installation
|
|
6
13
|
|
|
@@ -81,9 +88,10 @@ Launching the client with `--transport=http` launches the server as a remote ser
|
|
|
81
88
|
Authorization can be provided via the `Authorization` header using the Bearer scheme.
|
|
82
89
|
|
|
83
90
|
Additionally, authorization can be provided via the following headers:
|
|
84
|
-
|
|
91
|
+
|
|
92
|
+
| Header | Equivalent client option | Security scheme |
|
|
85
93
|
| -------------------------- | ------------------------ | --------------- |
|
|
86
|
-
| `x-roark-api-bearer-token` | `bearerToken`
|
|
94
|
+
| `x-roark-api-bearer-token` | `bearerToken` | Bearer |
|
|
87
95
|
|
|
88
96
|
A configuration JSON for this server might look like this, assuming the server is hosted at `http://localhost:3000`:
|
|
89
97
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roarkanalytics/sdk-mcp",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "The official MCP Server for the Roark API",
|
|
5
5
|
"author": "Roark <james@roark.ai>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -8,15 +8,24 @@
|
|
|
8
8
|
"type": "commonjs",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/roarkhq/
|
|
12
|
-
"directory": "packages/mcp-server"
|
|
11
|
+
"url": "git+https://github.com/roarkhq/mcp-roark-analytics.git"
|
|
13
12
|
},
|
|
14
|
-
"homepage": "https://github.com/roarkhq/
|
|
13
|
+
"homepage": "https://github.com/roarkhq/mcp-roark-analytics#readme",
|
|
15
14
|
"license": "Apache-2.0",
|
|
15
|
+
"packageManager": "pnpm@10.30.1",
|
|
16
16
|
"private": false,
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "bash ./build",
|
|
22
|
+
"test": "jest",
|
|
23
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
24
|
+
"lint": "eslint . && prettier --check .",
|
|
25
|
+
"fix": "eslint --fix . && prettier --write .",
|
|
26
|
+
"format": "prettier --write --cache --cache-strategy metadata . !dist",
|
|
27
|
+
"tsn": "ts-node -r tsconfig-paths/register"
|
|
28
|
+
},
|
|
20
29
|
"dependencies": {
|
|
21
30
|
"@roarkanalytics/sdk": "^3.2.0",
|
|
22
31
|
"ajv": "^8.18.0",
|
|
@@ -42,7 +51,7 @@
|
|
|
42
51
|
"zod-validation-error": "^4.0.1"
|
|
43
52
|
},
|
|
44
53
|
"bin": {
|
|
45
|
-
"mcp-server": "
|
|
54
|
+
"mcp-server": "index.js"
|
|
46
55
|
},
|
|
47
56
|
"imports": {
|
|
48
57
|
"@roarkanalytics/sdk-mcp": ".",
|
|
@@ -224,12 +233,7 @@
|
|
|
224
233
|
"default": "./util.mjs"
|
|
225
234
|
}
|
|
226
235
|
},
|
|
227
|
-
"
|
|
228
|
-
"
|
|
229
|
-
"build": "bash ./build",
|
|
230
|
-
"format": "prettier --write --cache --cache-strategy metadata . !dist",
|
|
231
|
-
"tsn": "ts-node -r tsconfig-paths/register",
|
|
232
|
-
"lint": "eslint .",
|
|
233
|
-
"fix": "eslint --fix ."
|
|
236
|
+
"engines": {
|
|
237
|
+
"node": ">=20"
|
|
234
238
|
}
|
|
235
239
|
}
|
package/server.js
CHANGED
|
@@ -19,7 +19,7 @@ const instructions_1 = require("./instructions.js");
|
|
|
19
19
|
const methods_1 = require("./methods.js");
|
|
20
20
|
const newMcpServer = async ({ stainlessApiKey, customInstructionsPath, }) => new mcp_js_1.McpServer({
|
|
21
21
|
name: 'roarkanalytics_sdk_api',
|
|
22
|
-
version: '3.
|
|
22
|
+
version: '3.3.0', // x-release-please-version
|
|
23
23
|
}, {
|
|
24
24
|
instructions: await (0, instructions_1.getInstructions)({ stainlessApiKey, customInstructionsPath }),
|
|
25
25
|
capabilities: { tools: {}, logging: {} },
|
package/server.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { getInstructions } from "./instructions.mjs";
|
|
|
10
10
|
import { blockedMethodsForCodeTool } from "./methods.mjs";
|
|
11
11
|
export const newMcpServer = async ({ stainlessApiKey, customInstructionsPath, }) => new McpServer({
|
|
12
12
|
name: 'roarkanalytics_sdk_api',
|
|
13
|
-
version: '3.
|
|
13
|
+
version: '3.3.0', // x-release-please-version
|
|
14
14
|
}, {
|
|
15
15
|
instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),
|
|
16
16
|
capabilities: { tools: {}, logging: {} },
|
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.
|
|
31
|
+
version: '3.3.0', // x-release-please-version
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
instructions: await getInstructions({ stainlessApiKey, customInstructionsPath }),
|