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:
Sampson authored and GitHub committed 2025-08-18 10:37:19 -05:00
1 parent 9b6e458c66
commit b64b2fea18
11 files changed
+65 -164

No files matched your search

+2 -8
View File
@@ -10,20 +10,14 @@ async function main() {
process.exit(1);
}
// default to http server
if (!options.transport || options.transport === 'http') {
httpServer.start();
return;
}
// stdio requires explicit request
if (options.transport === 'stdio') {
await stdioServer.start();
return;
}
console.error('Invalid transport');
process.exit(1);
// default to http server
httpServer.start();
}
main().catch((error) => {