single server per transport (#48)
resolves https://github.com/brave/brave-search-mcp-server/issues/47 - Updates SDK to 1.17.3 - Creates a single server instance per transport - Removes unnecessary ClientLogger (tool execution methods have access to a sendNotification method if so desired) - Other small syntactic cleanups
This commit is contained in:
1 parent
9b6e458c66
commit
b64b2fea18
11 files changed
+65
-164
No files matched your search
@@ -1,9 +1,7 @@
|
||||
import type { CallToolResult, ToolAnnotations } from '@modelcontextprotocol/sdk/types.js';
|
||||
import { summarizerQueryParams, type SummarizerQueryParams } from './params.js';
|
||||
import API from '../../BraveAPI/index.js';
|
||||
import { type QueryParams as WebQueryParams } from '../web/params.js';
|
||||
import { SummarizerSearchApiResponse } from './types.js';
|
||||
import ClientLogger from '../../ClientLogger.js';
|
||||
|
||||
export const name = 'brave_summarizer';
|
||||
|
||||
@@ -82,7 +80,6 @@ const pollForSummary = async (
|
||||
result = response;
|
||||
}
|
||||
} catch (error) {
|
||||
await ClientLogger.log('error', `Error polling for summarizer results: ${error}`);
|
||||
await new Promise((resolve) => setTimeout(resolve, pollInterval));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user