Overview
Install the MCP server and the skills in one prompt.
MCP is how an editor such as Cursor, Claude, ChatGPT, or Copilot calls dFlow for you. The hosted server is https://k8s.dflow.sh/mcp.
You can connect in two ways. Paste a workspace token, or sign in with OAuth from Claude, ChatGPT, or Cursor and approve the scopes on the dashboard consent page. Google and GitHub sign-in stay on dflow login. A password is not an MCP argument.
On the dashboard Agents screen, Connect MCP walks through OAuth for each client. Per-client setup pages are linked below. You can list and revoke those connections on that screen, or with oauth_grants_list and oauth_grants_delete.
Deploy is off by default on OAuth consent. Staging works with Read and Stage; deploy and apply need Deploy ticked when you connect or reconnect.
| Client | Doc |
|---|---|
| Cursor | Cursor |
| Claude (connectors) | Claude |
| ChatGPT | ChatGPT |
| Claude Code | Claude Code |
| Codex | Codex |
| AI agent self-setup | Agent self-setup |
Signup stays on the CLI. dflow tokens:create prints a workspace token once. That secret is the bearer token. Keep it out of a repository and out of a chat log.
Installing the skills teaches the editor the commands. It does not connect the server. The prompt below does both.
Set up this editor
Paste this prompt into the editor. It installs the CLI if needed, creates the token, writes the user-level MCP config, and installs every skill.
Set up dFlow in this editor.
Run every step now.
Do not pause between steps to ask me to continue.
If the CLI prints Password:, wait only for me to type it.
1. If dflow is not on PATH, install it:
curl -fsSL https://github.com/dflow-sh/dflow/releases/latest/download/install.sh | sh
2. If dflow whoami fails, run:
dflow auth:register --email
Ask me for the email.
The password is typed at the prompt.
Do not pass --password.
Do not write the password into a chat log.
Signup creates one personal workspace.
That workspace is private.
3. Run:
dflow tokens:create
The secret is printed once.
Hold it for step 4.
Do not write it into a repository or a chat log.
4. Add the dFlow MCP server at user scope
for the editor you are running in.
Name: dflow
URL: https://k8s.dflow.sh/mcp
Transport: HTTP
Auth: bearer secret from step 3, or OAuth from the dashboard Agents screen
Paste the bearer secret when you are not using OAuth.
Do not leave the Authorization header empty.
Cursor, in ~/.cursor/mcp.json, not the project file:
mcpServers.dflow = {
"url": "https://k8s.dflow.sh/mcp",
"headers": { "Authorization": "Bearer <secret>" }
}
Claude Code:
claude mcp add --scope user --transport http dflow https://k8s.dflow.sh/mcp --header "Authorization: Bearer <secret>"
Codex. Export DFLOW_TOKEN to the secret in the user environment.
The variable holds the secret only, not the word Bearer.
codex mcp add dflow --url https://k8s.dflow.sh/mcp --bearer-token-env-var DFLOW_TOKEN
Copilot, in the VS Code user MCP config, not the workspace:
servers.dflow = {
"type": "http",
"url": "https://k8s.dflow.sh/mcp",
"headers": { "Authorization": "Bearer <secret>" }
}
5. Install the skills globally for this editor.
Set <agent> to cursor, claude-code, codex, or github-copilot.
npx skills add dflow-sh/dflow -g -y -a <agent>
That installs dflow, dflow-onboarding, dflow-cli, and dflow-mcp.
When you are done, report the config path
and confirm the four skills are installed.
Do not print the bearer secret.A new account still follows From install to a URL before a deploy. The tool list is on Tools.
How is this guide?
Last updated on