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.
This commit is contained in:
Sampson authored and GitHub committed 2025-09-10 09:03:58 -05:00
1 parent 0bca1a42b3
commit 9f87c8bb93
4 files changed
+50 -1

No files matched your search

+2
View File
@@ -13,6 +13,8 @@ services:
- BRAVE_MCP_PORT=8080
- BRAVE_MCP_HOST=0.0.0.0
- BRAVE_MCP_LOG_LEVEL=info
- BRAVE_MCP_ENABLED_TOOLS
- BRAVE_MCP_DISABLED_TOOLS
init: true
ports:
- 8080:8080