-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Comparing changes
Open a pull request
base repository: modelcontextprotocol/inspector
base: 0.16.6
head repository: modelcontextprotocol/inspector
compare: 0.16.7
- 17 commits
- 22 files changed
- 9 contributors
Commits on Sep 4, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 801ae28 - Browse repository at this point
Copy the full SHA 801ae28View commit details -
Merge pull request #781 from ln-12/clear_history_and_notification_panel
feat: add clear buttons for request history and server notifications
Configuration menu - View commit details
-
Copy full SHA for 7792125 - Browse repository at this point
Copy the full SHA 7792125View commit details
Commits on Sep 6, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 71583ca - Browse repository at this point
Copy the full SHA 71583caView commit details -
Merge pull request #786 from max-stytch/max/fix-url-serialization
fix: correct authState.authorizationUrl type to URL
Configuration menu - View commit details
-
Copy full SHA for ec84e21 - Browse repository at this point
Copy the full SHA ec84e21View commit details -
Implement dynamic header injection for proxy transports. Fixes #679
Adds a mechanism to dynamically inject and update HTTP headers for ongoing proxy sessions, resolving an issue where headers introduced after the initial handshake (e.g, Mcp-Protocol-Version) were not being forwarded to the server. The core problem was that the `transportToServer` instance was created once with a static set of headers. This meant that critical, dynamically added headers like `mcp-protocol-version` and `last-event-id` were being dropped in subsequent requests. The solution implemented here is to wrap the `fetch` function used by the HTTP-based transports (`StreamableHttp` and `SSE`). This custom wrapper merges the latest headers from the client with the headers of each outgoing request from the proxy, ensuring all headers are preserved for the lifetime of the session. Changes: In `src/index.ts`: - Added `sessionHeaderHolders`, a `Map` to store the most recent set of headers for each active session ID. - Added `createCustomFetch`, a new helper function that creates a `fetch` wrapper. This wrapper merges the session headers from `sessionHeaderHolders` with the request-specific headers from the SDK (like `Content-Type`) - In `createTransport`, use `createCustomFetch` for both the `StreamableHTTPClientTransport` and `SSEClientTransport`. This injects the dynamic header logic into the transport layer. - In `/mcp`, `/sse`, `/message` route handlers, added logic to update the `sessionHeaderHolders` map with the latest headers from every incoming client request. - Added cleanup logic to the `onsessionclosed` callback and the `/mcp` DELETE handler to remove session data from `sessionHeaderHolders`. - In `getHttpHeaders`, more robust handling of `string[]` and `undefined` values from `req.headers`, satisfying the `"strict": true` TypeScript configuration.
Configuration menu - View commit details
-
Copy full SHA for 1896f20 - Browse repository at this point
Copy the full SHA 1896f20View commit details -
A new
updateHeadersInPlacefunction *mutates* the original header ……object instead of replacing it. This ensures that transports holding a static reference, like `SSEClientTransport`, always see the latest headers. * In `src/server/index.ts`, - Added `updateHeadersInPlace` helper function to solve the stale header reference issue in `SSEClientTransport`. It mutates the header object in-place, ensuring the transport sees all updates, while carefully preserving the original `Accept` header required by the transport. - in `/mcp GET`, `/mcp POST`, and `/message POST`, use `updateHeadersInPlace` to replace current headers with new headers, retaining the Accept header.
Configuration menu - View commit details
-
Copy full SHA for 2f420c4 - Browse repository at this point
Copy the full SHA 2f420c4View commit details
Commits on Sep 7, 2025
-
Configuration menu - View commit details
-
Copy full SHA for d728d54 - Browse repository at this point
Copy the full SHA d728d54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0caaeed - Browse repository at this point
Copy the full SHA 0caaeedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1207834 - Browse repository at this point
Copy the full SHA 1207834View commit details
Commits on Sep 8, 2025
-
Merge pull request #787 from cliffhall/dynamic-headers
Implement dynamic header injection for proxy transports.
Configuration menu - View commit details
-
Copy full SHA for 9e4bbab - Browse repository at this point
Copy the full SHA 9e4bbabView commit details -
Configuration menu - View commit details
-
Copy full SHA for b476ece - Browse repository at this point
Copy the full SHA b476eceView commit details
Commits on Sep 10, 2025
-
Merge pull request #789 from wei/fix-copy-toast
fix: toast message when copying server entry for a Streamable HTTP transport URL
Configuration menu - View commit details
-
Copy full SHA for 2f2dd4c - Browse repository at this point
Copy the full SHA 2f2dd4cView commit details -
4
Configuration menu - View commit details
-
Copy full SHA for f1c78fd - Browse repository at this point
Copy the full SHA f1c78fdView commit details
Commits on Sep 11, 2025
-
Configuration menu - View commit details
-
Copy full SHA for ca26a4f - Browse repository at this point
Copy the full SHA ca26a4fView commit details
Commits on Sep 12, 2025
-
Merge pull request #798 from cliffhall/bump-ts-sdk-to-1.18.0
Bump TS SDK to 1.18.0
Configuration menu - View commit details
-
Copy full SHA for cbdc504 - Browse repository at this point
Copy the full SHA cbdc504View commit details -
Co-authored-by: Ola Hungerford <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1c5f5e4 - Browse repository at this point
Copy the full SHA 1c5f5e4View commit details -
Merge pull request #799 from modelcontextprotocol/claude/issue-792-20…
…250912-1429 chore: bump version to 0.16.7
Configuration menu - View commit details
-
Copy full SHA for 2352993 - Browse repository at this point
Copy the full SHA 2352993View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 0.16.6...0.16.7