Repository navigation
Conversation
An AgentProcess connects its MCP servers itself and hands the agent ready-made tools, so the agent has no _mcp_multi and describe_agent found no servers: the MCP tab stayed empty. describe_agent now also collects the MCP clients behind the agent's tools. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Open
This branch has not been deployed
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.
Description
The MCP tab in
promptise run --tuistayed empty for agents started by the runtime.An
AgentProcessconnects its MCP servers itself and hands the agent ready-made MCP tools. The agent then has no_mcp_multi, sodescribe_agentfound no servers, and the tools showed no owning server.describe_agentnow also collects the MCP clients behind the agent's tools (each_PromptiseMCPToolknows its client through_multi), de-duplicated, next to the onebuild_agent()connects.Type of Change
Changes Made
src/promptise/run/harness.py:describe_agentreads the servers and tool owners fromagent._mcp_multiand from each tool's_multi.tests/test_run_core.py: regression test with an agent that has only ready-made MCP tools. It fails without the fix.Testing
tests/test_run_core.py,tests/test_run_tui_state.py,tests/test_run_tui.py(131 passed)promptise run --tuiwith several agents on HTTP MCP servers, the MCP tab now lists each agent's servers and tool countsruff checkandruff format --checkare clean.🤖 Generated with Claude Code