Skip to content

fix(server): include request URL in RequestInfo#1656

Open
theamodhshetty wants to merge 1 commit intomodelcontextprotocol:mainfrom
theamodhshetty:codex/add-request-url-to-request-info
Open

fix(server): include request URL in RequestInfo#1656
theamodhshetty wants to merge 1 commit intomodelcontextprotocol:mainfrom
theamodhshetty:codex/add-request-url-to-request-info

Conversation

@theamodhshetty
Copy link

Summary

  • add the full request URL to RequestInfo
  • populate it when building HTTP request context for server handlers
  • extend the request-info regression test to verify query parameters are preserved

Fixes #1530.

Testing

  • pnpm --filter @modelcontextprotocol/node test -- --run -t "should pass request info to tool callback"
  • pnpm --filter @modelcontextprotocol/core typecheck && pnpm --filter @modelcontextprotocol/server typecheck && pnpm --filter @modelcontextprotocol/node typecheck
  • pnpm --filter @modelcontextprotocol/core lint && pnpm --filter @modelcontextprotocol/server lint && pnpm --filter @modelcontextprotocol/node lint

@theamodhshetty theamodhshetty requested a review from a team as a code owner March 10, 2026 16:59
@changeset-bot
Copy link

changeset-bot bot commented Mar 10, 2026

⚠️ No Changeset found

Latest commit: 448258a

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 10, 2026

Open in StackBlitz

@modelcontextprotocol/client

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/client@1656

@modelcontextprotocol/server

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/server@1656

@modelcontextprotocol/express

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/express@1656

@modelcontextprotocol/hono

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/hono@1656

@modelcontextprotocol/node

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/node@1656

commit: 433cf8b

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.

Missing url property to RequestInfo interface

1 participant