feat: add Brave Search MCP, disable unused MCP servers
- Add brave_search MCP with wrapper script for API key - Disable duckduckgo (rate limiting issues) - Disable playwright, commands, codemcp to reduce prompt size - Update context window settings for Llama-3.1-8B 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
22
config.toml
22
config.toml
@@ -2,9 +2,10 @@ model_provider = "litellm"
|
|||||||
# model = "anthropic/claude-sonnet-4-5-20250929"
|
# model = "anthropic/claude-sonnet-4-5-20250929"
|
||||||
model = "hosted_vllm/meta-llama/Llama-3.1-8B-Instruct"
|
model = "hosted_vllm/meta-llama/Llama-3.1-8B-Instruct"
|
||||||
|
|
||||||
# Override litellm provider to set max_tokens
|
# Context window settings for Llama-3.1-8B (24K context)
|
||||||
[model_providers.litellm]
|
model_context_window = 24576
|
||||||
max_tokens = 8192
|
model_auto_compact_token_limit = 15000
|
||||||
|
model_max_output_tokens = 1024
|
||||||
|
|
||||||
[projects."/home/valknar"]
|
[projects."/home/valknar"]
|
||||||
trust_level = "trusted"
|
trust_level = "trusted"
|
||||||
@@ -55,7 +56,7 @@ startup_timeout_sec = 10
|
|||||||
# Browser automation - most popular MCP server (826k weekly downloads)
|
# Browser automation - most popular MCP server (826k weekly downloads)
|
||||||
command = "npx"
|
command = "npx"
|
||||||
args = ["-y", "@playwright/mcp"]
|
args = ["-y", "@playwright/mcp"]
|
||||||
enabled = true
|
enabled = false # Disabled to reduce prompt size
|
||||||
startup_timeout_sec = 20
|
startup_timeout_sec = 20
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
@@ -66,9 +67,16 @@ startup_timeout_sec = 20
|
|||||||
# Web search - Privacy-focused, no API key required
|
# Web search - Privacy-focused, no API key required
|
||||||
command = "npx"
|
command = "npx"
|
||||||
args = ["-y", "duckduckgo-mcp-server"]
|
args = ["-y", "duckduckgo-mcp-server"]
|
||||||
enabled = true
|
enabled = false # Disabled due to rate limiting
|
||||||
startup_timeout_sec = 10
|
startup_timeout_sec = 10
|
||||||
|
|
||||||
|
[mcp_servers.brave_search]
|
||||||
|
# Brave Search - requires API key (BRAVE_API_KEY in .env)
|
||||||
|
command = "/home/valknar/.llmx/run-brave-search-mcp.sh"
|
||||||
|
args = []
|
||||||
|
enabled = true
|
||||||
|
startup_timeout_sec = 15
|
||||||
|
|
||||||
[mcp_servers.portainer]
|
[mcp_servers.portainer]
|
||||||
# Docker container management (requires Portainer running)
|
# Docker container management (requires Portainer running)
|
||||||
command = "npx"
|
command = "npx"
|
||||||
@@ -91,14 +99,14 @@ startup_timeout_sec = 15
|
|||||||
# Shell command execution
|
# Shell command execution
|
||||||
command = "npx"
|
command = "npx"
|
||||||
args = ["-y", "mcp-server-commands"]
|
args = ["-y", "mcp-server-commands"]
|
||||||
enabled = true
|
enabled = false # Disabled to reduce prompt size
|
||||||
startup_timeout_sec = 10
|
startup_timeout_sec = 10
|
||||||
|
|
||||||
[mcp_servers.codemcp]
|
[mcp_servers.codemcp]
|
||||||
# Unified read, write, and command execution (Python uvx from GitHub)
|
# Unified read, write, and command execution (Python uvx from GitHub)
|
||||||
command = "uvx"
|
command = "uvx"
|
||||||
args = ["--from", "git+https://github.com/ezyang/codemcp@prod", "codemcp"]
|
args = ["--from", "git+https://github.com/ezyang/codemcp@prod", "codemcp"]
|
||||||
enabled = true
|
enabled = false # Disabled to reduce prompt size
|
||||||
startup_timeout_sec = 60
|
startup_timeout_sec = 60
|
||||||
|
|
||||||
[mcp_servers.anyquery]
|
[mcp_servers.anyquery]
|
||||||
|
|||||||
7
run-brave-search-mcp.sh
Executable file
7
run-brave-search-mcp.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Wrapper script to run Brave Search MCP server with environment variables
|
||||||
|
set -a
|
||||||
|
source "$(dirname "$0")/.env"
|
||||||
|
set +a
|
||||||
|
|
||||||
|
exec npx -y @brave/brave-search-mcp-server
|
||||||
Reference in New Issue
Block a user