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
fix(mcp): route download through public API instead of internal endpoint (#5001)
## Summary
- MCP download route was calling the Engine's internal
`/tasks/{id}/output_rows` by stripping `/api/v0` from the public URL —
this goes through Traefik which doesn't expose internal routes, causing
404
- Fix: forward the per-task API key from Redis and call the public `GET
/api/v0/tasks/{id}/result` endpoint instead
- Stop popping the task token on completion so it remains available for
downloads (Redis TTL expires it naturally)
Fixes https://futuresearch-ai.sentry.io/issues/7357940590/
## Test plan
- [x] All 19 route tests pass
- [ ] Deploy MCP to staging, verify CSV download works end-to-end
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sourced from commit 77721e7adc1ca5227769aacef8ab6e7c55dd4f93
0 commit comments