mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-24 22:44:17 +02:00
Two remote-worker fixes. A separate worker process cannot reach the submitting process's server map, so a mounted task's ctx.fastmcp/CurrentFastMCP() fell back to the root; the worker now re-resolves the owning child from the root using the snapshotted tool name. And restoring headers no longer fabricates a live Request — get_http_headers() reads a dedicated task-headers context var while get_http_request()/CurrentRequest() correctly keep raising inside a task. |
||
|---|---|---|
| .. | ||
| client | ||
| server | ||
| __init__.py | ||
| task_helpers.py | ||