mirror of
https://github.com/hansjone/dsh-search-mcp.git
synced 2026-10-11 12:53:19 +08:00
Restore Desktop Search MCP settings form with Bailian defaults.
Keep boot safe on DSH 0.2 while registering a distinct settings section, lazy remote.credentials wiring, and credential badge state that survives describe redaction after Save. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
8fdb55b025
commit
d729b03f70
7 changed files with 733 additions and 412 deletions
|
|
@ -5,6 +5,7 @@ import { extractSearchResult } from '../lib/extract.js';
|
|||
|
||||
test('catalog exposes every supported provider preset', () => {
|
||||
assert.deepEqual(Object.keys(SEARCH_MCP_CATALOG), [
|
||||
'bailian',
|
||||
'tavily',
|
||||
'brave',
|
||||
'exa',
|
||||
|
|
@ -14,6 +15,18 @@ test('catalog exposes every supported provider preset', () => {
|
|||
]);
|
||||
});
|
||||
|
||||
test('bailian preset pins DashScope WebSearch MCP', () => {
|
||||
const bailian = resolveServer({ id: 'bailian', kind: 'bailian', apiKeyEnv: 'DASHSCOPE_API_KEY' });
|
||||
assert.equal(bailian.transport, 'http');
|
||||
assert.equal(bailian.url, 'https://dashscope.aliyuncs.com/api/v1/mcps/WebSearch/mcp');
|
||||
assert.equal(bailian.authStyle, 'header');
|
||||
assert.equal(bailian.authParam, 'Authorization');
|
||||
assert.equal(bailian.authPrefix, 'Bearer ');
|
||||
assert.equal(bailian.toolName, 'bailian_web_search');
|
||||
assert.equal(bailian.apiKeyEnv, 'DASHSCOPE_API_KEY');
|
||||
assert.equal(bailian.needsKey, true);
|
||||
});
|
||||
|
||||
test('known providers ignore stored connection overrides', () => {
|
||||
const tavily = resolveServer({
|
||||
id: 'primary',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue