Skip to content

Add examples/run-all.ts script - #97

Merged
antonpk1 merged 2 commits into
modelcontextprotocol:mainfrom
jonathanhefner:running-all-examples
Dec 8, 2025
Merged

Add examples/run-all.ts script#97
antonpk1 merged 2 commits into
modelcontextprotocol:mainfrom
jonathanhefner:running-all-examples

Conversation

@jonathanhefner

Copy link
Copy Markdown
Member

Follow-up to #95. This adds an examples/run-all.ts script to discover and run all examples instead of hard-coding the examples in basic-host.

@pkg-pr-new

pkg-pr-new Bot commented Dec 8, 2025

Copy link
Copy Markdown

Open in StackBlitz

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

commit: d11b656

jonathanhefner and others added 2 commits December 8, 2025 16:34
Replace hardcoded port assignments and npm scripts with run-all.ts that:
- Auto-discovers example directories and assigns ports
- Passes server URLs to basic-host via SERVERS env var
- Supports start, dev, and build commands

Update basic-host to fetch server list from /api/servers endpoint
and display server names from MCP server metadata.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Extract server dropdown into ServerSelect component and simplify
ToolCallInfoPanel to read server name from toolCallInfo.serverInfo.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

@antonpk1 antonpk1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very cool!

@antonpk1
antonpk1 merged commit 4736621 into modelcontextprotocol:main Dec 8, 2025
3 checks passed
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.

2 participants