From 4292a2d62cf7fd36e9193ebba4718cf0e0dbbe82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Mon, 1 Dec 2025 04:58:48 +0100 Subject: [PATCH] feat: add Brave Search MCP, disable unused MCP servers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- config.toml | 22 +++++++++++++++------- run-brave-search-mcp.sh | 7 +++++++ 2 files changed, 22 insertions(+), 7 deletions(-) create mode 100755 run-brave-search-mcp.sh diff --git a/config.toml b/config.toml index 942ab0c..b84f0b5 100644 --- a/config.toml +++ b/config.toml @@ -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] diff --git a/run-brave-search-mcp.sh b/run-brave-search-mcp.sh new file mode 100755 index 0000000..9c8806d --- /dev/null +++ b/run-brave-search-mcp.sh @@ -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