Commit Graph
9 Commits
Author SHA1 Message Date
Sampson 69eb8c9354 chore(logging): removes custom handling
With the release of version 1.17.5 of the SDK, servers no longer need to have their own custom handler for the SetLevelRequestSchema. See https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/1.17.5.
2025-09-10 10:45:53 -05:00
Sampson 9f87c8bb93 feat(tools): implements optional tool exposure (#68)
Allows administrators to specify either a whitelist or a blacklist for determining which tools are desired. This work introduces new command-line arguments `--enabled-tools` and `--disabled-tools`, which cannot be used together. Likewise, this work also considers environment variables `BRAVE_MCP_ENABLED_TOOLS` and `BRAVE_MCP_DISABLED_TOOLS` as another means of communicating desired or undesired tools. See https://github.com/brave/brave-search-mcp-server/issues/62 for more on the motivation behind this feature.
2025-09-10 09:03:58 -05:00
Sampson 4fb81fb605 improve response structure of image tool (#52)
Tool now more closely resembles the documented response shape of the image API endpoint. This tool also no longer preemptively loads base64-encoded image data. The images tool now uses a structured content response. Following the suggestion in https://modelcontextprotocol.io/specification/2025-06-18/server/tools#output-schema, we also provide an Output Schema, enabling clients to validate the response. As a result of this work, the Images tool requires a slightly different registration approach. For this reason, registration can now be handled via a local "register" method in each tool module. When tools were registered externally in a for-loop, the type system was unable to infer the shape of each tool due to the overloaded union (resulting from only the Image tool having an OutputSchema export).
2025-09-06 10:35:08 -05:00
Sampson 398e88ffb8 implement smithery.ai changes (#66)
- Modifies project slightly to support distribution via smithery.ai.
- Resolves https://github.com/brave/brave-search-mcp-server/issues/65
- Overrides outdated formdata-node
2025-09-05 12:59:40 -05:00
Sampson b64b2fea18 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
2025-08-18 10:37:19 -05:00
Sampson a94e4dadab feat: adds proper logging support 2025-08-14 09:33:58 -05:00
Sampson 8ad2521abc unify string parts 2025-08-14 09:33:58 -05:00
Sampson 8f942b9eee Refactor configuration and API; added endpoints for image, video, and news. 2025-07-02 17:04:22 -05:00
Sampson 5f29ef8a47 improved structure and implementation 2025-06-25 16:09:59 -05:00