Skip to content

docs(examples): Reconnect buttons for MCP servers - #2783

Merged
mattzcarey merged 2 commits into
mainfrom
docs/mcp-examples-reconnect
Nov 5, 2026
Merged

mattzcarey merged 2 commits into
mainfrom
docs/mcp-examples-reconnect

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Adds a Reconnect button for MCP servers to the mcp-client, ai-chat and codemode examples. Each one gets a reconnectServer callable that calls reconnectMcpServer(id), and a Reconnect button on failed servers that opens the new link if one comes back. The playground's OAuth demo now describes the server states as they behave after #2782.

After #2782, a failed MCP server stays failed until something calls reconnectMcpServer(). The examples should show the button that does it.

Stacked on #2782. pnpm run check passes, including the typecheck of every example. I haven't clicked through the UIs in a browser.


Devin Review

@changeset-bot

changeset-bot Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 478902c

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

devin-ai-integration[bot]

This comment was marked as resolved.

@pkg-pr-new

pkg-pr-new Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

agents

npm i https://pkg.pr.new/agents@2783

@cloudflare/ai-chat

npm i https://pkg.pr.new/@cloudflare/ai-chat@2783

@cloudflare/codemode

npm i https://pkg.pr.new/@cloudflare/codemode@2783

hono-agents

npm i https://pkg.pr.new/hono-agents@2783

@cloudflare/shell

npm i https://pkg.pr.new/@cloudflare/shell@2783

@cloudflare/think

npm i https://pkg.pr.new/@cloudflare/think@2783

@cloudflare/voice

npm i https://pkg.pr.new/@cloudflare/voice@2783

@cloudflare/worker-bundler

npm i https://pkg.pr.new/@cloudflare/worker-bundler@2783

commit: 478902c

@agent-think

agent-think Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (d6b4441f → 478902cb, workflow run)

@mattzcarey
mattzcarey force-pushed the docs/mcp-examples-reconnect branch 5 times, most recently from 32715cf to dd73ca3 Compare November 5, 2026 16:51
Base automatically changed from fix/mcp-client-reauthorization to main November 5, 2026 18:20
The mcp-client, ai-chat and codemode examples get a reconnectServer
callable and a Reconnect button on failed servers. The playground OAuth
demo describes the states as they now behave.
@mattzcarey
mattzcarey force-pushed the docs/mcp-examples-reconnect branch from dd73ca3 to 478902c Compare November 5, 2026 18:21
@mattzcarey
mattzcarey merged commit 6b638c4 into main Nov 5, 2026
16 checks passed
@mattzcarey
mattzcarey deleted the docs/mcp-examples-reconnect branch November 5, 2026 18:37
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.

1 participant