You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ A path handed to a runtime `createRequire( import.meta.url )` resolves against t
34
34
-`npm test` — run the vitest suite once.
35
35
-`npm run lint` — oxlint.
36
36
-`npm run typecheck` — `tsc --noEmit` over `src`**and**`tests`, via `tsconfig.lint.json`. `npm run build` only typechecks `src`, so this is the check that covers test code.
37
+
-`npm run check:mcp` — MCPJam doctor + MCP protocol conformance against the built server (build first). CI runs it on every PR and also diffs the tool surface against the PR base, failing on breaking changes.
37
38
-`npm run fmt` / `npm run fmt:check` — oxfmt (write / dry-run).
38
39
-`npm run preflight` — full gate (install, lint, typecheck, fmt check, validate `server.json`, test, build, bundle). Run before a release.
39
40
- Git hooks: `lefthook` auto-installs on `npm install`. Pre-commit runs `oxfmt` (auto-fix on staged files) + `oxlint`. Pre-push runs `npm run typecheck` + the test suite. Bypass with `--no-verify`.
Copy file name to clipboardExpand all lines: docs/testing.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,16 @@ Like the MCP Inspector, but with a built-in MCP client that can drive the server
70
70
npm run mcpjam
71
71
```
72
72
73
+
## MCPJam CLI checks
74
+
75
+
Token-free structural checks against the built server: a stdio doctor sweep plus an MCP protocol conformance run against the HTTP transport. Build first with `npm run build`, then:
76
+
77
+
```sh
78
+
npm run check:mcp
79
+
```
80
+
81
+
Both use the minimal wiki configuration in `scripts/mcp-checks.config.json`, so results do not depend on your local `config.json`. The conformance run binds `127.0.0.1:3117`; set `PORT` to use a different port. CI runs the same script on every pull request, and additionally diffs the tool surface against the PR base — a removed or renamed tool fails the job, while description changes only show up in the report.
82
+
73
83
## MCP Inspector CLI (integration tests)
74
84
75
85
The [MCP Inspector CLI](https://github.com/modelcontextprotocol/inspector) exercises tools against a real wiki. Build first with `npm run build`, then:
0 commit comments