-
Notifications
You must be signed in to change notification settings - Fork 59
fix(mcp): Fix the issue where fetching a single server configuration … #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…in the MCP tool also retrieves all tools
|
@xerrors Appreciate the fix! Please add your test case to the e2e DeepWiki test suite and ensure everything is ready by running |
|
I'm sorry, but I found that with the current modification logic, many unit tests cannot pass. There might be many breaking changes. I think I'll just close this PR. In my practice, since it's not possible to distinguish tools by Server name, I didn't adopt the singleton pattern for the client. |
|
@xerrors Thanks anyway, I'll handle the fixes and tests later. |
|
@claude plz review this fix |
|
Claude finished @webup's task —— View job Reviewing MCP Server Filtering FixTodo List:
Analysis Summary:I've analyzed the MCP server filtering issue. The problem is clear from the test script provided in the PR description. 🔍 Root Cause AnalysisCurrent Issue in
Expected vs Actual Behavior: # Expected from the test script:
all_tools = await get_all_mcp_tools() # Should get 6 tools total
deepwiki_tools = await get_mcp_tools("deepwiki") # Should get 3 tools from deepwiki only
new_server_tools = await get_mcp_tools("new_server") # Should get 3 tools from new_server only
# Current behavior: both get_mcp_tools calls return ALL 6 tools instead of filtered tools
|
|
@xerrors I've made the fix in 0.1.2 version, take a look. :) |
|
@webup Thanks!!! |
The original code logic did not implement the filtering process after obtaining a single Server tool. The filtered Server Name should be passed to MultiServerMCPClient for screening.
Text scripts:
Result: