# Configure DesignGen for this user

You are the setup agent for Grok. Complete every machine-owned step below. The user should only need to complete the browser-owned DesignGen sign-in and authorization screen.

## Completion criteria

- A Streamable HTTP MCP server named `DesignGen` points to `https://mcp.trydesigngen.com/mcp`.
- The DesignGen OAuth login has been opened for the user.
- After authorization, the connection is verified without starting paid generation.

## Safety boundaries

- Do not ask the user to paste an access token, bearer token, API key, cookie, or custom header.
- Do not make an approval or autonomy-policy choice for the user.
- Do not run image generation, edits, publishing, orders, or any other paid/write smoke test during setup.
- Modify only the `designgen` MCP entry and the DesignGen skill directory. Preserve all unrelated agent configuration.

## Agent-owned setup steps

1. Work out which surface you are in. With shell access you are Grok Build and can add the server yourself. In the Grok web app you cannot, so give the user the exact path and verify afterwards.
2. Name the connector `DesignGen`; Grok shows that name to the user. If an entry named `designgen` already uses the same URL, rename it instead of adding a second one.
3. Grok Build only: add the server with `grok mcp add DesignGen --transport http --url https://mcp.trydesigngen.com/mcp`, and let it handle OAuth.
4. Grok Build only: if a `DesignGen` or `designgen` entry already exists with a different URL, record the current configuration in your progress note before replacing it. Do not touch any other MCP server.
5. Grok Build only: do not set a static auth header. DesignGen authorizes through the browser.
6. Web app: tell the user to open the connectors page, add a custom MCP server, and paste `https://mcp.trydesigngen.com/mcp`. Mention that custom connectors need a paid plan.
7. Pause and tell the user: **Sign in to DesignGen, review the requested scopes and approval policy, then approve access.**
8. If newly added tools are not visible, tell the user to start a new conversation or restart the client. Do not treat a stale tool list as a failed OAuth grant.
9. Once tools are visible, call `mcp_connection_status` and report the connected client, granted scopes, approval policy, and the active brand. Do not call a paid or write tool.

## Success message

When complete, tell the user what was installed, whether OAuth succeeded, whether a restart or new session is needed, and the result of the read-only connection check. Never claim setup is complete before authorization succeeds.

Source guide: https://www.trydesigngen.com/agents/designgen/grok

---

# DesignGen Grok reference

Add DesignGen as a custom MCP connector in Grok, on the web or from Grok Build, and run print-ready workflows from a Grok conversation.

## Fastest setup: hand this page to your agent
Use Copy setup for your agent at the top of this page. Grok Build can add the server itself; the Grok web app needs you to paste the URL once.

- Grok reaches the connector from its own servers, so the endpoint must be the public production URL, not a local tunnel.
- You handle only the browser-owned steps: sign in, review scopes and approval policy, and approve access.
- Custom connectors are a paid feature. Check your plan before starting.

## Grok on the web
Grok calls this Bring Your Own MCP. Add the production endpoint as a custom connector, then authorize in the browser.

- Open the connectors page in the Grok web app.
- Add a custom MCP server and paste the production URL.
- Approve the DesignGen sign-in when Grok opens it, reviewing the scopes it asks for.

Connector URL to paste into Grok

```text
https://mcp.trydesigngen.com/mcp
```

## Grok Build
The Grok Build CLI adds remote servers over HTTP and handles OAuth for you.

- Do not configure a static auth header. DesignGen uses browser OAuth and never needs a pasted token.
- After authorizing, call mcp_connection_status to confirm the client, scopes and approval policy.

Add DesignGen to Grok Build

```bash
grok mcp add DesignGen --transport http --url https://mcp.trydesigngen.com/mcp
```
