Repository navigation
Expand file tree
/
Copy pathsettings.toml
More file actions
178 lines (136 loc) · 3.29 KB
/
Copy pathsettings.toml
File metadata and controls
178 lines (136 loc) · 3.29 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
[default]
# Repositories to track (for MCP server)
repositories = [
{url = "https://github.com/johannhartmann/mcpcodeanalysis", branch = "main"}
]
[default.scanner]
# Paths to scan for code files
root_paths = ["."]
# Patterns to exclude from scanning
exclude_patterns = [
"__pycache__", "*.pyc", ".git", ".venv", "venv", "env", ".env",
"node_modules", ".pytest_cache", ".mypy_cache", ".ruff_cache",
"*.egg-info", "dist", "build", "htmlcov", ".coverage"
]
# File size limits
max_file_size_mb = 10
# Git integration
use_git = true
git_branch = "main"
[default.parser]
# Languages to parse (currently only Python)
languages = ["python"]
# Chunk size for large files (in lines)
chunk_size = 100
# Maximum depth for nested structures
max_depth = 10
# Extract docstrings
extract_docstrings = true
# Extract type hints
extract_type_hints = true
[default.embeddings]
# OpenAI model for embeddings
model = "text-embedding-ada-002"
# Batch size for embedding generation
batch_size = 100
# Maximum tokens per chunk
max_tokens = 8000
# Cache embeddings locally
use_cache = true
cache_dir = ".embeddings_cache"
# Generate both raw and interpreted embeddings
generate_interpreted = true
[default.database]
# PostgreSQL connection settings
host = "postgres"
port = 5432
database = "code_analysis"
user = "codeanalyzer"
password = "developmentpass"
# Connection pool settings
pool_size = 10
max_overflow = 20
# pgvector settings
vector_dimension = 1536
index_lists = 100 # ivfflat index parameter
[default.mcp]
# Server settings
host = "0.0.0.0"
port = 8080
# CORS settings
allow_origins = ["*"]
# Rate limiting
rate_limit_enabled = false
rate_limit_per_minute = 60
# Request timeout (seconds)
request_timeout = 30
[default.query]
# Default search limit
default_limit = 10
max_limit = 100
# Similarity threshold (0-1)
similarity_threshold = 0.7
# Include file context in results
include_context = true
context_lines = 3
# Ranking weights
[default.query.ranking_weights]
semantic_similarity = 0.6
keyword_match = 0.2
recency = 0.1
popularity = 0.1
[default.indexing]
# Incremental indexing interval (seconds)
update_interval = 300 # 5 minutes
# Parallel processing
parallel_workers = 4
# Memory limits
max_memory_mb = 2048
# Progress reporting
report_progress = true
progress_interval = 100 # files
[default.logging]
# Log level (DEBUG, INFO, WARNING, ERROR)
level = "INFO"
# Log format (json, text)
format = "json"
# Log file settings
file_enabled = true
file_path = "logs/mcp-server.log"
file_rotation = "daily"
file_retention_days = 7
# Console logging
console_enabled = true
console_colorized = true
[default.monitoring]
# Metrics collection
metrics_enabled = false
metrics_port = 9090
# Health check endpoint
health_check_enabled = true
health_check_path = "/health"
# Performance profiling
profiling_enabled = false
profiling_path = "profiles/"
[production]
# Production overrides
[production.database]
password = "@format {env[POSTGRES_PASSWORD]}"
[production.logging]
level = "WARNING"
console_colorized = false
[production.monitoring]
metrics_enabled = true
[development]
# Development overrides
[development.logging]
level = "DEBUG"
format = "text"
[testing]
# Testing overrides
[testing.database]
host = "localhost"
database = "test_code_analysis"
[testing.logging]
file_enabled = false
console_enabled = false