Draft
Prevent unified research search from stalling on slow providers#55
Conversation
Agent-Logs-Url: https://github.com/openags/paper-search-mcp/sessions/77eee087-45ff-49c7-a0cd-4a18d37670ba Co-authored-by: universea <13444641+universea@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix research interrupted issue in Claude desktop program
Prevent unified research search from stalling on slow providers
Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some
search_papersrequests could hang long enough for Claude Desktop to report an interrupted response, causing the research flow to stop. This change makes unified search resilient to slow/hanging upstream connectors by failing slow sources independently and returning partial results.Per-source timeout isolation in unified search
SEARCH_PAPERS_SOURCE_TIMEOUT_SECONDSand_run_search_with_timeout(...)inpaper_search_mcp/server.py.search_papers(...)withasyncio.wait_for(...).errorsand contributes0results, while other sources continue and return normally.Behavioral coverage for timeout path
tests/test_search_papers_timeout.pywith focused async tests:Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
api.archives-ouvertes.fr/usr/bin/python python -m unittest discover -s tests -p test_*.py -q(dns block)api.base-search.net/usr/bin/python python -m unittest discover -s tests -p test_*.py -q(dns block)api.biorxiv.org/usr/bin/python python -m unittest discover -s tests -p test_*.py -q(dns block)api.crossref.org/usr/bin/python python -m unittest discover -s tests -p test_*.py -q(dns block)api.medrxiv.org/usr/bin/python python -m unittest discover -s tests -p test_*.py -q(dns block)api.openaire.eu/usr/bin/python python -m unittest discover -s tests -p test_*.py -q(dns block)api.semanticscholar.org/usr/bin/python python -m unittest discover -s tests -p test_*.py -q(dns block)citeseerx.ist.psu.edu/usr/bin/python python -m unittest discover -s tests -p test_*.py -q(dns block)dblp.org/usr/bin/python python -m unittest discover -s tests -p test_*.py -q(dns block)doaj.org/usr/bin/python python -m unittest discover -s tests -p test_*.py -q(dns block)eprint.iacr.org/usr/bin/python python -m unittest discover -s tests -p test_*.py -q(dns block)eutils.ncbi.nlm.nih.gov/usr/bin/python python -(dns block)export.arxiv.org/usr/bin/python python -m unittest discover -s tests -p test_*.py -q(dns block)/usr/bin/python python -(dns block)scholar.google.com/usr/bin/python python -m unittest discover -s tests -p test_*.py -q(dns block)sci-hub.se/usr/bin/python python -m unittest discover -s tests -p test_*.py -q(dns block)zenodo.org/usr/bin/python python -m unittest discover -s tests -p test_*.py -q(dns block)If you need me to access, download, or install something from one of these locations, you can either: