Migrate search-mcp to @modelcontextprotocol/client for Desktop 0.2.

Replace the removed monolith SDK import so link/Desktop hosts can resolve MCP from the 0.2 package graph instead of failing import with MODULE_NOT_FOUND.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-10-10 11:54:54 +08:00
parent 9d7de03933
commit 229a36d5f3
5 changed files with 99 additions and 1062 deletions

View file

@ -1,6 +1,6 @@
{
"name": "dsh-search-mcp",
"version": "0.2.38",
"version": "0.2.39",
"description": "Replace dsh's built-in web search with search MCP servers (Tavily / Brave / Exa / Perplexity / DuckDuckGo / custom), configured from the web Settings page. When this plugin is enabled the built-in DeepSeek search provider is disabled.",
"type": "module",
"main": "lib/index.js",
@ -48,7 +48,7 @@
}
},
"dependencies": {
"@modelcontextprotocol/sdk": "1.30.0",
"@modelcontextprotocol/client": "2.0.0",
"ipaddr.js": "2.5.0",
"undici": "6.28.0"
},
@ -58,6 +58,20 @@
"@deepseek-ai/dsh-launch-environment": "*",
"@deepseek-ai/dsh-settings": "*",
"@deepseek-ai/dsh-web": "*",
"@deepseek-ai/schemastery": "*"
"@deepseek-ai/schemastery": "*",
"@modelcontextprotocol/client": "*",
"ipaddr.js": "*",
"undici": "*"
},
"peerDependenciesMeta": {
"@modelcontextprotocol/client": {
"optional": true
},
"ipaddr.js": {
"optional": true
},
"undici": {
"optional": true
}
}
}