feat: add get_info method to retrieve MCP server metadata#430
Open
Kirill Ustinov (umbilnm) wants to merge 1 commit intolangchain-ai:mainfrom
Open
feat: add get_info method to retrieve MCP server metadata#430Kirill Ustinov (umbilnm) wants to merge 1 commit intolangchain-ai:mainfrom
Kirill Ustinov (umbilnm) wants to merge 1 commit intolangchain-ai:mainfrom
Conversation
Add `load_mcp_server_info` helper and `MultiServerMCPClient.get_info()` to expose the MCP `InitializeResult` (instructions, capabilities, server implementation details) for all connected servers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #405
Summary
load_mcp_server_info()helper that retrievesInitializeResultfrom an MCP server (via session or connection config)MultiServerMCPClient.get_info()method that returns server metadata (instructions, capabilities, implementation details) for all connected servers in parallelTest plan
test_load_mcp_server_info_with_connection— retrieve info via connection configtest_load_mcp_server_info_no_instructions— server without instructionstest_load_mcp_server_info_with_session— retrieve info via mock sessiontest_load_mcp_server_info_raises_without_args— error when no args providedtest_client_get_server_info—get_info()returns info for all servers🤖 Generated with Claude Code