Skip to content

docs(client): add multi-server chatbot example#2021

Open
EfeDurmaz16 wants to merge 1 commit intomodelcontextprotocol:mainfrom
EfeDurmaz16:efe/multi-server-chatbot-example
Open

docs(client): add multi-server chatbot example#2021
EfeDurmaz16 wants to merge 1 commit intomodelcontextprotocol:mainfrom
EfeDurmaz16:efe/multi-server-chatbot-example

Conversation

@EfeDurmaz16
Copy link
Copy Markdown

Summary

  • add a runnable Streamable HTTP chatbot example that discovers tools from multiple MCP servers
  • document MCP_SERVER_URLS and OpenAI-compatible LLM configuration
  • expose tools with server-qualified names to avoid collisions

Fixes #740

Verification

  • pnpm --filter @modelcontextprotocol/examples-client run check
  • pre-push hook: Typecheck, Build, Lint

@EfeDurmaz16 EfeDurmaz16 requested a review from a team as a code owner May 5, 2026 23:22
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 5, 2026

⚠️ No Changeset found

Latest commit: e0e7943

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 5, 2026

Open in StackBlitz

@modelcontextprotocol/client

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

@modelcontextprotocol/server

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

@modelcontextprotocol/express

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

@modelcontextprotocol/fastify

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

@modelcontextprotocol/hono

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

@modelcontextprotocol/node

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

commit: e0e7943

@EfeDurmaz16
Copy link
Copy Markdown
Author

Noting the current failing test (20) check so it is not left ambiguous: the failure is in test/server/cloudflareWorkers.test.ts with Miniflare returning Error: Network connection lost from the Cloudflare Workers compatibility test. This PR only adds the multi-server chatbot example and docs entry, and the build/client/server conformance jobs are passing.

I can adjust the PR if maintainers see a connection, but from the failed log this looks unrelated to the example code.

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