Skip to content

Conversation

@ochafik
Copy link
Collaborator

@ochafik ochafik commented Dec 8, 2025

Summary

  • Add server selector dropdown to basic-host example, allowing switching between MCP servers
  • Run all example servers concurrently on ports 3101-3107 with npm run examples:start
  • Server selector is integrated into the tool call panel (same component)
  • Tool call results persist across server switches (connection caching)
  • Display server name with tool name in results (ServerName:ToolName)
  • Add proper error handling for server startup (EADDRINUSE)
CleanShot 2025-12-08 at 17 56 38@2x

Test plan

  • Run npm run examples:start - all 8 servers should start (host on 8080/8081, MCP servers on 3101-3107)
  • Open http://localhost:8080
  • Select "Basic React" server, call get-time tool
  • Switch to "Budget Allocator" server, call a tool - previous result should remain visible
  • Switch back to "Basic React" - should reconnect instantly (cached)
  • Verify tool result headers show ServerName:ToolName format

🤖 Generated with Claude Code

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 8, 2025

Open in StackBlitz

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/ext-apps@95

commit: a01dd0e

ochafik and others added 2 commits December 8, 2025 18:01
- Add ServerSelector component to switch between MCP servers
- Run all example servers concurrently on ports 3101-3107
- Update examples:start to launch all servers with assigned ports

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Server selector now in same component as tool selector
- Tool call results persist across server switches
- Connection caching avoids reconnects when switching servers
- Display server name with tool name in results (ServerName:ToolName)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ochafik ochafik force-pushed the ochafik/server-selector branch from 649f814 to a01dd0e Compare December 8, 2025 17:01
@ochafik ochafik merged commit f6ebefe into main Dec 8, 2025
8 checks passed
@ochafik ochafik deleted the ochafik/server-selector branch December 13, 2025 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants