sets stdio as the default transport
This is a breaking change, requiring a new major release of the server. Resolves https://github.com/brave/brave-search-mcp-server/issues/63
This commit is contained in:
1 parent
f3c0a65fec
commit
0bca1a42b3
4 files changed
+16
-13
No files matched your search
+4
-5
@@ -10,14 +10,13 @@ async function main() {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
// stdio requires explicit request
|
||||
if (options.transport === 'stdio') {
|
||||
await stdioServer.start();
|
||||
// default to stdio server unless http is explicitly requested
|
||||
if (options.transport === 'http') {
|
||||
httpServer.start();
|
||||
return;
|
||||
}
|
||||
|
||||
// default to http server
|
||||
httpServer.start();
|
||||
await stdioServer.start();
|
||||
}
|
||||
|
||||
main().catch((error) => {
|
||||
|
||||
Reference in new issue
Block a user