adds http streaming support to server

HTTP streaming is the default. To launch with STDIO the user must pass the `--transport stdio` CLI arguments. This has been documented in the README.md file.
This commit is contained in:
Sampson committed 2025-06-18 12:21:16 -05:00
1 parent 486d4f06f5
commit 81f1c0d6db
7 files changed
+274 -172

No files matched your search

+20 -1
View File
@@ -1,6 +1,6 @@
# Brave Search MCP Server
An MCP server implementation that integrates the Brave Search API, providing both web and local search capabilities.
An MCP server implementation that integrates the Brave Search API, providing both web and local search capabilities. This project supports both HTTP and STDIO transports. By default the project will launch into HTTP Streaming mode. For STDIO support, pass `--transport stdio` via the CLI.
## Features
@@ -148,6 +148,7 @@ docker build -t mcp/brave-search:latest .
## Development
### Testing via Claude Desktop
Clone this repo to your machine, then add a reference to your `claude_desktop_config.json`:
```json
@@ -164,6 +165,24 @@ Clone this repo to your machine, then add a reference to your `claude_desktop_co
}
```
### Testing via MCP Inspector
To test within the MCP Inspector, you'll need to build the project, launch the HTTP server (if you intend to test the HTTP endpoint), and initialize MCP Inspector:
```bash
npm install
npm run build
node dist/index.js # defaults to http-mode, use `node dist/index.js --transport stdio` for stdio-mode
```
From another terminal (within the `dist/` directory):
```bash
npx @modelcontextprotocol/inspector node dist/index.js
```
In order to test STDIO via MCP Inspector, you will need to add `--transport stdio` to the arguments via the Inspector UI.
## License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.