gemini-cli - 💡(How to fix) Fix bug while trying to connect to canva mcp server

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

│ ℹ No www-authenticate header in error, trying to fetch it from server... │ │ ℹ Found www-authenticate header from server: Bearer realm="OAuth", error="invalid_token", error_description="Missing or invalid access token" │ │ ℹ Received 401 with www-authenticate header: Bearer realm="OAuth", error="invalid_token", error_description="Missing or invalid access token" │ │ ℹ [MCP error] Error during discovery for MCP server 'github': Streamable HTTP error: Error POSTing to endpoint: bad request: Authorization header is │ │ StreamableHTTPError: Streamable HTTP error: Error POSTing to endpoint: bad request: Authorization header is badly formatted │ │ ℹ [MCP error] Failed to handle automatic OAuth for server 'Canva': Authentication cancelled by user. FatalCancellationError: Authentication cancelled by │ │ ℹ [MCP error] Error during discovery for MCP server 'Canva': Failed to handle automatic OAuth for server 'Canva' Error: Failed to handle automatic OAuth │ │ This is an unexpected error. Please file a bug report using the /bug tool. │ │ Reason: Error: OAuth callback timeout │ │ Error: OAuth callback timeout │ │ ℹ No www-authenticate header in error, trying to fetch it from server... │ │ ℹ Found www-authenticate header from server: Bearer realm="OAuth", error="invalid_token", error_description="Missing or invalid access token" │ │ ℹ Received 401 with www-authenticate header: Bearer realm="OAuth", error="invalid_token", error_description="Missing or invalid access token" │ │ ℹ [MCP error] Error during discovery for MCP server 'github': Streamable HTTP error: Error POSTing to endpoint: bad request: Authorization header is │ │ StreamableHTTPError: Streamable HTTP error: Error POSTing to endpoint: bad request: Authorization header is badly formatted │ │ ℹ [MCP error] Failed to handle automatic OAuth for server 'Canva': Authentication cancelled by user. FatalCancellationError: Authentication cancelled by │ │ ℹ [MCP error] Error during discovery for MCP server 'Canva': Failed to handle automatic OAuth for server 'Canva' Error: Failed to handle automatic OAuth │ │ This is an unexpected error. Please file a bug report using the /bug tool. │ │ Reason: Error: OAuth callback timeout │ │ Error: OAuth callback timeout │

RAW_BUFFERClick to expand / collapse

What happened?

Debug Console (F12 to close) │ │ │ │ ℹ Loaded cached credentials. │ │ │ │ ⚠ Ripgrep is not available. Falling back to GrepTool. │ │ ℹ Loading extension: canva │ │ ℹ Loading extension: github │ │ ⚠ [STARTUP] Cannot start phase 'load_builtin_commands': phase is already active. Call end() before starting again. (x2) │ │ ℹ [MCP info] MCP server 'Canva' requires authentication using: /mcp auth Canva undefined │ │ ℹ No www-authenticate header in error, trying to fetch it from server... │ │ ℹ Found www-authenticate header from server: Bearer realm="OAuth", error="invalid_token", error_description="Missing or invalid access token" │ │ ℹ Received 401 with www-authenticate header: Bearer realm="OAuth", error="invalid_token", error_description="Missing or invalid access token" │ │ ℹ 🔐 'Canva' requires OAuth authentication │ │ ℹ [MCP error] Error during discovery for MCP server 'github': Streamable HTTP error: Error POSTing to endpoint: bad request: Authorization header is │ │ badly formatted │ │ StreamableHTTPError: Streamable HTTP error: Error POSTing to endpoint: bad request: Authorization header is badly formatted │ │ │ │ at StreamableHTTPClientTransport.send │ │ (file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:268667:15) │ │ at process.processTicksAndRejections (node:internal/process/task_queues:104:5) { │ │ code: 400 │ │ } │ │ ℹ Dynamic client registration is supported at: https://mcp.canva.com/register │ │ ℹ Starting OAuth authentication for server 'Canva'... │ │ ℹ OAuth callback server listening on port 57112 │ │ ℹ Authenticated via "oauth-personal". │ │ ℹ [MCP error] Failed to handle automatic OAuth for server 'Canva': Authentication cancelled by user. FatalCancellationError: Authentication cancelled by │ │ user. │ │ at MCPOAuthProvider.authenticate (file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:326961:13) │ │ at async handleAutomaticOAuth (file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:327561:5) │ │ at async connectToMcpServer (file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:328037:30) │ │ at async McpClient.connect (file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:327132:21) │ │ at async file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:328546:15 { │ │ exitCode: 130 │ │ } │ │ ℹ [MCP error] Error during discovery for MCP server 'Canva': Failed to handle automatic OAuth for server 'Canva' Error: Failed to handle automatic OAuth │ │ for server 'Canva' │ │ at connectToMcpServer (file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:328046:17) │ │ at async McpClient.connect (file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:327132:21) │ │ at async file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:328546:15 │ │ ℹ Scheduling MCP context refresh... │ │ ℹ Executing MCP context refresh... │ │ ℹ MCP context refresh already in progress, queuing trailing execution. │ │ ℹ MCP context refresh complete. │ │ ℹ Coalescing burst refresh requests (300ms delay)... │ │ ℹ Executing MCP context refresh... │ │ ℹ MCP context refresh complete. │ │ ✖ ========================================= │ │ This is an unexpected error. Please file a bug report using the /bug tool. │ │ CRITICAL: Unhandled Promise Rejection! │ │ ========================================= │ │ Reason: Error: OAuth callback timeout │ │ Stack trace: │ │ Error: OAuth callback timeout │ │ at Timeout._onTimeout (file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:326543:29) │ │ at listOnTimeout (node:internal/timers:605:17) │ │ at process.processTimers (node:internal/timers:541:7) │ │ │ │ │ │

What did you expect to happen?

i just wanted for gemini cli to connect to canva mcp server

Client information

  • CLI Version: 0.43.0
  • Git Commit: c0775c38b
  • Session ID: 76775ec3-6d0c-445b-ad5e-c3982a9788a1
  • Operating System: win32 v25.9.0
  • Sandbox Environment: no sandbox
  • Model Version: auto-gemini-3
  • Auth Type: oauth-personal
  • Memory Usage: 204.6 MB
  • Terminal Name: Unknown
  • Terminal Background: Unknown
  • Kitty Keyboard Protocol: Unsupported

Login information

google account

Anything else we need to know?

Debug Console (F12 to close) │ │ │ │ ℹ Loaded cached credentials. │ │ │ │ ⚠ Ripgrep is not available. Falling back to GrepTool. │ │ ℹ Loading extension: canva │ │ ℹ Loading extension: github │ │ ⚠ [STARTUP] Cannot start phase 'load_builtin_commands': phase is already active. Call end() before starting again. (x2) │ │ ℹ [MCP info] MCP server 'Canva' requires authentication using: /mcp auth Canva undefined │ │ ℹ No www-authenticate header in error, trying to fetch it from server... │ │ ℹ Found www-authenticate header from server: Bearer realm="OAuth", error="invalid_token", error_description="Missing or invalid access token" │ │ ℹ Received 401 with www-authenticate header: Bearer realm="OAuth", error="invalid_token", error_description="Missing or invalid access token" │ │ ℹ 🔐 'Canva' requires OAuth authentication │ │ ℹ [MCP error] Error during discovery for MCP server 'github': Streamable HTTP error: Error POSTing to endpoint: bad request: Authorization header is │ │ badly formatted │ │ StreamableHTTPError: Streamable HTTP error: Error POSTing to endpoint: bad request: Authorization header is badly formatted │ │ │ │ at StreamableHTTPClientTransport.send │ │ (file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:268667:15) │ │ at process.processTicksAndRejections (node:internal/process/task_queues:104:5) { │ │ code: 400 │ │ } │ │ ℹ Dynamic client registration is supported at: https://mcp.canva.com/register │ │ ℹ Starting OAuth authentication for server 'Canva'... │ │ ℹ OAuth callback server listening on port 57112 │ │ ℹ Authenticated via "oauth-personal". │ │ ℹ [MCP error] Failed to handle automatic OAuth for server 'Canva': Authentication cancelled by user. FatalCancellationError: Authentication cancelled by │ │ user. │ │ at MCPOAuthProvider.authenticate (file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:326961:13) │ │ at async handleAutomaticOAuth (file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:327561:5) │ │ at async connectToMcpServer (file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:328037:30) │ │ at async McpClient.connect (file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:327132:21) │ │ at async file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:328546:15 { │ │ exitCode: 130 │ │ } │ │ ℹ [MCP error] Error during discovery for MCP server 'Canva': Failed to handle automatic OAuth for server 'Canva' Error: Failed to handle automatic OAuth │ │ for server 'Canva' │ │ at connectToMcpServer (file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:328046:17) │ │ at async McpClient.connect (file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:327132:21) │ │ at async file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:328546:15 │ │ ℹ Scheduling MCP context refresh... │ │ ℹ Executing MCP context refresh... │ │ ℹ MCP context refresh already in progress, queuing trailing execution. │ │ ℹ MCP context refresh complete. │ │ ℹ Coalescing burst refresh requests (300ms delay)... │ │ ℹ Executing MCP context refresh... │ │ ℹ MCP context refresh complete. │ │ ✖ ========================================= │ │ This is an unexpected error. Please file a bug report using the /bug tool. │ │ CRITICAL: Unhandled Promise Rejection! │ │ ========================================= │ │ Reason: Error: OAuth callback timeout │ │ Stack trace: │ │ Error: OAuth callback timeout │ │ at Timeout._onTimeout (file:///C:/Users/Lenovo/AppData/Roaming/npm/node_modules/@google/gemini-cli/bundle/chunk-U6X4OPT5.js:326543:29) │ │ at listOnTimeout (node:internal/timers:605:17) │ │ at process.processTimers (node:internal/timers:541:7) │ │ │ │ │ │

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING