Exposes additional server information #41
+67
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Captures server information which is available immediately after the connection state reaches 'ready', giving developers full access to everything the MCP server provides during initialization.
New Fields Available
serverInfoContains server metadata from the initialize response:
name: The name of the MCP serverversion: The version of the MCP serverserverCapabilitiesContains the capabilities advertised by the server during initialization. This is a flexible object that can contain various capability flags and configuration options.
protocolVersionThe negotiated MCP protocol version between client and server.
Motivation and Context
Server Identification: Display server name/version in UI
Feature Detection: Conditionally enable features based on server capabilities
Protocol Compatibility: Check negotiated protocol version
Enhanced Debugging: Better understanding of server configuration
Dynamic UX: Adapt interface based on what the server supports
Types of changes
Checklist
Usage Example