Skip to content

docs: add multi-server chatbot quickstart example#2103

Open
lil-goat wants to merge 1 commit into
modelcontextprotocol:mainfrom
lil-goat:fix/issue-740-can-we-have-a-chatbot-example-that-conne
Open

docs: add multi-server chatbot quickstart example#2103
lil-goat wants to merge 1 commit into
modelcontextprotocol:mainfrom
lil-goat:fix/issue-740-can-we-have-a-chatbot-example-that-conne

Conversation

@lil-goat
Copy link
Copy Markdown

Fixes #740

Summary

  • Adds a multi-server chatbot example for examples/client-quickstart that connects to multiple stdio MCP servers and exposes their tools as one combined Anthropic tool list.
  • Qualifies tool names with a stable server label, then routes tool calls back to the correct MCP client/server.
  • Adds focused helper tests for server label sanitization, deduping, and qualified tool definitions.
  • Documents how to run the multi-server variant from the client quickstart.

Validation

  • corepack pnpm install --frozen-lockfile --ignore-scripts --offline --reporter append-only
  • corepack pnpm --filter @modelcontextprotocol/examples-client-quickstart test
  • corepack pnpm --filter @modelcontextprotocol/examples-client-quickstart typecheck
  • corepack pnpm --filter @modelcontextprotocol/examples-client-quickstart build
  • git diff --cached --check

@lil-goat lil-goat requested a review from a team as a code owner May 16, 2026 01:22
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 16, 2026

⚠️ No Changeset found

Latest commit: 87e96d6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 16, 2026

Open in StackBlitz

@modelcontextprotocol/client

npm i https://pkg.pr.new/@modelcontextprotocol/client@2103

@modelcontextprotocol/server

npm i https://pkg.pr.new/@modelcontextprotocol/server@2103

@modelcontextprotocol/express

npm i https://pkg.pr.new/@modelcontextprotocol/express@2103

@modelcontextprotocol/fastify

npm i https://pkg.pr.new/@modelcontextprotocol/fastify@2103

@modelcontextprotocol/hono

npm i https://pkg.pr.new/@modelcontextprotocol/hono@2103

@modelcontextprotocol/node

npm i https://pkg.pr.new/@modelcontextprotocol/node@2103

commit: 87e96d6

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.

Can we have a chatbot example that connected to multiple remote servers

1 participant