Add an opt-in Parallel Search MCP provider - #55
Open
georgeatparallel wants to merge 5 commits into
Open
georgeatparallel wants to merge 5 commits into
georgeatparallel wants to merge 5 commits into
Conversation
Collaborator
|
Thanks for adding this integration and for the thorough validation! I tried the new provider path and noticed two small issues:
The 48 focused tests passed locally; I reproduced these two cases separately. Thanks again for the contribution! |
|
Thanks for catching both! Fixed in edc0847. Both search paths now apply the per-query limit after filtering and URL deduplication, and publication dates read |
This branch has not been deployed
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.
What changed
Adds an opt-in Parallel Search MCP backend to FrontierAgent's existing
web_searchprovider path. SettingWEB_SEARCH_PROVIDER=parallelselects the free endpoint without a Parallel API key. Both original and aligned native search implementations use it.Serper remains the implicit provider. Its current missing-key behavior stays the same, and Parallel errors do not fall back silently. The anonymous MCP supports up to 10 results per query; larger counts and unsupported custom region, language, or time filters return a clear message to use Serper. Existing search result filters and closed-book profile switches remain in effect.
web_fetchkeeps its existing provider.Setup
Set
WEB_SEARCH_PROVIDER=parallelin the project.envor the existing user env file. The Parallel Search MCP documentation describes the anonymous endpoint. Setting the value toserperrestores the current provider.Validation
FrontierAgent/0.1.0User-Agent and no Authorization header.uv run pytest -q: 1,804 passed, 1 skipped, 18 existing pytest marker warnings.uv run pytest tests/test_parallel_search.py apodex/tests/test_config_preflight.py apodex/tests/test_userenv.py -q: 47 passed, 1 skipped.uv run ruff check frontier_agent/ apodex/ benchmarks/ workflows/ plugins/ deploy/ tools/ scripts/: passed.uv run pyright: 0 errors, 0 warnings, 0 informations.git diff --check: passed.Affiliation
I work at Parallel.
Search benchmarks
These links show the current filtered charts. This PR makes no benchmark claims.