mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-02 03:33:04 +08:00
MCP tools constructed a bare WorkRequestContext, which has no .request attribute. HDASerializer.serialize_old_display_applications reads trans.request.base to build absolute display-app URLs, so any tool running detailed HDA serialization crashed with AttributeError when enable_old_display_applications was enabled. Switch to SessionRequestContext backed by minimal _StaticRequest / _StaticResponse stubs derived from galaxy_infrastructure_url (the same base URL already used for the MCP URL builder).