description: Set up the Asana V2 MCP server connection (one-time OAuth app + claude mcp add)
The user wants to connect Claude Code to Asana's V2 MCP server. Guide them through the one-time setup below. Do NOT run claude mcp add yourself — the --client-secret prompt needs a real terminal (a hidden TTY prompt), so the user must run it in their own terminal.
Their Asana OAuth Client ID (if provided): $1
Print these steps clearly, substituting the Client ID into the command if $1 is non-empty (otherwise leave the YOUR_CLIENT_ID placeholder):
Under OAuth, add this exact Redirect URL:
http://localhost:8080/callback
Copy the Client ID and Client Secret.
Note: localhost is correct — Claude Code is a local client and catches the OAuth callback on your own machine. Asana's V2 server does not support Dynamic Client Registration, so you must bring your own client_id + client_secret.
claude mcp add --transport http \
--client-id YOUR_CLIENT_ID --client-secret \
--callback-port 8080 \
asana https://mcp.asana.com/v2/mcp
--client-secret (no value) triggers a hidden prompt; paste the Client Secret there. It is stored in your OS keychain.--callback-port must match the http://localhost:8080/callback redirect you registered./mcp and confirm asana shows as connected.After printing the steps, offer to help troubleshoot if they hit invalid_redirect_uri (redirect/port mismatch) or invalid_client (wrong id/secret).