Connect another MCP client
These steps apply to an AI agent or editor that supports remote MCP servers but does not have a dedicated guide here. First, choose OAuth or a personal token as described in Before you start.
Add the server
- Open the client’s MCP server settings and add a server named
reconstruct. - Select Streamable HTTP (sometimes labeled HTTP or remote HTTP).
- Set the server URL to
https://reconstruct.dev/mcp.
OAuth browser sign-in
If your client supports OAuth discovery and Dynamic Client Registration (DCR), add only https://reconstruct.dev/mcp, choose OAuth and connect. The client registers its own callback, opens Reconstruct sign-in, and receives the callback automatically after you approve access. You do not need to enter a Client ID or a callback port manually.
Hosted applications can register an exact HTTPS callback on a public domain, such as https://app.example.com/mcp/callback. Native applications can register an exact HTTP callback on 127.0.0.1 or localhost with an explicit port. The callback is owned and handled by the client, not by the MCP server. Registration requires PKCE S256, user consent and MCP-only scopes. Wildcards, non-loopback HTTP addresses, fragments and remote key URLs are rejected.
Clients without automatic registration
Use the pre-registered public client if the application cannot register itself:
- Set client ID
reconstruct-mcp, scopesopenid aud-mcp, and leave the client secret empty. - Set the local OAuth callback port to
58234and path to/callback. - Save and connect, complete browser sign-in, approve access and return to the client.
Local callback for custom clients
Configure the client to listen on port 58234 on your own computer and use one of these exact redirect URIs:
http://127.0.0.1:58234/callbackhttp://localhost:58234/callback
The client must support Authorization Code with PKCE (S256). Use client ID reconstruct-mcp, scopes openid aud-mcp, and no client secret. The redirect URI sent during sign-in and token exchange must match the configured URI exactly.
Port 58234 is only for the local browser callback. The remote MCP server URL remains https://reconstruct.dev/mcp over HTTPS. Bind the callback listener to the loopback interface; do not expose this port to the network. Only one sign-in flow can listen on this port at a time; finish an existing sign-in before starting another.
Automatic return to the client
The MCP client must start its local callback listener before opening the browser. After sign-in and consent, Keycloak redirects the browser to that listener; the client receives the authorization response, exchanges the code using PKCE, and resumes its MCP connection. Users should not need to copy a callback URL or authorization code manually.
Muse Code, Grok Build, Codex and Claude Code can use the shared port as shown in their guides. Clients with their own fixed callback, such as Cursor or Claude Desktop, keep their supported callback addresses.
For a custom C# application, configure ClientOAuthOptions.RedirectUri and implement AuthorizationCallbackHandler to open the browser and capture code, state and iss. Setting the redirect URI alone does not create a listener; the SDK's default handler asks for the redirect URL manually. See the official C# SDK OAuth options.
The issuer is https://reconstruct.dev/sso/realms/reconstruct; use its discovered authorization and token endpoints rather than constructing root /authorize and /token URLs.
Remove a manually configured Authorization header when choosing OAuth. If sign-in reports a callback error, contact support with the callback URI shown by the client.
Personal access token
If the client does not support OAuth, create an MCP token in Platform settings and set the HTTP header Authorization to Bearer <your MCP token>. Use the client’s secret store or the CR_RECONSTRUCT_MCP_TOKEN environment variable if supported.
Check the connection
Reconnect or restart the client. Confirm that list_products appears in its tool list, then ask the agent to call it.
There is no single JSON format shared by all clients. Some use mcpServers, others use servers or mcp; some require a type field. Follow your client's documentation for the exact field names and token interpolation syntax. A client that supports only the older SSE transport cannot use Reconstruct's HTTP /mcp endpoint as SSE.
If the connection fails, check the troubleshooting table. Once connected, try the prompt examples.