-
Notifications
You must be signed in to change notification settings - Fork 1.3k
stderr output from MCP server confuses Roo's MCP server configuration view #1287
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
Comments
BTW, I have created a related issue in the modelcontextprotocol/specifications repo because, frankly, I believe this is a point of ambiguity in the MCP specs: modelcontextprotocol/modelcontextprotocol#177 |
Is there a reason why we need to have any output from the MCP showing up there anyways? I think that if it is running (green) then it should block all stderr output from the MCP server. |
I think the only time we want to see stderr is to actually debug the MCP server (or the interaction between Roo and the MCP server). We probably don't need to see the stderr when the MCP server is working correctly. Maybe add a debug option to reveal the stderr output? |
@ksze Can you make a PR for this? |
PLAN: Block MCP stderr output from from showing up in Roo if the MCP is started. |
@hannesrudolph Actually I thought of outputting any stderr in a dedicated tab right next to the "tools" and "resources" tabs, if the MCP server is connected. However, I can't figure out how the "tools" VSCodePanelTab is associated with the "tools-view" VSCodePanelView in the ServerRow of webview-ui/src/components/mcp/McpView.tsx As in, how does the renderer know that the "tools-view" VSCodePanelView needs to be displayed when I click on the "tools" VSCodePanelTab? |
I think that is a good possible future enhancement (separate Pull Request) but I think this bug needs to first be fixed with a more simple approach. |
…places for the correct display of an MCP server row
I summited #2722 though it might be beyond my ability to actually get it checked in due to limited knowledge, but yeah, if you give stderror and stdout a place to be displayed, it works much better. |
#1441) Co-authored-by: cte <cestreich@gmail.com>
Which version of the app are you using?
v3.7.8
Which API Provider are you using?
OpenRouter
Which Model are you using?
Claude 3.7 Sonnet
What happened?
When an MCP server spits output on stderr, Roo gets confused. It will show both signs that the MCP server is working and signs that the MCP server is not working. Below is an example involving the
kagi
MCP server. Numbers between parenthesis correspond to marked spots in red in the screenshots.Signs that the MCP server is not working:
tavily-mcp
MCP server (2).Signs that the MCP server is working:
Steps to reproduce
Relevant API REQUEST output
Additional context
Note that in the API request output, you see the kagi MCP server replying with "Error: 401 Client Error: Unauthorized". That's only because I'm out of search credit on the Kagi API platform. As far as the MCP server itself is concerned, it's actually up and running.
What I wish to see changed
Because the MCP server is actually up and running, and Roo can actually connect to it, Roo should still show the panel that lists the tools and resources of the MCP server. Also, there is no need to display the "Retry Connection" button because, like I said, Roo is actually connected to the MCP server. Regarding the question of whether or not to still display the stderr output in the MCP server configuration view, that's debatable and I have no preference.
The text was updated successfully, but these errors were encountered: