aws-healthomics-mcp-server: empty-string continuation_token bypasses validation in search_paginated()
Summary
In src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/search/genomics_search_orchestrator.py, the two search entry points disagree on how a supplied continuation_token is detected: search() checks is not None, while search_paginated() checks truthiness.
As a result continuation_token="" is treated by search_paginated() as "no token supplied" and silently starts a fresh search from the beginning, rather than being rejected as invalid.
Impact
An agent that passes an empty token receives what looks like a normal first page, with more results reported as available and no signal that its cursor was ignored. That is the same silent-restart failure the unparseable-token validation was added to eliminate, reachable through a different input.
Suggested fix
Make both paths agree on presence detection, and treat a present-but-empty token the same as any other unusable token: raise the visible, actionable error rather than resetting silently.
Source: awslabs/mcp