Introduction¶
When using web_search in DeepSeek Harness, relying solely on the built-in Web search means that switching to another search engine (e.g., Exa) requires manually modifying configuration files, restarting, or clicking save — a lengthy operation chain. To quickly switch between “DeepSeek Native Search” and “Exa” on the same plugin configuration page, and to have the switch take effect immediately on the next search, a unified entry point and instant-activation mechanism are needed.
Plugin Overview¶
This is a DeepSeek Harness plugin package that adds a “Search provider” card on the Plugins page, offering a dropdown menu to select either “DeepSeek (Native Search)” or “Exa”. The selection is written to web.searchProvider, so the next web_search call will use the new provider without requiring a restart or save. Maintainer: qwunros.
Core Capabilities¶
- The plugin displays a search provider card under Plugins → Built-in plugin configuration → Search provider.
- After selecting an option from the dropdown,
web.searchProvideris written immediately, and the nextweb_searchcall uses the new provider. - When DeepSeek is selected, the built-in Web search page remains visible, continuing to use DeepSeek’s key, endpoint, and result settings.
- When Exa is selected, the built-in Web search page is hidden, and this card takes over Exa’s key and result settings.
- Once an Exa API key is configured, search calls
POST https://api.exa.ai/searchand maps the results into citable sources. - Without a key, search uses Exa’s free hosted MCP endpoint
https://mcp.exa.ai/mcpand itsweb_search_exatool, parsing the returned title, URL, publication date, and highlighted content. - The Exa key is stored in Harness’s credential store under the key name
EXA_API_KEY; configuration files do not carry plaintext secrets. - The result limit
maxResultsdefaults to 5, and is also constrained bydsh-tool-web’ssearchMaxResults(default 8), with a range of 1–50. - The plugin does not proactively select Exa upon activation; it only disables the plugin if Exa is still selected, automatically falling back to the previously recorded provider to avoid
web.searchProviderpointing to a non-existent provider.
Installation & Activation¶
This plugin is a bundle, installed via the Harness plugin manager’s directory:
dsh plugin add ./
After installation, the plugin inserts a web-search-exa settings row via cordis.patch.yml while keeping the built-in ui-settings-web-search enabled, so the DeepSeek page and selection remain intact.
Typical Usage¶
- Open the card under Plugins → Built-in plugin configuration → Search provider.
- Select Exa from the “Search provider” dropdown menu.
- Configure the Exa API key below (if needed), and set
maxResults(1–50, default 5). - The next
web_searchcall will use sources returned by Exa. - If you switch back to DeepSeek, the built-in Web search page reappears, continuing to use DeepSeek’s search configuration.
Use Cases & Notes¶
- Suitable for scenarios where you need to quickly switch search engines in DSH and want instant activation without a restart.
- The plugin runs with the current DSH process permissions; review the source code and license (MIT) before installing.
- The Exa free endpoint
https://mcp.exa.ai/mcpdepends on network connectivity and Exa service availability. - Tests cover ExaMCP text parsing, search abortion, and both with-key and without-key scenarios. Run them via
node test/provider.test.mjsandnode test/selection.test.mjs; with-key tests require theEXA_API_KEYenvironment variable.
Summary¶
This plugin provides a unified search provider switching entry point on the DSH plugin configuration page, enabling instant switching between DeepSeek and Exa to reduce configuration and restart overhead. For more details, visit: https://github.com/qwunros/dsh-search-mgr