You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Claude Code MCP authentication fails: OAuth 404 and API key 'unauthorized' #10
Also experiencing this issue when using the MCP server from Tasklet.ai. API key auth returns 'unauthorized' for most tools (list_services, list_workspaces, etc.), though select_workspace and get_selected_workspace do work. The same API key works perfectly with the REST API at api.render.com.
• Only one workspace exists under this account.
• API key is valid (confirmed via direct REST API calls).
⸻
Observed Behavior
1. select_workspace({ ownerID: "tea-d67d93d6ubrc738vh0fg" })
→ "Workspace selected"
2. get_selected_workspace()
→ error: "no workspace set. Prompt the user to select a workspace..."
3. list_services()
→ error: "no workspace set..."
This behavior is 100% reproducible across:
• Multiple attempts
• HTTP transport
• SSE-only transport
• Freshly generated API keys
⸻
Important Detail
The same RENDER_API_KEY works correctly when calling the Render REST API directly:
GET /v1/services
Authorization: Bearer
So:
• API key is valid
• Workspace exists
• Permissions are correct
The issue appears to be:
select_workspace acknowledges success, but workspace state is not retained between MCP calls.
This suggests session state is not being persisted correctly server-side.
⸻
Questions
1. Is select_workspace intended to rely on session state?
2. Should workspace context be passed per-call instead?
3. Is this a known issue with mcp-remote transport compatibility?
4. Is there a recommended pattern for stateless MCP clients?
If you're still seeing 404s or 'unauthorized' errors with Claude Code OAuth, this might be the reason. Anthropic recently updated their terms to officially ban subscription-based OAuth tokens for third-party harnesses. A longtime Claude Max subscriber just documented the full context behind this change, including the Clawdbot/OpenClaw C&D that preceded it. Full breakdown here: https://aiwithapexcom.substack.com/p/after-nearly-a-year-on-claude-max
Activity
yannbc commentedon Jan 6, 2026
Also experiencing this issue when using the MCP server from Tasklet.ai. API key auth returns 'unauthorized' for most tools (list_services, list_workspaces, etc.), though select_workspace and get_selected_workspace do work. The same API key works perfectly with the REST API at api.render.com.
Stop trying to load dashboard link from config, since we don't set it…
Aluma commentedon Feb 14, 2026
Reproducing select_workspace Success but No Persistent Workspace State
We are experiencing the same core issue described here, but in an Emergent MCP environment rather than Claude Code.
Environment
• MCP client: mcp-remote
• Transport: --transport sse-only
• Config:
⸻
Observed Behavior
1. select_workspace({ ownerID: "tea-d67d93d6ubrc738vh0fg" })
→ "Workspace selected"
2. get_selected_workspace()
→ error: "no workspace set. Prompt the user to select a workspace..."
3. list_services()
→ error: "no workspace set..."
This behavior is 100% reproducible across:
• Multiple attempts
• HTTP transport
• SSE-only transport
• Freshly generated API keys
⸻
Important Detail
The same RENDER_API_KEY works correctly when calling the Render REST API directly:
GET /v1/services
Authorization: Bearer
So:
• API key is valid
• Workspace exists
• Permissions are correct
The issue appears to be:
select_workspace acknowledges success, but workspace state is not retained between MCP calls.
This suggests session state is not being persisted correctly server-side.
⸻
Questions
1. Is select_workspace intended to rely on session state?
2. Should workspace context be passed per-call instead?
3. Is this a known issue with mcp-remote transport compatibility?
4. Is there a recommended pattern for stateless MCP clients?
⸻
Happy to provide additional logs if needed.
moshehbenavraham commentedon Mar 10, 2026
If you're still seeing 404s or 'unauthorized' errors with Claude Code OAuth, this might be the reason. Anthropic recently updated their terms to officially ban subscription-based OAuth tokens for third-party harnesses. A longtime Claude Max subscriber just documented the full context behind this change, including the Clawdbot/OpenClaw C&D that preceded it. Full breakdown here: https://aiwithapexcom.substack.com/p/after-nearly-a-year-on-claude-max
freditation commentedon Apr 8, 2026
Adding another confirmation — I'm hitting the same issue using the Claude.ai-hosted Render MCP integration (not self-hosted).
What works:
select_workspace✅get_selected_workspace✅What fails with "unknown error":
list_workspaceslist_serviceslist_postgres_instanceslist_key_valueBasically every tool that hits the Render REST API fails, while the stateful MCP-only operations work fine.
This is a regression — everything was working for me on March 10, 2026 (including
select_workspace+query_render_postgres). By April 1 it was broken.