@mcpjam/cli 1.1.6 → 2.0.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/dist/index.js +2025 -6007
- package/dist/index.js.map +1 -1
- package/package.json +16 -43
- package/.env.production +0 -2
- package/LICENSE +0 -42
- package/README.md +0 -104
- package/bin/mcpjam.js +0 -15
package/package.json
CHANGED
|
@@ -1,57 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcpjam/cli",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"description": "MCPJam CLI for programmatic MCP testing and evals",
|
|
6
|
-
"license": "Apache-2.0",
|
|
7
|
-
"author": "MCPJam (https://mcpjam.com)",
|
|
8
|
-
"homepage": "https://mcpjam.com",
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "https://github.com/MCPJam/inspector.git",
|
|
12
|
-
"directory": "cli"
|
|
13
|
-
},
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "CLI for MCPJam SDK inspection commands and OAuth conformance",
|
|
14
5
|
"main": "dist/index.js",
|
|
15
|
-
"bin": {
|
|
16
|
-
"mcpjam": "bin/mcpjam.js"
|
|
17
|
-
},
|
|
18
6
|
"files": [
|
|
19
|
-
"
|
|
20
|
-
"dist",
|
|
21
|
-
"package.json",
|
|
22
|
-
"README.md",
|
|
23
|
-
".env.production"
|
|
7
|
+
"dist"
|
|
24
8
|
],
|
|
9
|
+
"bin": {
|
|
10
|
+
"mcpjam": "dist/index.js"
|
|
11
|
+
},
|
|
25
12
|
"scripts": {
|
|
26
13
|
"build": "tsup",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"test": "node bin/mcpjam.js evals run -t local-examples/tests.json -e local-examples/environment.json -l local-examples/llms.json",
|
|
30
|
-
"start": "node bin/mcpjam.js"
|
|
14
|
+
"test": "tsx --test tests/**/*.test.ts",
|
|
15
|
+
"typecheck": "tsc --noEmit"
|
|
31
16
|
},
|
|
32
17
|
"dependencies": {
|
|
33
|
-
"@
|
|
34
|
-
"
|
|
35
|
-
"@hono/node-server": "^1.13.7",
|
|
36
|
-
"@mastra/core": "^0.18.0",
|
|
37
|
-
"@mastra/mcp": "^0.13.1",
|
|
38
|
-
"@modelcontextprotocol/sdk": "^1.17.3",
|
|
39
|
-
"@openrouter/ai-sdk-provider": "^1.2.0",
|
|
40
|
-
"ai": "^5.0.11",
|
|
41
|
-
"chalk": "^5.6.0",
|
|
42
|
-
"cli-table3": "^0.6.5",
|
|
43
|
-
"commander": "^12.0.0",
|
|
44
|
-
"dotenv": "^17.2.2",
|
|
45
|
-
"hono": "^4.6.11",
|
|
46
|
-
"ollama-ai-provider-v2": "^1.3.1",
|
|
47
|
-
"posthog-node": "^5.9.1",
|
|
48
|
-
"update-notifier": "^7.3.1",
|
|
49
|
-
"zod": "^4.0.16"
|
|
18
|
+
"@mcpjam/sdk": "^0.9.2",
|
|
19
|
+
"commander": "^12.1.0"
|
|
50
20
|
},
|
|
51
21
|
"devDependencies": {
|
|
52
|
-
"@types/node": "^
|
|
53
|
-
"@types/update-notifier": "^6.0.8",
|
|
22
|
+
"@types/node": "^24.0.0",
|
|
54
23
|
"tsup": "^8.3.5",
|
|
55
|
-
"
|
|
24
|
+
"tsx": "^4.19.2",
|
|
25
|
+
"typescript": "^5.8.3"
|
|
26
|
+
},
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=18.0.0"
|
|
56
29
|
}
|
|
57
30
|
}
|
package/.env.production
DELETED
package/LICENSE
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
The MCPJam Enterprise Edition (EE) license (the "EE License")
|
|
2
|
-
Copyright (c) 2025-present MCPJam Inc
|
|
3
|
-
|
|
4
|
-
With regard to the MCPJam Software:
|
|
5
|
-
|
|
6
|
-
This software and associated documentation files (the "Software") may only be
|
|
7
|
-
used in production, if you (and any entity that you represent) have agreed to,
|
|
8
|
-
and are in compliance with, the MCPJam Subscription Terms available
|
|
9
|
-
at https://mcpjam.com/legal/terms (the "EE Terms"), or other agreements governing
|
|
10
|
-
the use of the Software, as mutually agreed by you and MCPJam Inc ("MCPJam"),
|
|
11
|
-
and otherwise have a valid MCPJam Enterprise Edition subscription ("EE Subscription")
|
|
12
|
-
for the correct number of MCP server evaluations as defined in the EE Terms ("Evaluations"). Subject to the foregoing sentence,
|
|
13
|
-
you are free to modify this Software and publish patches to the Software. You agree
|
|
14
|
-
that MCPJam and/or its licensors (as applicable) retain all right, title and interest in
|
|
15
|
-
and to all such modifications and/or patches, and all such modifications and/or
|
|
16
|
-
patches may only be used, copied, modified, displayed, distributed, or otherwise
|
|
17
|
-
exploited with a valid EE Subscription for the correct number of evaluations.
|
|
18
|
-
Notwithstanding the foregoing, you may copy and modify the Software for development
|
|
19
|
-
and testing purposes, without requiring a subscription. You agree that MCPJam and/or
|
|
20
|
-
its licensors (as applicable) retain all right, title and interest in and to all such
|
|
21
|
-
modifications. You are not granted any other rights beyond what is expressly stated herein.
|
|
22
|
-
Subject to the foregoing, it is forbidden to copy, merge, publish, distribute, sublicense,
|
|
23
|
-
and/or sell the Software.
|
|
24
|
-
|
|
25
|
-
This EE License applies only to the part of this Software that is not distributed under
|
|
26
|
-
the Apache license. Any part of this Software distributed under the Apache license or which
|
|
27
|
-
is served client-side as an image, font, cascading stylesheet (CSS), file which produces
|
|
28
|
-
or is compiled, arranged, augmented, or combined into client-side JavaScript, in whole or
|
|
29
|
-
in part, is copyrighted under the Apache license. The full text of this EE License shall
|
|
30
|
-
be included in all copies or substantial portions of the Software.
|
|
31
|
-
|
|
32
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
33
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
34
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
35
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
36
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
37
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
38
|
-
SOFTWARE.
|
|
39
|
-
|
|
40
|
-
For all third party components incorporated into the MCPJam Software, those
|
|
41
|
-
components are licensed under the original license provided by the owner of the
|
|
42
|
-
applicable component.
|
package/README.md
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
# MCPJam Evals Testing CLI
|
|
2
|
-
|
|
3
|
-
We built a CLI that performs MCP evals and End to End (E2E) testing. The CLI creates a simulated end user’s environment and tests popular user flows.
|
|
4
|
-
|
|
5
|
-
Evals helps you:
|
|
6
|
-
|
|
7
|
-
- Discover workflows that are breaking your server and get actionable ways on resolving them.
|
|
8
|
-
- Benchmark your server’s performance and catch regressions in future changes.
|
|
9
|
-
- Programatically test queries on a MCP server with a command. No more doing QA one by one.
|
|
10
|
-
|
|
11
|
-
### Install
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npm install -g @mcpjam/cli
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
### Set up tests
|
|
18
|
-
|
|
19
|
-
To set up, create a new folder directory for your test. In that directory, create three files:
|
|
20
|
-
|
|
21
|
-
- `environment.json` to set up your MCP server connections
|
|
22
|
-
- `tests.json` to configure your tests
|
|
23
|
-
- `llms.json` to store your LLM API keys
|
|
24
|
-
|
|
25
|
-
### Server connection file (environment.json)
|
|
26
|
-
|
|
27
|
-
This file is configured very similar to a `mcp.json` file. For servers with OAuth, you must provide your own `Bearer` API tokens. MCPJam CLI does not handle OAuth flows / DCR. For bearer tokens, make sure to wrap your header with `requestInit`.
|
|
28
|
-
|
|
29
|
-
```json
|
|
30
|
-
{
|
|
31
|
-
"servers": {
|
|
32
|
-
"asana": {
|
|
33
|
-
"url": "https://mcp.asana.com/sse",
|
|
34
|
-
"requestInit": {
|
|
35
|
-
"headers": {
|
|
36
|
-
"Authorization": "Bearer <ASANA_API_KEY>"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"sequential-thinking": {
|
|
41
|
-
"command": "npx",
|
|
42
|
-
"args": ["-y", "@modelcontextprotocol/server-sequential-thinking"],
|
|
43
|
-
"env": {
|
|
44
|
-
"ENV_1": "<ENV_1>"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Tests file (tests.json)
|
|
52
|
-
|
|
53
|
-
The test file is an array of tests.
|
|
54
|
-
|
|
55
|
-
```json
|
|
56
|
-
[
|
|
57
|
-
{
|
|
58
|
-
"title": "Workspace test",
|
|
59
|
-
"query": "What is my asana workspace?",
|
|
60
|
-
"runs": 1, // Number of times to run this test
|
|
61
|
-
"model": "anthropic/claude-3.7-sonnet",
|
|
62
|
-
"provider": "openrouter", // Provider name: "anthropic" | "openai" | "openrouter"
|
|
63
|
-
"expectedToolCalls": ["asana_list_workspaces"]
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"title": "Workspace users test",
|
|
67
|
-
"query": "Can you figure out who is in the workspace?",
|
|
68
|
-
"runs": 1,
|
|
69
|
-
"model": "anthropic/claude-3.7-sonnet",
|
|
70
|
-
"provider": "openrouter",
|
|
71
|
-
"expectedToolCalls": ["asana_list_workspaces", "asana_get_workspace_users"]
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
### LLM API key file (llms.json)
|
|
77
|
-
|
|
78
|
-
```json
|
|
79
|
-
{
|
|
80
|
-
"anthropic": "<ANTHROPIC_API_KEY>",
|
|
81
|
-
"openai": "<OPENAI_API_KEY>",
|
|
82
|
-
"openrouter": "<OPENROUTER_API_KEY>"
|
|
83
|
-
}
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### Run MCP Eval
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
mcpjam evals run --tests tests.json --environment environment.json --llms llms.json
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
#### Short flags
|
|
93
|
-
|
|
94
|
-
```bash
|
|
95
|
-
mcpjam evals run -t tests.json -e environment.json -l llms.json
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
#### CLI Options
|
|
99
|
-
|
|
100
|
-
- `--tests, -t <file>`: Path to the tests configuration file (required)
|
|
101
|
-
- `--environment, -e <file>`: Path to the environment configuration file (required)
|
|
102
|
-
- `--llms, -l <file>`: Path to the LLM API key configuration file
|
|
103
|
-
- `--help, -h`: Show help information
|
|
104
|
-
- `--version, -V`: Display version number
|
package/bin/mcpjam.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { fileURLToPath, pathToFileURL } from "url";
|
|
4
|
-
import { dirname, resolve } from "path";
|
|
5
|
-
|
|
6
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
7
|
-
const cliPath = resolve(__dirname, "../dist/index.js");
|
|
8
|
-
|
|
9
|
-
const fixedCliPath =
|
|
10
|
-
process.platform === "win32" ? pathToFileURL(cliPath).href : cliPath;
|
|
11
|
-
|
|
12
|
-
import(fixedCliPath).catch((err) => {
|
|
13
|
-
console.error("Failed to start MCPJam CLI:", err.message);
|
|
14
|
-
process.exit(1);
|
|
15
|
-
});
|