Skip to content

Upgrade vulnerable dependencies, add smoke test and CI - #8

Merged
coding-parrot merged 2 commits into
mainfrom
IE-0000/security-deps
Dec 4, 2026
Merged

coding-parrot merged 2 commits into
mainfrom
IE-0000/security-deps

Conversation

@coding-parrot

Copy link
Copy Markdown
Contributor

What was wrong

This server is cloned and run locally by users, and its two lockfiles pinned outdated dependencies with 36 open Dependabot alerts (17 high or critical): @modelcontextprotocol/sdk, zod, and the SDK's transitive body-parser, proxy-addr, qs, path-to-regexp and ajv. The repo also had no tests and no CI, so nothing checked that a pull request still builds.

What changed

  • @modelcontextprotocol/sdk ^1.9.0 -> ^1.32.0 (resolves 1.32.2) and zod ^3.24.2 -> ^4.6.6 (resolves 4.6.7). No patched zod 3.x exists for the open advisory, and the SDK supports zod 4.
  • package-lock.json and pnpm-lock.yaml regenerated so the transitive packages resolve to patched releases (body-parser 2.4.0, proxy-addr 2.0.8, qs 6.17.1, path-to-regexp 8.4.2, ajv 8.x, cross-spawn 7.1.2). Both lockfiles now resolve the same SDK version.
  • src/index.ts: removed the capabilities key from the server info object. The newer SDK types reject it, and it was never used as capabilities there (the tools capability is registered by server.tool(...)). No tool, name or schema changed.
  • test/smoke.test.mjs + npm test: starts the built server over stdio with the SDK client, checks that the 10 tools are listed with their input schemas, calls the in-memory reminder tools, and checks that a wrong argument type is rejected. It makes no network calls.
  • .github/workflows/ci.yml: runs npm ci, npm run build, npm test on pull_request, with permissions: contents: read, actions pinned by commit SHA and persist-credentials: false.

How it was tested

  • The smoke test was written first and passed on the old dependencies, then again after the upgrade (2/2 pass).
  • npm ci, tsc (npm run build-win on Windows), npm test: pass on Node 24.
  • npm audit: 0 vulnerabilities (was 9). pnpm audit (pnpm 10.6.2): no known vulnerabilities.
  • Started node build/index.js by hand: prints the usual "running on stdio" line.
  • The tools that call interviewready.io (courses, blogs, resources) were compiled and listed but not invoked in the test.

Rollout notes

  • Nothing is deployed. Existing users get the fix with git pull, pnpm install, pnpm run build.
  • The Dependabot alerts should close on their own once this is on main.
  • This is the first workflow in the repo; it needs no secrets.

🤖 Generated with Claude Code

coding-parrot and others added 2 commits December 4, 2026 12:56
Bump @modelcontextprotocol/sdk to ^1.32.0 and zod to ^4.6.6 and refresh
both lockfiles so every transitive dependency flagged by Dependabot
(body-parser, proxy-addr, qs, path-to-regexp, ajv, cross-spawn) resolves
to a patched release. npm audit and pnpm audit report 0 vulnerabilities.

The newer SDK types reject the stray 'capabilities' key in the server
info object; it was never read as capabilities (the tools capability is
registered by McpServer.tool), so it is removed.

Add a node:test smoke test that starts the built server over stdio,
lists the 10 tools and exercises the in-memory reminder tools.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Read-only token, actions pinned by commit SHA, no credentials persisted.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@coding-parrot
coding-parrot merged commit 58f102e into main Dec 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant