Skip to content

Commit 551277c

Browse files
committed
fix config
1 parent 584f4a4 commit 551277c

File tree

3 files changed

+96
-3
lines changed

3 files changed

+96
-3
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ venv/
1414
*.env*
1515
.env_example
1616

17-
# MCP Agent Configuration
18-
mcp_agent.config.yaml
19-
mcp_agent.secrets.yaml
2017

2118
# Build / Distribution
2219
dist/

mcp_agent.config.yaml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
$schema: ./schema/mcp-agent.config.schema.json
2+
3+
# Default search server configuration
4+
# Options: "brave" or "bocha-mcp"
5+
default_search_server: "bocha-mcp"
6+
7+
# Planning mode configuration
8+
# Options: "segmented" or "traditional"
9+
# segmented: Breaks down large tasks to avoid token truncation (recommended)
10+
# traditional: Uses parallel agents but may hit token limits
11+
planning_mode: "traditional"
12+
13+
execution_engine: asyncio
14+
logger:
15+
transports: [console, file]
16+
level: info
17+
progress_display: true
18+
path_settings:
19+
path_pattern: "logs/mcp-agent-{unique_id}.jsonl"
20+
unique_id: "timestamp" # Options: "timestamp" or "session_id"
21+
timestamp_format: "%Y%m%d_%H%M%S"
22+
23+
24+
25+
mcp:
26+
servers:
27+
brave:
28+
# On windows replace the command and args line to use `node` and the absolute path to the server.
29+
# Use `npm i -g @modelcontextprotocol/server-brave-search` to install the server globally.
30+
# Use `npm -g root` to find the global node_modules path.`
31+
# command: "node"
32+
# args: ["c:/Program Files/nodejs/node_modules/@modelcontextprotocol/server-brave-search/dist/index.js"]
33+
command: "npx"
34+
args: ["-y", "@modelcontextprotocol/server-brave-search"]
35+
env:
36+
# You can also place your BRAVE_API_KEY in the fastagent.secrets.yaml file.
37+
BRAVE_API_KEY: ""
38+
filesystem:
39+
# On windows update the command and arguments to use `node` and the absolute path to the server.
40+
# Use `npm i -g @modelcontextprotocol/server-filesystem` to install the server globally.
41+
# Use `npm -g root` to find the global node_modules path.`
42+
# command: "node"
43+
# args: ["c:/Program Files/nodejs/node_modules/@modelcontextprotocol/server-filesystem/dist/index.js","."]
44+
command: "npx"
45+
args: ["-y", "@modelcontextprotocol/server-filesystem"]
46+
fetch:
47+
command: "uvx"
48+
args: ["mcp-server-fetch"]
49+
github-downloader:
50+
command: "python"
51+
args: ["tools/git_command.py"]
52+
env:
53+
PYTHONPATH: "."
54+
file-downloader:
55+
command: "python"
56+
args: ["tools/pdf_downloader.py"]
57+
env:
58+
PYTHONPATH: "."
59+
command-executor:
60+
command: "python"
61+
args: ["tools/command_executor.py"]
62+
env:
63+
PYTHONPATH: "."
64+
code-implementation:
65+
command: "python"
66+
args: ["tools/code_implementation_server.py"]
67+
env:
68+
PYTHONPATH: "."
69+
description: "Paper code reproduction tool server - provides file operations, code execution, search and other functions"
70+
code-reference-indexer:
71+
command: "python"
72+
args: ["tools/code_reference_indexer.py"]
73+
env:
74+
PYTHONPATH: "."
75+
description: "Code reference indexer server - Provides intelligent code reference search from indexed repositories"
76+
bocha-mcp:
77+
command: "python3"
78+
args: ["tools/bocha_search_server.py"]
79+
env:
80+
PYTHONPATH: "."
81+
BOCHA_API_KEY: ""
82+
83+
openai:
84+
# Secrets (API keys, etc.) are stored in an mcp_agent.secrets.yaml file which can be gitignored
85+
# default_model: "o3-mini"
86+
default_model: "anthropic/claude-sonnet-4"
87+
88+
89+
anthropic:

mcp_agent.secrets.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
openai:
2+
api_key: ""
3+
base_url: ""
4+
5+
6+
anthropic:
7+
api_key: ""

0 commit comments

Comments
 (0)