mcp-code-indexer 4.2.12__py3-none-any.whl → 4.2.13__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.
@@ -744,7 +744,7 @@ class DatabaseManager:
744
744
  """Get all projects in the database."""
745
745
  async with self.get_connection() as db:
746
746
  cursor = await db.execute(
747
- "SELECT id, name, aliases, created, last_accessed FROM projects"
747
+ "SELECT id, name, aliases, created, last_accessed, COALESCE(vector_mode, 0) FROM projects"
748
748
  )
749
749
  rows = await cursor.fetchall()
750
750
 
@@ -757,6 +757,30 @@ class DatabaseManager:
757
757
  aliases=aliases,
758
758
  created=row[3],
759
759
  last_accessed=row[4],
760
+ vector_mode=bool(row[5]),
761
+ )
762
+ projects.append(project)
763
+
764
+ return projects
765
+
766
+ async def get_vector_enabled_projects(self) -> List[Project]:
767
+ """Get projects that have vector mode enabled."""
768
+ async with self.get_connection() as db:
769
+ cursor = await db.execute(
770
+ "SELECT id, name, aliases, created, last_accessed, vector_mode FROM projects WHERE vector_mode = 1"
771
+ )
772
+ rows = await cursor.fetchall()
773
+
774
+ projects = []
775
+ for row in rows:
776
+ aliases = json.loads(row[2]) if row[2] else []
777
+ project = Project(
778
+ id=row[0],
779
+ name=row[1],
780
+ aliases=aliases,
781
+ created=row[3],
782
+ last_accessed=row[4],
783
+ vector_mode=bool(row[5]),
760
784
  )
761
785
  projects.append(project)
762
786
 
@@ -32,6 +32,7 @@ class Project(BaseModel):
32
32
  last_accessed: datetime = Field(
33
33
  default_factory=datetime.utcnow, description="Last access timestamp"
34
34
  )
35
+ vector_mode: bool = Field(default=False, description="Enable vector search for this project")
35
36
 
36
37
 
37
38
  class FileDescription(BaseModel):
@@ -113,11 +113,13 @@ class VectorDaemon:
113
113
 
114
114
  while self.is_running:
115
115
  try:
116
- # Get all projects that need vector indexing
117
- projects = await self.db_manager.get_all_projects()
116
+ # Get projects that have vector mode enabled
117
+ projects = await self.db_manager.get_vector_enabled_projects()
118
118
 
119
119
  for project in projects:
120
- if project.name not in self.monitored_projects and project.aliases:
120
+ if (project.name not in self.monitored_projects and
121
+ project.aliases and
122
+ project.vector_mode):
121
123
  logger.info(f"Adding project to monitoring: {project.name}")
122
124
  self.monitored_projects.add(project.name)
123
125
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mcp-code-indexer
3
- Version: 4.2.12
3
+ Version: 4.2.13
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
@@ -48,8 +48,8 @@ Description-Content-Type: text/markdown
48
48
 
49
49
  # MCP Code Indexer 🚀
50
50
 
51
- [![PyPI version](https://badge.fury.io/py/mcp-code-indexer.svg?59)](https://badge.fury.io/py/mcp-code-indexer)
52
- [![Python](https://img.shields.io/pypi/pyversions/mcp-code-indexer.svg?59)](https://pypi.org/project/mcp-code-indexer/)
51
+ [![PyPI version](https://badge.fury.io/py/mcp-code-indexer.svg?60)](https://badge.fury.io/py/mcp-code-indexer)
52
+ [![Python](https://img.shields.io/pypi/pyversions/mcp-code-indexer.svg?60)](https://pypi.org/project/mcp-code-indexer/)
53
53
  [![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
54
54
 
55
55
  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.
@@ -8,10 +8,10 @@ mcp_code_indexer/commands/makelocal.py,sha256=T_44so96jcs1FNlft9E3nAq0LlOzQLhjLd
8
8
  mcp_code_indexer/data/stop_words_english.txt,sha256=feRGP8WG5hQPo-wZN5ralJiSv1CGw4h3010NBJnJ0Z8,6344
9
9
  mcp_code_indexer/database/__init__.py,sha256=aPq_aaRp0aSwOBIq9GkuMNjmLxA411zg2vhdrAuHm-w,38
10
10
  mcp_code_indexer/database/connection_health.py,sha256=jZr3tCbfjUJujdXe_uxtm1N4c31dMV4euiSY4ulamOE,25497
11
- mcp_code_indexer/database/database.py,sha256=bBjQoa1cH8iAHZxnv157229yBCZhcZre4g6QtBvl6Dk,47321
11
+ mcp_code_indexer/database/database.py,sha256=CrFkUJKyKV7mJsI64EoIwfoiEj_3JMN_QV-BGOeFLHA,48245
12
12
  mcp_code_indexer/database/database_factory.py,sha256=zm942m72mqCYTGh1GFyVw-hBsbZcZnx3znJ2ZQPwISM,4316
13
13
  mcp_code_indexer/database/exceptions.py,sha256=bamoC-ssw_TMRA5-6lzX6d_1DlcXXrcmiCMBdUEQ9dI,10479
14
- mcp_code_indexer/database/models.py,sha256=OBIHmggY7BK-b9xak616YwttGS8pr8fY2DnAdP5JqYY,13181
14
+ mcp_code_indexer/database/models.py,sha256=ggiyjkkC2C5hmntgNcLX4wJMllDH1oh6VuuHUNgY9EY,13279
15
15
  mcp_code_indexer/database/path_resolver.py,sha256=1Ubx6Ly5F2dnvhbdN3tqyowBHslABXpoA6wgL4BQYGo,3461
16
16
  mcp_code_indexer/database/retry_executor.py,sha256=6Hb0BM2BO6fl7sTIHtHFcwgV93W22eOrFvexYtFpa0k,13966
17
17
  mcp_code_indexer/deepask_handler.py,sha256=qI9h_Me5WQAbt3hzzDG8XDBMZlnvx-I9R7OsmO_o8aA,18497
@@ -47,7 +47,7 @@ mcp_code_indexer/vector_mode/chunking/ast_chunker.py,sha256=GTl_6U0nSgDRRzKS07tJ
47
47
  mcp_code_indexer/vector_mode/chunking/chunk_optimizer.py,sha256=xD0zEibjt6FLBFaKHNc63-iKTtCgnOlLL_9Hc8mCrzE,19752
48
48
  mcp_code_indexer/vector_mode/chunking/language_handlers.py,sha256=YEpTVjzyJH445OjniGV05apexsfG5KVR4lwBEl4mGJc,18189
49
49
  mcp_code_indexer/vector_mode/config.py,sha256=g5p9Q4EAR20DfLv4RxaQnk3_UdysuvWS8rcsjs1vgwI,6680
50
- mcp_code_indexer/vector_mode/daemon.py,sha256=Hzk4M5prNPWzaTjt_eaPEzyMy2PNK1QjdgQsCukfUf0,12254
50
+ mcp_code_indexer/vector_mode/daemon.py,sha256=MRXp7eycnPzO80k_NqJl9s0paVqcWnJ865frBK0tC-E,12341
51
51
  mcp_code_indexer/vector_mode/monitoring/__init__.py,sha256=9rNWCvHxRMvYumdIrPjb5K9fpOwe1Aem24hdh8gXoDM,439
52
52
  mcp_code_indexer/vector_mode/monitoring/change_detector.py,sha256=X82e_sKbJJFPhqZFJubLQb8Rs-srRtS7sh0nUOsPCPw,10338
53
53
  mcp_code_indexer/vector_mode/monitoring/file_watcher.py,sha256=AQ6YHSKXPubtprLZngeLb0othJOCNQZ7wwXUvqwphT4,15299
@@ -58,8 +58,8 @@ mcp_code_indexer/vector_mode/providers/voyage_client.py,sha256=pfm9BOx5Temf0LM-V
58
58
  mcp_code_indexer/vector_mode/security/__init__.py,sha256=itfeuysSqV-m9xuo-CMkAoucxexVfPgeOU-ieTLvdls,336
59
59
  mcp_code_indexer/vector_mode/security/patterns.py,sha256=0xaiMnZm7YXswq3hVe_DJYePE9MhWuvizApLnmXus9M,11572
60
60
  mcp_code_indexer/vector_mode/security/redactor.py,sha256=tsFzhCJ99bp4EFqQVjZ-4f8Uf3ux9X4ODVR09oJG01U,13380
61
- mcp_code_indexer-4.2.12.dist-info/LICENSE,sha256=JN9dyPPgYwH9C-UjYM7FLNZjQ6BF7kAzpF3_4PwY4rY,1086
62
- mcp_code_indexer-4.2.12.dist-info/METADATA,sha256=8IsH7EnJOqR31zZz4hycU3arsx2rhl8Zl0_sCn252Us,27484
63
- mcp_code_indexer-4.2.12.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
64
- mcp_code_indexer-4.2.12.dist-info/entry_points.txt,sha256=UABj7HZ0mC6rvF22gxaz2LLNLGQShTrFmp5u00iUtvo,67
65
- mcp_code_indexer-4.2.12.dist-info/RECORD,,
61
+ mcp_code_indexer-4.2.13.dist-info/LICENSE,sha256=JN9dyPPgYwH9C-UjYM7FLNZjQ6BF7kAzpF3_4PwY4rY,1086
62
+ mcp_code_indexer-4.2.13.dist-info/METADATA,sha256=hiVYox2_zkYXq3E7MlJgSuCBAB9y9-jYk2eBzOk6z5E,27484
63
+ mcp_code_indexer-4.2.13.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
64
+ mcp_code_indexer-4.2.13.dist-info/entry_points.txt,sha256=UABj7HZ0mC6rvF22gxaz2LLNLGQShTrFmp5u00iUtvo,67
65
+ mcp_code_indexer-4.2.13.dist-info/RECORD,,