Connect Grok Build
Browser sign-in (OAuth)
For automatic OAuth registration, add the server URL without an oauth override, then sign in through /mcps. Grok registers its callback and handles the browser return.
For the pre-registered client alternative, add this configuration to ~/.grok/config.toml:
[mcp_servers.reconstruct]
url = "https://reconstruct.dev/mcp"
oauth = { clientId = "reconstruct-mcp", scopes = ["openid", "aud-mcp", "offline_access"], callbackPort = 58234 }
In Grok Build, open /mcps, press r to reload the configuration, select
reconstruct, and press i to sign in. The callback is
http://127.0.0.1:58234/callback. Keep port 58234 available. No client secret is
required. Grok starts the local callback listener and finishes connecting automatically after browser sign-in. This public client uses Authorization Code with PKCE S256 and asks
for MCP consent. Grok also requests offline_access to renew tokens after sign-in;
it is an optional scope on this client. An account with platform access is required.
The nested OAuth settings use camelCase (clientId, callbackPort). With only
a server URL, supported clients use automatic dynamic registration with their own exact callback URI. See MCP OAuth setup.
Personal access token
Use this alternative when browser sign-in is unavailable. Do not add an Authorization header to the OAuth entry above.
Copy your MCP access token from your Reconstruct Platform account settings. See Personal access token for the connection requirements. Set CR_RECONSTRUCT_MCP_TOKEN in the environment that launches Grok Build.
Add this to your user ~/.grok/config.toml. If the file already contains other MCP servers, keep their entries and add only the reconstruct section:
[mcp_servers.reconstruct]
url = "https://reconstruct.dev/mcp"
headers = { "Authorization" = "Bearer ${CR_RECONSTRUCT_MCP_TOKEN}" }
Grok Build expands ${CR_RECONSTRUCT_MCP_TOKEN} from the environment when loading the configuration. Keep a literal token out of project files.
Start Grok Build with grok. If it is already running, open /mcps and press r to refresh after editing the configuration.
Check registration and connectivity:
grok mcp doctor reconstruct
Ask Grok Build to call list_products using the reconstruct tools to confirm access.
Skill instructions
MCP resources and MCP tools are separate capabilities. Some Grok Build versions expose capture tools to the agent through search_tool and use_tool without exposing resources/read. Calling resources/list as a tool will not load a skill.
If resources are unavailable in your client, ask Grok to call list_skills and then get_skill with the catalog resource URI (skill://reconstruct/ followed by the returned path). This retrieves the same packaged instructions through ordinary MCP tools; separate installation is unnecessary. Supporting templates are readable through get_skill too.
For older servers without these skill tools, install the skills separately or read the public website instructions before starting. For a reconstruction, use reconstruct-inspect, reconstruct-build and reconstruct-verify from https://reconstruct.dev/.well-known/agent-skills/<skill-name>/SKILL.md. The public discovery catalog is https://reconstruct.dev/.well-known/agent-skills/index.json. Capture data still comes from the authenticated MCP connection. See Reconstruct skills for installation options.
For reconstruction, the current workflow prefers get_interface_scene when
advertised by the connected server. It exports the same neutral scene contract
for platform adapters, with measured/declared/inferred facts and explicit missing
evidence. DOM/CSS are optional Web diagnostics. Load the published Build reference
through get_skill; do not equate a successful export with verified desktop,
mobile, interaction or animation fidelity. Older servers use their advertised
legacy evidence tools and must disclose the resulting gaps.
See the official Grok Build MCP guide. Next, try the prompt examples.