Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: modelcontextprotocol/inspector
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.16.6
Choose a base ref
...
head repository: modelcontextprotocol/inspector
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.16.7
Choose a head ref
  • 17 commits
  • 22 files changed
  • 9 contributors

Commits on Sep 4, 2025

  1. Configuration menu
    Copy the full SHA
    801ae28 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #781 from ln-12/clear_history_and_notification_panel

    feat: add clear buttons for request history and server notifications
    cliffhall authored Sep 4, 2025
    Configuration menu
    Copy the full SHA
    7792125 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2025

  1. Configuration menu
    Copy the full SHA
    71583ca View commit details
    Browse the repository at this point in the history
  2. Merge pull request #786 from max-stytch/max/fix-url-serialization

    fix: correct authState.authorizationUrl type to URL
    cliffhall authored Sep 6, 2025
    Configuration menu
    Copy the full SHA
    ec84e21 View commit details
    Browse the repository at this point in the history
  3. 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.
    cliffhall committed Sep 6, 2025
    Configuration menu
    Copy the full SHA
    1896f20 View commit details
    Browse the repository at this point in the history
  4. A new updateHeadersInPlace function *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.
    cliffhall committed Sep 6, 2025
    Configuration menu
    Copy the full SHA
    2f420c4 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2025

  1. Configuration menu
    Copy the full SHA
    d728d54 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0caaeed View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1207834 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2025

  1. Merge pull request #787 from cliffhall/dynamic-headers

    Implement dynamic header injection for proxy transports.
    olaservo authored Sep 8, 2025
    Configuration menu
    Copy the full SHA
    9e4bbab View commit details
    Browse the repository at this point in the history
  2. Update issue templates

    dsp-ant authored Sep 8, 2025
    Configuration menu
    Copy the full SHA
    b476ece View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2025

  1. Merge pull request #789 from wei/fix-copy-toast

    fix: toast message when copying server entry for a Streamable HTTP transport URL
    olaservo authored Sep 10, 2025
    Configuration menu
    Copy the full SHA
    2f2dd4c View commit details
    Browse the repository at this point in the history
  2. fix prettier

    dsp-ant committed Sep 10, 2025
    4 Configuration menu
    Copy the full SHA
    f1c78fd View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2025

  1. Configuration menu
    Copy the full SHA
    ca26a4f View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2025

  1. Merge pull request #798 from cliffhall/bump-ts-sdk-to-1.18.0

    Bump TS SDK to 1.18.0
    olaservo authored Sep 12, 2025
    Configuration menu
    Copy the full SHA
    cbdc504 View commit details
    Browse the repository at this point in the history
  2. chore: bump version to 0.16.7

    Co-authored-by: Ola Hungerford <[email protected]>
    claude[bot] and olaservo committed Sep 12, 2025
    Configuration menu
    Copy the full SHA
    1c5f5e4 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #799 from modelcontextprotocol/claude/issue-792-20…

    …250912-1429
    
    chore: bump version to 0.16.7
    cliffhall authored Sep 12, 2025
    Configuration menu
    Copy the full SHA
    2352993 View commit details
    Browse the repository at this point in the history
Loading