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:
2025-12-01 04:58:48 +01:00
parent b1817230c6
commit 4292a2d62c
2 changed files with 22 additions and 7 deletions

View File

@@ -2,9 +2,10 @@ model_provider = "litellm"
# model = "anthropic/claude-sonnet-4-5-20250929"
model = "hosted_vllm/meta-llama/Llama-3.1-8B-Instruct"
# Override litellm provider to set max_tokens
[model_providers.litellm]
max_tokens = 8192
# Context window settings for Llama-3.1-8B (24K context)
model_context_window = 24576
model_auto_compact_token_limit = 15000
model_max_output_tokens = 1024
[projects."/home/valknar"]
trust_level = "trusted"
@@ -55,7 +56,7 @@ startup_timeout_sec = 10
# Browser automation - most popular MCP server (826k weekly downloads)
command = "npx"
args = ["-y", "@playwright/mcp"]
enabled = true
enabled = false # Disabled to reduce prompt size
startup_timeout_sec = 20
# ==============================================================================
@@ -66,9 +67,16 @@ startup_timeout_sec = 20
# Web search - Privacy-focused, no API key required
command = "npx"
args = ["-y", "duckduckgo-mcp-server"]
enabled = true
enabled = false # Disabled due to rate limiting
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]
# Docker container management (requires Portainer running)
command = "npx"
@@ -91,14 +99,14 @@ startup_timeout_sec = 15
# Shell command execution
command = "npx"
args = ["-y", "mcp-server-commands"]
enabled = true
enabled = false # Disabled to reduce prompt size
startup_timeout_sec = 10
[mcp_servers.codemcp]
# Unified read, write, and command execution (Python uvx from GitHub)
command = "uvx"
args = ["--from", "git+https://github.com/ezyang/codemcp@prod", "codemcp"]
enabled = true
enabled = false # Disabled to reduce prompt size
startup_timeout_sec = 60
[mcp_servers.anyquery]

7
run-brave-search-mcp.sh Executable file
View 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