Commit 8c05a53
committed
feat: Complete Phase 4 - MCP Server Management UI
Phase 4 Complete: MCP Server Management UI (US-RAG-001)
## New Features
- **MCP Management App** (apps/mcp_management_app.py, 671 lines)
- Tool Registry page with filtering and search
- Prompt Database management
- Server Monitoring with real-time stats
- Interactive Testing Interface for tools and prompts
- **VS Code Integration** (.vscode/launch.json)
- Added launch config for MCP app on port 8505
## RAG System Enhancements
- **Quality-Driven Re-Retrieval** (agents/rag/)
- Realistic QA assessment focusing on answerability
- Configurable min_quality_score and max_re_retrieval_attempts
- Smart re-retrieval logic to prevent infinite loops
- **Enhanced Document Selection** (context/context_engine.py)
- Document filtering with metadata-based selection
- Smart context compression for large result sets
- **Improved Metadata Extraction** (utils/rag/document_loader.py)
- LLM-powered metadata extraction (title, summary, keywords)
- Duplicate detection system
- Two-stage HTML chunking for better quality
- **Re-ranker Improvements** (agents/rag/re_ranker_agent.py)
- Enhanced keyword scoring with phrase matching
- Metadata-aware ranking (title, keywords, summary)
- Increased minimum quality threshold
## Bug Fixes
- Fixed MCP ToolDefinition parameter structure
- Fixed AccessLevel vs SecurityLevel usage
- Fixed AgentPromptLoader integration
- Removed RAG_SWARM_TERMINATION_FIX.md (issue resolved)
- Updated systematic_completion rule docs
## Documentation
- Created US-RAG-001-PHASE-4-COMPLETE.md
- Updated apps/README.md with MCP app info
- Updated US-RAG-001.md acceptance criteria
## Test Status
- 26 tests passing
- 1 unrelated test failure (test_reporter)
- All RAG functionality tested and operational1 parent a7d34ad commit 8c05a53
File tree
20 files changed
+2927
-438
lines changed- .cursor/rules/core
- .vscode
- agents/rag
- apps
- context
- docs
- agile/sprints/current
- user_stories
- architecture
- scripts
- utils
- mcp
- rag
20 files changed
+2927
-438
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
506 | 540 | | |
507 | 541 | | |
508 | 542 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 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 | + | |
105 | 130 | | |
106 | 131 | | |
107 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | | - | |
95 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | | - | |
99 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
100 | 105 | | |
101 | | - | |
| 106 | + | |
102 | 107 | | |
103 | 108 | | |
104 | 109 | | |
| |||
145 | 150 | | |
146 | 151 | | |
147 | 152 | | |
148 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
149 | 159 | | |
150 | 160 | | |
151 | 161 | | |
| |||
163 | 173 | | |
164 | 174 | | |
165 | 175 | | |
166 | | - | |
| 176 | + | |
| 177 | + | |
167 | 178 | | |
168 | | - | |
169 | | - | |
170 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
171 | 182 | | |
172 | 183 | | |
173 | | - | |
| 184 | + | |
174 | 185 | | |
175 | 186 | | |
176 | 187 | | |
177 | | - | |
| 188 | + | |
178 | 189 | | |
179 | 190 | | |
180 | 191 | | |
181 | | - | |
| 192 | + | |
182 | 193 | | |
183 | 194 | | |
184 | 195 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
| 196 | + | |
190 | 197 | | |
191 | 198 | | |
192 | 199 | | |
193 | | - | |
194 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
195 | 203 | | |
196 | 204 | | |
197 | 205 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
202 | 210 | | |
203 | | - | |
| 211 | + | |
204 | 212 | | |
205 | 213 | | |
206 | 214 | | |
| |||
231 | 239 | | |
232 | 240 | | |
233 | 241 | | |
234 | | - | |
| 242 | + | |
235 | 243 | | |
236 | | - | |
| 244 | + | |
237 | 245 | | |
238 | 246 | | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
243 | 256 | | |
244 | | - | |
| 257 | + | |
245 | 258 | | |
246 | 259 | | |
247 | 260 | | |
248 | 261 | | |
249 | 262 | | |
250 | 263 | | |
251 | | - | |
| 264 | + | |
252 | 265 | | |
253 | | - | |
| 266 | + | |
254 | 267 | | |
255 | 268 | | |
256 | | - | |
| 269 | + | |
257 | 270 | | |
258 | 271 | | |
259 | 272 | | |
260 | | - | |
| 273 | + | |
| 274 | + | |
261 | 275 | | |
262 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
263 | 283 | | |
264 | 284 | | |
265 | 285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
187 | 190 | | |
188 | 191 | | |
189 | 192 | | |
190 | | - | |
| 193 | + | |
| 194 | + | |
191 | 195 | | |
192 | 196 | | |
193 | 197 | | |
| |||
309 | 313 | | |
310 | 314 | | |
311 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
312 | 321 | | |
313 | 322 | | |
314 | | - | |
| 323 | + | |
315 | 324 | | |
316 | | - | |
| 325 | + | |
317 | 326 | | |
318 | 327 | | |
319 | 328 | | |
320 | 329 | | |
321 | 330 | | |
322 | 331 | | |
323 | 332 | | |
324 | | - | |
| 333 | + | |
325 | 334 | | |
326 | 335 | | |
327 | 336 | | |
328 | 337 | | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
329 | 341 | | |
330 | 342 | | |
| 343 | + | |
| 344 | + | |
331 | 345 | | |
332 | | - | |
333 | 346 | | |
334 | | - | |
335 | | - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
336 | 355 | | |
337 | 356 | | |
338 | | - | |
339 | | - | |
| 357 | + | |
| 358 | + | |
340 | 359 | | |
341 | 360 | | |
342 | 361 | | |
| |||
361 | 380 | | |
362 | 381 | | |
363 | 382 | | |
364 | | - | |
365 | | - | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
366 | 388 | | |
367 | 389 | | |
368 | 390 | | |
| |||
0 commit comments