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.
23 lines
460 B
YAML
23 lines
460 B
YAML
services:
|
|
mcp-server:
|
|
build: .
|
|
cap_drop:
|
|
- all
|
|
deploy:
|
|
restart_policy:
|
|
condition: any
|
|
delay: 5s
|
|
environment:
|
|
- BRAVE_API_KEY
|
|
- BRAVE_MCP_TRANSPORT=http
|
|
- 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
|
|
security_opt:
|
|
- no-new-privileges:true
|