add per-agent MCP config and redesign topology node cards#42
Merged
Conversation
- Introduce MCP server (apps/server/src/mcp.ts) with scoped agent sessions - Accept registration token as MCP Bearer auth so each agent gets its own scoped connection without needing the admin password - Remove global MCP button from TopBar; replace with a per-agent MCP button on each agent card that opens a centered portal modal with the ready-to-paste config (registration token + x-amesh-agent-id already filled in) - Redesign NodeCard: node is a container with a header; each agent is an inset card with always-visible Chat and MCP action buttons - Replace the ArrowRight connect button with the ReactFlow edge handles at the left/right edges of each agent card as the connection affordance - MCP modal renders via createPortal to document.body, centered over the canvas Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…back The old test looked for a global MCP button in the TopBar (removed). Update it to use the narrow layout fallback (which ReactFlow tests use) and test the per-agent MCP button on the agent card instead. Add the MCP button to NarrowFallback so the feature is reachable in both the topology canvas and compact mobile view. Co-Authored-By: Claude Sonnet 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.
Summary
document.body) with a ready-to-paste JSON config containing the registration token andx-amesh-agent-idalready filled in, scoping the MCP connection to that specific agent.registration_tokenauth mode), so agents don't need the admin password to connect.apps/server/src/mcp.ts): scoped MCP sessions, session management, agent visibility rules.Test plan
Authorization: Bearer <token>andx-amesh-agent-id: <agentId>🤖 Generated with Claude Code