Repository navigation
Upgrade vulnerable dependencies, add smoke test and CI - #8
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 transitivebody-parser,proxy-addr,qs,path-to-regexpandajv. 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) andzod^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.jsonandpnpm-lock.yamlregenerated 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 thecapabilitieskey from the server info object. The newer SDK types reject it, and it was never used as capabilities there (the tools capability is registered byserver.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: runsnpm ci,npm run build,npm testonpull_request, withpermissions: contents: read, actions pinned by commit SHA andpersist-credentials: false.How it was tested
npm ci,tsc(npm run build-winon Windows),npm test: pass on Node 24.npm audit: 0 vulnerabilities (was 9).pnpm audit(pnpm 10.6.2): no known vulnerabilities.node build/index.jsby hand: prints the usual "running on stdio" line.Rollout notes
git pull,pnpm install,pnpm run build.main.🤖 Generated with Claude Code