Skip to content

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

Open
mattzcarey wants to merge 2 commits into
fix/mcp-client-reauthorizationfrom
docs/mcp-examples-reconnect
Open

mattzcarey wants to merge 2 commits into
fix/mcp-client-reauthorizationfrom
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: 210abf5

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: 210abf5

@agent-think

agent-think Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (d1be0522 → 210abf52, workflow run)

@mattzcarey
mattzcarey force-pushed the docs/mcp-examples-reconnect branch from e2a4fb7 to d99a1e3 Compare October 30, 2026 16:29
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 d99a1e3 to 210abf5 Compare October 30, 2026 16:52
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