e30e75b5d4
Changesets / Create Version PR (push) Has been cancelled
Deploy Shadcn Registry / Deploy Production (push) Has been cancelled
Template Metrics / LOC + Bundle Size (push) Has been cancelled
Code Quality / Oxlint + Oxfmt (push) Has been cancelled
Code Quality / Template Sync (push) Has been cancelled
Code Quality / Build Changed Packages (push) Has been cancelled
Code Quality / Test Changed Packages (push) Has been cancelled
Deploy Expo Example / Deploy Production (push) Has been cancelled
Deploy Ink Example / Deploy Production (push) Has been cancelled
Python Tests / pytest (assistant-stream, 3.10) (push) Has been cancelled
Python Tests / pytest (assistant-stream, 3.12) (push) Has been cancelled
Python Tests / pytest (assistant-ui-sync-server-api, 3.10) (push) Has been cancelled
Python Tests / pytest (assistant-ui-sync-server-api, 3.12) (push) Has been cancelled
29 lines
901 B
Markdown
29 lines
901 B
Markdown
# 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
|
|
|
|
```sh
|
|
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.
|