# ChatGPT

> Connect ChatGPT Developer mode to the hosted dFlow MCP server.

Web page: /docs/mcp/chatgpt/

ChatGPT connects with a **custom MCP connector** and OAuth. Use the same MCP URL as the dashboard **Agents** screen.

## MCP URL

```
https://k8s.dflow.sh/mcp
```

## Steps

1. **Copy the URL** above (or from **Dashboard → Agents**).
2. In ChatGPT, open **Settings → Apps & Connectors**.
3. Turn on **Developer mode**.
4. **Create connector**, paste the MCP URL, and complete **OAuth** when ChatGPT prompts you.
5. **Sign in** to dFlow and approve the connection. **Deploy is off by default** — only enable Deploy on consent if this connector should write the cluster.
6. Pick a **workspace** on the consent screen and finish. You are **done**.

## Turn Deploy on later

Reconnect the connector (or add it again), sign in, and on consent tick **Deploy**. Until then, staging tools work; deploy and apply return a message that the connection can stage but not deploy.

## Troubleshooting

| Symptom | What to do |
| --- | --- |
| **401** | Token revoked or session ended. Create the connector again and complete OAuth, or revoke the grant under **Connected agents** on the dashboard. |
| **Scope error** | Grant lacks Deploy. Reconnect with **Deploy** enabled on consent. |
| Developer mode missing | Your ChatGPT plan or workspace policy may hide it; use a workspace API token and a client that supports bearer MCP instead (see [MCP overview](/docs/mcp)). |
