claude.ai and ChatGPT connect to a remote MCP server by URL and expect the server to run the login: RFC 9728/8414 discovery under /.well-known/, dynamic client registration (public clients, PKCE S256 mandatory), an authorization endpoint and a token endpoint. The consent screen is the dashboard (#/oauth/authorize) because the session JWT lives in localStorage on the frontend host; the API bounces there and mints the code on a session-authenticated POST. Redeeming the code mints an ordinary osk_ API key named after the client and returns it as the access token, so every existing auth, quota and ownership rule applies unchanged and the user disconnects an app by revoking that key. The /mcp 401 now carries WWW-Authenticate: Bearer resource_metadata=... so clients find the flow. Dashboard: a "Connect an agent" card (Account in cloud, Settings when self-hosted) with copy-ready setup for claude.ai, ChatGPT, Claude Code, Claude Desktop, Cursor, n8n and curl; the clip generator links to it. The /mcp page, README and CLAUDE.md describe the URL-only connection. |
||
|---|---|---|
| .. | ||
| public | ||
| seo | ||
| src | ||
| .gitignore | ||
| Dockerfile | ||
| eslint.config.js | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.js | ||
| vite-plugin-seo.js | ||
| vite.config.js | ||
React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.