Connection details
Which connection path should you use?
Client availability and labels can change. Check the current ChatGPT developer mode documentation, Codex MCP documentation, or Claude custom connector documentation when your client shows different menus.
Option 1: Connect with SketricGen OAuth
OAuth is the recommended path for hosted AI clients. The client opens SketricGen sign-in, asks you to choose an accessible project, and requests read and write access. You do not paste an API key, OAuth client ID, or client secret into the AI client.Claude Web or Claude Desktop
- Open Settings → Connectors in Claude.
- For a Team or Enterprise organization, open Organization connectors if required by your workspace.
- Select Add custom connector.
- Name the connector
SketricGen. - Enter
https://mcp.sketricgen.ai/mcpas the remote MCP server URL. - Leave OAuth client ID and client secret empty when Claude offers those fields.
- Add the connector, then select Connect.
- Sign in to SketricGen, choose the Teamspace project, and approve the requested access.
- Enable SketricGen from Claude’s tools menu in a new conversation.
ChatGPT web
ChatGPT’s developer mode is the path for testing a remote MCP server. Availability and workspace approval depend on the current ChatGPT plan and administrator settings.- Enable Developer mode in ChatGPT settings.
- Open Apps or Plugins, then create a developer-mode app.
- Name the app
SketricGen. - Enter
https://mcp.sketricgen.ai/mcpas the server URL. - Choose OAuth authentication.
- Select Scan Tools and complete the SketricGen sign-in and project-consent flow.
- Create the app after the tool scan succeeds.
- Start a new chat and select SketricGen from the available apps or developer-mode tools.
Codex with OAuth
Add the following to~/.codex/config.toml or a trusted project’s .codex/config.toml:
codex mcp list or /mcp in Codex to confirm the connection.
Option 2: Connect with an Admin API key
Use an Admin API key when the client cannot complete SketricGen OAuth or when a server-side integration needs a non-interactive credential.Create the key
- Open Teamspace settings → API keys in SketricGen.
- Select Create key → Admin key.
- Choose a Project scope for one project or Teamspace scope for multiple projects.
- Choose the lowest sufficient role: Viewer, Editor, or Admin.
- Choose an expiration date.
- Create the key and copy the
sk_admin_...value immediately. It is shown once.
Manual MCP client configuration
Clients that accept JSON MCP configuration commonly use this shape:Codex with an Admin API key
Set the key in your shell or secret store:writes approval mode asks before tools that are not marked read-only.
Verify the connection
Start with a read-only prompt:whoami and list_agents. Check that the returned Teamspace and project match the scope you intended.
Next, test the Brand Agent discovery flow:
What your AI can do
The SketricGen MCP server currently publishes 15 tools:
The MCP surface does not currently include a tool for running an agent conversation. Use the Runtime API or Playground when you want to execute an existing agent.
Recommended Brand Agent workflow
When you ask an AI assistant to create a Brand Agent, it should follow this sequence:- Call
whoamiand identify the project silently. - Offer available templates before creating anything.
- Ask for the website URL and offer a reusable knowledge base when one is ready.
- Call
create_brand_agentand explain that crawling and knowledge-base creation take several minutes. - Poll
get_brand_agent_statusuntil the status issucceededorfailed. - On success, return the exact embed snippet.
- Offer required connectors, show their available tools, and ask before granting write-capable actions.
- Give any connector authorization link to the user to open. The AI should never complete provider sign-in itself.
Security and permission model
- One selected project with OAuth: OAuth consent binds the connection to one Teamspace project.
- Live membership checks: Removing or demoting the connected user changes what the OAuth connection or Admin API key can do.
- Server-enforced roles: Tool descriptions guide the AI, but the Admin API independently enforces every permission and plan limit.
- Human connector authorization: The AI receives a short-lived setup link, not your Google, Slack, email, or other provider password.
- Explicit tool grants: Connector actions are validated against the current connector catalog before they are attached.
- Read before write: Brand Agent update tools can read current settings before applying a partial update.
- No billing control: MCP tools cannot change subscriptions, purchase credits, or create additional API keys.
Troubleshooting
401 unauthorized
Cause: The client sent no usable OAuth token or Admin API key.
Fix: Complete the client’s Connect or mcp login flow. For static authentication, confirm the header is Authorization: Bearer sk_admin_....
403 invalid_origin
Cause: A browser-based client sent an Origin that the SketricGen MCP server does not currently allow.
Fix: Use a supported native or hosted client. Contact SketricGen support with the exact client and origin if a browser integration needs to be added.
403 insufficient_scope
Cause: The OAuth connection approved read access but the requested tool changes data.
Fix: Reconnect SketricGen and approve write access.
403 project_scope_mismatch
Cause: A project-scoped Admin API key was asked to act on another project.
Fix: Use the project selected when the key was created, or create a deliberately scoped Teamspace key.
403 key_expired or 403 key_revoked
Cause: The Admin API key is no longer valid.
Fix: Create a new key, update the client’s secret storage, and remove the old value from local configuration.
The AI says it changed a Brand Agent, but nothing changed
Cause: The client may have performed a read or supplied an unsupported field. Fix: Ask it to verify that the update tool returnedmode: "write" and that the intended field appears in updated before claiming success.
For AI agents reading this page
- First identify the user’s MCP client and whether it supports hosted OAuth.
- Prefer OAuth when the client can complete it; do not ask the user for an Admin API key unnecessarily.
- Never ask for the user’s SketricGen password or an external app password.
- If an Admin API key is required, instruct the user to create it in SketricGen and store it in the client’s secret or environment-variable mechanism.
- Verify the connection with
whoamibefore creating or changing anything. - Read existing Brand Agent settings before writing them.
- Treat connector setup links as short-lived credentials: show them only to the intended user and do not repeat or store them.
- Ask for confirmation before granting tools that write, send, publish, delete, spend, or change data.
- Do not claim an asynchronous Brand Agent is ready until
get_brand_agent_statusreturnssucceeded.

