Skip to content

chore(deps): drop @hono/node-server resolution so it resolves to 2.x - #3772

Merged
brandon-pereira merged 1 commit into
mainfrom
brandon/brandon-hono-fix
Nov 23, 2026
Merged

brandon-pereira merged 1 commit into
mainfrom
brandon/brandon-hono-fix

Conversation

@brandon-pereira

@brandon-pereira brandon-pereira commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Clears GHSA-rmxm-3fg6-px4f (@hono/node-server < 2.1.3), which Grype flags on the app image. @hono/node-server now resolves to 2.1.8 instead of 1.19.18.

The MCP SDK wasn't holding it back. @modelcontextprotocol/sdk@1.32.2 already accepts ^1.19.9 || ^2.0.5, but the root resolution added in #3679 ("@hono/node-server": "^1.19.13") kept it on 1.x. This PR removes that resolution.

The MCP server is the only consumer, through the SDK's StreamableHTTPServerTransport, and we never import the package directly. v2 has two breaking changes: it drops Node 18 (we run 22) and removes the Vercel adapter (we don't use it). The getRequestListener API the SDK calls is unchanged. v2 sets "type": "module" but still ships a CommonJS build, and the SDK's CommonJS require() loads it on Node 22.

No changeset, following #3679 (root manifest and lockfile only).

Partially references #3491

How to reproduce

Starting point: yarn dev (needs the API).

On main:

  1. grep -A2 '^"@hono/node-server' yarn.lock shows 1.19.18, which Grype flags as GHSA-rmxm-3fg6-px4f.

On this branch:

  1. The same grep shows 2.1.8.
  2. Register a user and copy the access key from Team settings.
  3. Connect an MCP client to http://localhost:<api-port>/mcp with Authorization: Bearer <key>. Initialize, tools/list, clickstack_list_sources and clickstack_search all succeed.

Testing

  • Ran a real MCP SDK client against yarn dev on Node 22.
    • Unauthenticated POST returns 401, and GET returns 405.
    • The client connected and got all 33 tools.
    • clickstack_list_sources and clickstack_search returned real ClickHouse data with no errors.
  • Ran a standalone SDK client/server round-trip over Express with the stateless transport mcp/app.ts uses, including a 1 MB streamed tool response.
  • src/mcp/__tests__/app.test.ts passes and the API type check is clean.

References

The root resolution pinned @hono/node-server to ^1.19.13, holding it on
1.19.18 (GHSA-rmxm-3fg6-px4f). The MCP SDK already accepts ^2.0.5, so
removing the pin lets it resolve to 2.1.8.
@brandon-pereira
brandon-pereira requested a review from a team as a code owner November 23, 2026 17:19
@changeset-bot

changeset-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: fdd5c85

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated
hyperdx-oss Ignored Ignored Nov 23, 2026 5:19pm UTC
hyperdx-storybook Ignored Ignored Nov 23, 2026 5:19pm UTC

Request Review

@github-actions github-actions Bot added the review/tier-2 Low risk — AI review + quick human skim label Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔵 Tier 2 — Low Risk

Small, isolated change with no API route or data model modifications.

Why this tier:

  • Standard feature/fix — introduces new logic or modifies core functionality

Review process: AI review + quick human skim (target: 5–15 min). Reviewer validates AI assessment and checks for domain-specific concerns.
SLA: Resolve within 4 business hours.

Stats
  • Production files changed: 1
  • Production lines changed: 1
  • Branch: brandon/brandon-hono-fix
  • Author: brandon-pereira

To override this classification, remove the review/tier-2 label and apply a different review/tier-* label. Manual overrides are preserved on subsequent pushes.

@github-actions

Copy link
Copy Markdown
Contributor

PR Review

✅ No issues found.

@github-actions

Copy link
Copy Markdown
Contributor

Duplicate code analysis

No new duplicate code introduced by this PR.


jscpd compared this branch against origin/main
across app, api and common-utils. Only new clones are listed; the codebase
currently holds 107 in total (1.12%).
Run yarn dupes locally to reproduce, or yarn dupes:all for the full picture.

@github-actions

Copy link
Copy Markdown
Contributor

Deep Review

Scope: dependency-only change — removes the root @hono/node-server Yarn resolution in package.json so the transitive dependency resolves to 2.1.8 (from 1.19.18), clearing GHSA-rmxm-3fg6-px4f. yarn.lock updated to match.

Verification confirmed the change is safe on the dimensions that matter: @modelcontextprotocol/sdk@1.32.2 is the only consumer and its range ^1.19.9 || ^2.0.5 accepts 2.1.8; the package is never imported directly; hono@^4.11.4 satisfies node-server 2.1.8's hono: ^4 || ^5.0.0-0 peer; Node 22 is enforced across Dockerfiles, .nvmrc, and packages/api engines, so v2's Node 18 drop is moot; and 2.1.8 is above the 2.1.3 patch boundary.

🟡 P2 -- recommended

  • packages/api/src/mcp/app.ts:41 -- the StreamableHTTPServerTransport constructor is the only path that loads @hono/node-server, yet it runs under no automated test: app.test.ts covers only the GET/DELETE 405 paths and the integration tests use InMemoryTransport, so the major-version bump's runtime load-and-serve surface is unverified in CI.
    • Fix: add a test that issues a POST to the /mcp router so the transport is constructed and the v2 node-server request path executes.
🔵 P3 nitpicks (1)
  • package.json:93 -- the dependency bump ships in the app image with no changeset, so the security fix produces no version bump or release-note entry (changeset-bot flagged this; the PR follows the chore(deps): add resolution floors for advisories in transitive deps #3679 precedent of a manifest/lockfile-only change).
    • Fix: add a patch changeset documenting the @hono/node-server security update, or confirm the no-bump precedent is intended.

Reviewers (6): correctness, security, testing, maintainability, reliability, previous-comments.

Testing gaps: No test exercises the StreamableHTTPServerTransport HTTP path (the sole @hono/node-server consumer) under the new major version; the happy path was validated manually by the author but not in CI.

No finding blocks merge automatically. A maintainer will expect P0/P1 findings in code this PR changes to be fixed; P2/P3 are your call -- fix or reply. Never fix findings about surrounding code here; reply instead. Do not widen the PR. How to respond

@github-actions

Copy link
Copy Markdown
Contributor

E2E Test Results

✅ All tests passed • 473 passed • 1 skipped • 1068s

Status Count
✅ Passed 473
❌ Failed 0
⚠️ Flaky 12
⏭️ Skipped 1

Tests ran across 4 shards in parallel.

View full report →

@brandon-pereira
brandon-pereira merged commit 6a3151d into main Nov 23, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review/tier-2 Low risk — AI review + quick human skim

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants