@mcpjam/cli 2.1.0 → 3.2.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 +46 -1
- package/dist/index.js +2724 -580
- package/dist/index.js.map +1 -1
- package/package.json +6 -4
package/README.md
CHANGED
|
@@ -27,6 +27,8 @@ Options:
|
|
|
27
27
|
-v, --version output the CLI version
|
|
28
28
|
--timeout <ms> Request timeout in milliseconds (default: 30000)
|
|
29
29
|
--rpc Include RPC logs in JSON output
|
|
30
|
+
--quiet Suppress non-result progress output
|
|
31
|
+
--no-telemetry Disable anonymous usage telemetry
|
|
30
32
|
--format <format> Output format
|
|
31
33
|
-h, --help display help for command
|
|
32
34
|
|
|
@@ -38,6 +40,8 @@ Commands:
|
|
|
38
40
|
apps MCP Apps utilities, widget extraction, and conformance checks
|
|
39
41
|
oauth Run MCP OAuth login, proxy, and conformance flows
|
|
40
42
|
protocol MCP protocol inspection and conformance checks
|
|
43
|
+
inspector Start or attach to the local MCPJam Inspector
|
|
44
|
+
telemetry Inspect and configure anonymous CLI telemetry
|
|
41
45
|
```
|
|
42
46
|
|
|
43
47
|
## Quick start
|
|
@@ -55,6 +59,10 @@ mcpjam oauth login --url https://your-server.com/mcp --protocol-version 2025-11-
|
|
|
55
59
|
# MCP Apps conformance
|
|
56
60
|
mcpjam apps conformance --url https://your-server.com/mcp --access-token $TOKEN
|
|
57
61
|
|
|
62
|
+
# MCP Apps render debugging in Inspector
|
|
63
|
+
mcpjam apps debug --url https://your-server.com/mcp --access-token $TOKEN \
|
|
64
|
+
--tool-name create_view --params @params.json --ui --quiet --format json
|
|
65
|
+
|
|
58
66
|
# List tools with full schemas
|
|
59
67
|
mcpjam tools list --url https://your-server.com/mcp --access-token $TOKEN --format json
|
|
60
68
|
```
|
|
@@ -89,7 +97,7 @@ diff <(jq -S . before.json) <(jq -S . after.json)
|
|
|
89
97
|
Cover the full registration × protocol version × auth mode matrix from a single config file. Outputs JUnit XML.
|
|
90
98
|
|
|
91
99
|
```bash
|
|
92
|
-
mcpjam oauth conformance-suite --config ./oauth-matrix.json --
|
|
100
|
+
mcpjam oauth conformance-suite --config ./oauth-matrix.json --reporter junit-xml > report.xml
|
|
93
101
|
```
|
|
94
102
|
|
|
95
103
|
### Verify tokens work end-to-end
|
|
@@ -141,6 +149,43 @@ mcpjam tools list --url $URL --access-token $TOKEN --format json \
|
|
|
141
149
|
| jq '.tools[] | {name, description, inputSchema}'
|
|
142
150
|
```
|
|
143
151
|
|
|
152
|
+
### JSON input ergonomics
|
|
153
|
+
|
|
154
|
+
JSON-valued flags accept inline JSON, `@path`, or `-` for stdin:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
mcpjam tools call --url $URL --access-token $TOKEN \
|
|
158
|
+
--tool-name search_docs --tool-args @params.json --quiet --format json
|
|
159
|
+
|
|
160
|
+
echo '{"query":"setup guide"}' | mcpjam tools call --url $URL --access-token $TOKEN \
|
|
161
|
+
--tool-name search_docs --tool-args - --quiet --format json
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Use `--format json|human` for the raw command result. Use `--reporter json-summary|junit-xml` on conformance and diff commands when CI needs a report artifact. `server validate` uses `--debug-out` for validation artifacts.
|
|
165
|
+
|
|
166
|
+
## Telemetry
|
|
167
|
+
|
|
168
|
+
`mcpjam` collects anonymous command-level telemetry so we can understand CLI usage and reliability. Events include the command/subcommand name, success/failure, exit code, duration, CLI version, Node version, OS, CPU architecture, transport type (`http` or `stdio`), `platform: "cli"`, and coarse CI metadata (`is_ci` and a provider enum such as `github_actions`).
|
|
169
|
+
|
|
170
|
+
Telemetry is enabled by default. The first command invocation that is not opted out writes `telemetry.json` with `enabled: true` and a random install UUID.
|
|
171
|
+
|
|
172
|
+
Telemetry uses a random install UUID stored at the same platform cache location as update checks, in `telemetry.json`. It does not collect raw argv, URLs, hostnames, ports, tokens, headers, environment values, working directories, file paths, tool/resource/prompt names, error messages, stack traces, repository names, branch names, workflow names, or CI job ids.
|
|
173
|
+
|
|
174
|
+
Disable telemetry for one invocation with `--no-telemetry`, or persistently with:
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
mcpjam telemetry disable
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
Check or re-enable it with:
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
mcpjam telemetry status
|
|
184
|
+
mcpjam telemetry enable
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
Set `DO_NOT_TRACK=1` or `MCPJAM_TELEMETRY_DISABLED=1` to disable telemetry through the environment. Set `MCPJAM_TELEMETRY_DEBUG=1` to print the sanitized telemetry payload to stderr instead of sending it.
|
|
188
|
+
|
|
144
189
|
## GitHub Actions
|
|
145
190
|
|
|
146
191
|
```yaml
|