Define tools, compose a session type protocol, export code.
MCP servers typically use stdio transport. To connect from the browser, wrap them with supergateway which bridges stdio to SSE with CORS.
npx -y supergateway --cors \ --stdio "npx -y @supabase/mcp-server-supabase@latest \ --access-token YOUR_SUPABASE_TOKEN" \ --port 3000
npx -y supergateway --cors \ --stdio "npx -y @modelcontextprotocol/server-github" \ --port 3000 \ --env GITHUB_PERSONAL_ACCESS_TOKEN=ghp_xxx
npx -y supergateway --cors \ --stdio "npx -y @stripe/mcp --tools=all \ --api-key sk_xxx" \ --port 3000
npx -y supergateway --cors \ --stdio "your-mcp-server-command" \ --port 3000
Then enter http://localhost:3000/sse above and click Connect.