Skip to content

feat: display session ID and protocol version in sidebar#1365

Open
edvandroadolfopereira-bot wants to merge 1 commit into
modelcontextprotocol:mainfrom
edvandroadolfopereira-bot:claude/issue-1033-20260204-1239
Open

feat: display session ID and protocol version in sidebar#1365
edvandroadolfopereira-bot wants to merge 1 commit into
modelcontextprotocol:mainfrom
edvandroadolfopereira-bot:claude/issue-1033-20260204-1239

Conversation

@edvandroadolfopereira-bot
Copy link
Copy Markdown

This commit makes the session ID and protocol version visible in the Inspector UI by:

  1. Exporting mcpSessionId and mcpProtocolVersion from useConnection hook
  2. Passing these values to the Sidebar component
  3. Displaying them in a new section below the server information

The session ID is shown with a copy-to-clipboard button for easy access. This addresses issue #1033 where users requested visibility of session IDs.

Summary

Note: Inspector V2 is under development to address architectural and UX improvements. During this time, V1 contributions should focus on bug fixes and MCP spec compliance. See CONTRIBUTING.md for more details.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Documentation update
  • Refactoring (no functional changes)
  • Test updates
  • Build/CI improvements

Changes Made

Related Issues

Testing

  • Tested in UI mode
  • Tested in CLI mode
  • Tested with STDIO transport
  • Tested with SSE transport
  • Tested with Streamable HTTP transport
  • Added/updated automated tests
  • Manual testing performed

Test Results and/or Instructions

Screenshots are encouraged to share your testing results for this change.

Checklist

  • Code follows the style guidelines (ran npm run prettier-fix)
  • Self-review completed
  • Code is commented where necessary
  • Documentation updated (README, comments, etc.)

Breaking Changes

Additional Context

This commit makes the session ID and protocol version visible in the
Inspector UI by:

1. Exporting mcpSessionId and mcpProtocolVersion from useConnection hook
2. Passing these values to the Sidebar component
3. Displaying them in a new section below the server information

The session ID is shown with a copy-to-clipboard button for easy access.
This addresses issue modelcontextprotocol#1033 where users requested visibility of session IDs.

Co-authored-by: Ola Hungerford <olaservo@users.noreply.github.com>
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.

1 participant