Files
wehub-resource-sync e30e75b5d4
Code Quality / Oxlint + Oxfmt (push) Waiting to run
Code Quality / Template Sync (push) Waiting to run
Code Quality / Build Changed Packages (push) Waiting to run
Code Quality / Test Changed Packages (push) Waiting to run
Deploy Expo Example / Deploy Production (push) Waiting to run
Deploy Ink Example / Deploy Production (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.12) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.12) (push) Waiting to run
Deploy Shadcn Registry / Deploy Production (push) Waiting to run
Template Metrics / LOC + Bundle Size (push) Waiting to run
Changesets / Create Version PR (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:40:13 +08:00
..

with-mcp

Minimal harness for @assistant-ui/react-mcp. Runs a local MCP server with OAuth (PKCE + DCR) under server/, and a Next.js client under app/ that uses the package's primitives.

Run

cd examples/with-mcp
pnpm dev

This starts both the server (http://localhost:8787) and the Next.js app (http://localhost:3010).

Open the app, click Connect on the "Local test MCP" connector, then Authorize ↗ to walk through the OAuth flow. After redirect the server transitions to connected and the echo / fingerprint tools appear.

Notes

  • The test server is in-memory: tokens, clients, and codes don't persist across restarts.
  • OAuth auto-approves (no consent screen). PKCE verification, DCR, and refresh-token rotation still run end-to-end.
  • This example is intentionally unstyled; primitives are unstyled. See app/app/McpUI.tsx for raw composition.