forked from HKUDS/DeepCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmcp_agent.config.yaml
More file actions
134 lines (125 loc) · 3.68 KB
/
mcp_agent.config.yaml
File metadata and controls
134 lines (125 loc) · 3.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
$schema: ./schema/mcp-agent.config.schema.json
anthropic: null
default_search_server: filesystem
document_segmentation:
enabled: false
size_threshold_chars: 50000
execution_engine: asyncio
logger:
level: info
path_settings:
path_pattern: logs/mcp-agent-{unique_id}.jsonl
timestamp_format: '%Y%m%d_%H%M%S'
unique_id: timestamp
progress_display: false
transports:
- console
- file
mcp:
servers:
bocha-mcp:
args:
- tools/bocha_search_server.py
command: python
env:
BOCHA_API_KEY: ''
PYTHONPATH: .
brave:
# macos and linux should use this
args:
- -y
- '@modelcontextprotocol/server-brave-search'
command: npx
# windows should use this
# args:
# # please use the correct path for your system
# - C:/Users/LEGION/AppData/Roaming/npm/node_modules/@modelcontextprotocol/server-brave-search/dist/index.js
# command: node
env:
BRAVE_API_KEY: ''
filesystem:
# macos and linux should use this
# Note: "No valid root directories" warning is harmless - connection still works
args:
- -y
- '@modelcontextprotocol/server-filesystem'
- .
- ./deepcode_lab
command: npx
# windows should use this
# args:
# # please use the correct path for your system
# - C:/Users/LEGION/AppData/Roaming/npm/node_modules/@modelcontextprotocol/server-filesystem/dist/index.js
# - .
# command: node
code-implementation:
args:
- tools/code_implementation_server.py
command: python
description: Paper code reproduction tool server - provides file operations,
code execution, search and other functions
env:
PYTHONPATH: .
code-reference-indexer:
args:
- tools/code_reference_indexer.py
command: python
description: Code reference indexer server - Provides intelligent code reference
search from indexed repositories
env:
PYTHONPATH: .
command-executor:
args:
- tools/command_executor.py
command: python
env:
PYTHONPATH: .
document-segmentation:
args:
- tools/document_segmentation_server.py
command: python
description: Document segmentation server - Provides intelligent document analysis
and segmented reading to optimize token usage
env:
PYTHONPATH: .
fetch:
args:
- mcp-server-fetch
command: uvx
file-downloader:
args:
- tools/pdf_downloader.py
command: python
env:
PYTHONPATH: .
github-downloader:
args:
- tools/git_command.py
command: python
env:
PYTHONPATH: .
# LLM Provider Priority (选择使用哪个LLM / Choose which LLM to use)
# Options: "anthropic", "google", "openai"
# If not set or provider unavailable, will fallback to first available provider
llm_provider: "openai" # 设置为 "google", "anthropic", 或 "openai"
#openrouter can be used here and openai professional key
openai:
base_max_tokens: 40000
default_model: "qwen-3"
planning_model: "qwen-3"
implementation_model: "qwen-3"
reasoning_effort: low # Only for thinking models
max_tokens_policy: adaptive
retry_max_tokens: 32768
# Provider configurations
# default_model is used by mcp_agent for planning/analysis phases
# implementation_model is used by code_implementation_workflow for code generation
google:
default_model: "gemini-3-pro-preview"
planning_model: "gemini-3-pro-preview"
implementation_model: "gemini-2.5-flash"
anthropic:
default_model: "claude-sonnet-4.5"
planning_model: "claude-sonnet-4.5"
implementation_model: "claude-sonnet-3.5"
planning_mode: traditional