mcp-code-indexer 3.4.2__py3-none-any.whl → 3.4.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -336,13 +336,8 @@ class ConnectionHealthMonitor:
336
336
  if retry_executor:
337
337
  health_status["retry_statistics"] = retry_executor.get_retry_stats()
338
338
 
339
- # Include database-level statistics if available
340
- if hasattr(self.database_manager, "get_database_stats"):
341
- try:
342
- db_stats = self.database_manager.get_database_stats()
343
- health_status["database_statistics"] = db_stats
344
- except Exception as e:
345
- logger.warning(f"Failed to get database statistics: {e}")
339
+ # Avoid circular dependency - don't include database stats here
340
+ # (they are included separately in the comprehensive diagnostics)
346
341
 
347
342
  return health_status
348
343
 
mcp_code_indexer/main.py CHANGED
@@ -321,6 +321,7 @@ async def handle_runcommand(args: argparse.Namespace) -> None:
321
321
  "update_codebase_overview": server._handle_update_codebase_overview,
322
322
  "get_word_frequency": server._handle_get_word_frequency,
323
323
  "search_codebase_overview": server._handle_search_codebase_overview,
324
+ "check_database_health": server._handle_check_database_health,
324
325
  }
325
326
 
326
327
  if tool_name not in tool_handlers:
@@ -333,6 +334,7 @@ async def handle_runcommand(args: argparse.Namespace) -> None:
333
334
  }
334
335
  },
335
336
  )
337
+
336
338
  error_result = {
337
339
  "error": {"code": -32601, "message": f"Unknown tool: {tool_name}"}
338
340
  }
@@ -1337,16 +1337,15 @@ class MCPCodeIndexServer:
1337
1337
  database_stats = self.db_manager.get_database_stats()
1338
1338
 
1339
1339
  return {
1340
- "comprehensive_diagnostics": comprehensive_diagnostics,
1341
- "database_statistics": database_stats,
1342
- "configuration": {
1343
- **self.db_config,
1344
- "retry_executor_config": (
1345
- self.db_manager._retry_executor.config.__dict__
1346
- if hasattr(self.db_manager, "_retry_executor")
1347
- and self.db_manager._retry_executor
1348
- else {}
1349
- ),
1340
+ "is_healthy": comprehensive_diagnostics.get("current_status", {}).get("is_healthy", True),
1341
+ "status": comprehensive_diagnostics.get("current_status", {}),
1342
+ "performance": {
1343
+ "avg_response_time_ms": comprehensive_diagnostics.get("metrics", {}).get("avg_response_time_ms", 0),
1344
+ "success_rate": comprehensive_diagnostics.get("current_status", {}).get("recent_success_rate_percent", 100)
1345
+ },
1346
+ "database": {
1347
+ "total_operations": database_stats.get("retry_executor", {}).get("total_operations", 0),
1348
+ "pool_size": database_stats.get("connection_pool", {}).get("current_size", 0)
1350
1349
  },
1351
1350
  "server_info": {
1352
1351
  "token_limit": self.token_limit,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mcp-code-indexer
3
- Version: 3.4.2
3
+ Version: 3.4.3
4
4
  Summary: MCP server that tracks file descriptions across codebases, enabling AI agents to efficiently navigate and understand code through searchable summaries and token-aware overviews.
5
5
  License: MIT
6
6
  Keywords: mcp,model-context-protocol,code-indexer,ai-tools,codebase-navigation,file-descriptions,llm-tools
@@ -40,8 +40,8 @@ Description-Content-Type: text/markdown
40
40
 
41
41
  # MCP Code Indexer 🚀
42
42
 
43
- [![PyPI version](https://badge.fury.io/py/mcp-code-indexer.svg?33)](https://badge.fury.io/py/mcp-code-indexer)
44
- [![Python](https://img.shields.io/pypi/pyversions/mcp-code-indexer.svg?33)](https://pypi.org/project/mcp-code-indexer/)
43
+ [![PyPI version](https://badge.fury.io/py/mcp-code-indexer.svg?34)](https://badge.fury.io/py/mcp-code-indexer)
44
+ [![Python](https://img.shields.io/pypi/pyversions/mcp-code-indexer.svg?34)](https://pypi.org/project/mcp-code-indexer/)
45
45
  [![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
46
46
 
47
47
  A production-ready **Model Context Protocol (MCP) server** that revolutionizes how AI agents navigate and understand codebases. Built for high-concurrency environments with advanced database resilience, the server provides instant access to intelligent descriptions, semantic search, and context-aware recommendations while maintaining 800+ writes/sec throughput.
@@ -5,7 +5,7 @@ mcp_code_indexer/claude_api_handler.py,sha256=uZF6P64Cac9AHfO2Q3Whe4exhZyZmqZ1gr
5
5
  mcp_code_indexer/cleanup_manager.py,sha256=qjIAMiJ-F1pfgCwVbNaNE0dfs8Wh9aaWh51DBMCWFuI,9491
6
6
  mcp_code_indexer/data/stop_words_english.txt,sha256=7Zdd9ameVgA6tN_zuXROvHXD4hkWeELVywPhb7FJEkw,6343
7
7
  mcp_code_indexer/database/__init__.py,sha256=aPq_aaRp0aSwOBIq9GkuMNjmLxA411zg2vhdrAuHm-w,38
8
- mcp_code_indexer/database/connection_health.py,sha256=zhw6WLR-YVDUKM9tQLcpcEM0yoaheYYzpa0iSMS-_N4,25476
8
+ mcp_code_indexer/database/connection_health.py,sha256=vu8c8lDLEwva7ldTdxvlACTKT59kO-KjZ9I3tMbwr3s,25240
9
9
  mcp_code_indexer/database/database.py,sha256=BpsWoy5qXqLQpEZ42dt5efOGSrLhokQyvAc9ZK0afc4,46895
10
10
  mcp_code_indexer/database/exceptions.py,sha256=Cs9_qc-6724DPJc25fPMvNfO3JQCHrOQ80y8Q55w_3Y,10389
11
11
  mcp_code_indexer/database/models.py,sha256=ITF5dMSBCuaunQ3YeaVQOZ5Kb8y59I5Fg0EU7O9Ez3A,7017
@@ -15,7 +15,7 @@ mcp_code_indexer/error_handler.py,sha256=XBjjEriq1diPTGKpHcaBh9fj88_qhuNMwPeLiTW
15
15
  mcp_code_indexer/file_scanner.py,sha256=smY1Yfxfyqb_J5RQz5ETaSgE2_syC2SUUwzJxby3Bg8,11432
16
16
  mcp_code_indexer/git_hook_handler.py,sha256=mP8uvtQFo4C6dPNSBlG4NUXwVTXofDzDpjZVSk43yzw,45542
17
17
  mcp_code_indexer/logging_config.py,sha256=hexJWw7-6QQkH_2BwtKGO1CDOtQnP8F3Yss_yHKnzE4,9816
18
- mcp_code_indexer/main.py,sha256=CMvEiwMd6O0oG25aIGbpxNjQzD5dH-ROFj7j1ff8RvE,30724
18
+ mcp_code_indexer/main.py,sha256=2T2yXG_-MIDmj1xdW85FolaOtv4vshlWjljhRSIh5IA,30800
19
19
  mcp_code_indexer/middleware/__init__.py,sha256=p-mP0pMsfiU2yajCPvokCUxUEkh_lu4XJP1LyyMW2ug,220
20
20
  mcp_code_indexer/middleware/error_middleware.py,sha256=YHd7sm4PdNPIMKD8Nub_N7WaOH2JtiqkHBbTOGyxTno,11685
21
21
  mcp_code_indexer/migrations/001_initial.sql,sha256=hIXkCP4LA_4A9HJ1CHU0a1DD-a6EN6u-uJPMqW0c2Yo,4120
@@ -25,12 +25,12 @@ mcp_code_indexer/migrations/004_remove_branch_dependency.sql,sha256=whZvj2qfba1-
25
25
  mcp_code_indexer/migrations/005_remove_git_remotes.sql,sha256=vT84AaV1hyN4zq5W67hR14TgAwhW7_RNtBHrCoksxA4,1299
26
26
  mcp_code_indexer/query_preprocessor.py,sha256=PLFR1T9mSn2Mkxw6-GB4GkxyfzjJ2ia3dgLPcziHfVA,5483
27
27
  mcp_code_indexer/server/__init__.py,sha256=16xMcuriUOBlawRqWNBk6niwrvtv_JD5xvI36X1Vsmk,41
28
- mcp_code_indexer/server/mcp_server.py,sha256=L83xi38SEqoIXH_ZJVOmMNFwTnGRHbQRuAAxLjqwCWA,71554
28
+ mcp_code_indexer/server/mcp_server.py,sha256=N0vkQvGVGvGiCbekMiEsFfX3J9TCLpvQCBx-l7M94zE,71777
29
29
  mcp_code_indexer/tiktoken_cache/9b5ad71b2ce5302211f9c61530b329a4922fc6a4,sha256=Ijkht27pm96ZW3_3OFE-7xAPtR0YyTWXoRO8_-hlsqc,1681126
30
30
  mcp_code_indexer/token_counter.py,sha256=e6WsyCEWMMSkMwLbcVtr5e8vEqh-kFqNmiJErCNdqHE,8220
31
31
  mcp_code_indexer/tools/__init__.py,sha256=m01mxML2UdD7y5rih_XNhNSCMzQTz7WQ_T1TeOcYlnE,49
32
- mcp_code_indexer-3.4.2.dist-info/LICENSE,sha256=JN9dyPPgYwH9C-UjYM7FLNZjQ6BF7kAzpF3_4PwY4rY,1086
33
- mcp_code_indexer-3.4.2.dist-info/METADATA,sha256=XhyzREnGleVrnlpuObat0Mt7oO2XyYDZ4yR8F0vPsRk,19359
34
- mcp_code_indexer-3.4.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
35
- mcp_code_indexer-3.4.2.dist-info/entry_points.txt,sha256=UABj7HZ0mC6rvF22gxaz2LLNLGQShTrFmp5u00iUtvo,67
36
- mcp_code_indexer-3.4.2.dist-info/RECORD,,
32
+ mcp_code_indexer-3.4.3.dist-info/LICENSE,sha256=JN9dyPPgYwH9C-UjYM7FLNZjQ6BF7kAzpF3_4PwY4rY,1086
33
+ mcp_code_indexer-3.4.3.dist-info/METADATA,sha256=I4bF0EWJIzmDmMdOtF8EWxqAN11V0ZYAfgit2vulA2s,19359
34
+ mcp_code_indexer-3.4.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
35
+ mcp_code_indexer-3.4.3.dist-info/entry_points.txt,sha256=UABj7HZ0mC6rvF22gxaz2LLNLGQShTrFmp5u00iUtvo,67
36
+ mcp_code_indexer-3.4.3.dist-info/RECORD,,