mcp-code-indexer 3.0.2__py3-none-any.whl → 3.0.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.
@@ -5,8 +5,8 @@
5
5
  -- Ensure WAL mode is enabled for safe migrations
6
6
  PRAGMA journal_mode=WAL;
7
7
 
8
- -- Enable foreign key support
9
- PRAGMA foreign_keys=ON;
8
+ -- Temporarily disable foreign key constraints for migration
9
+ PRAGMA foreign_keys=OFF;
10
10
 
11
11
  -- Start transaction for atomic migration
12
12
  BEGIN TRANSACTION;
@@ -33,6 +33,17 @@ CREATE INDEX idx_file_descriptions_new_file_hash ON file_descriptions_new(file_h
33
33
  CREATE INDEX idx_file_descriptions_new_last_modified ON file_descriptions_new(last_modified);
34
34
  CREATE INDEX idx_file_descriptions_new_to_be_cleaned ON file_descriptions_new(to_be_cleaned);
35
35
 
36
+ -- Clean up orphaned data before consolidation
37
+ -- Remove file_descriptions that reference non-existent projects
38
+ DELETE FROM file_descriptions
39
+ WHERE project_id NOT IN (SELECT id FROM projects);
40
+
41
+ -- Remove file_descriptions with invalid source_project_id
42
+ UPDATE file_descriptions
43
+ SET source_project_id = NULL
44
+ WHERE source_project_id IS NOT NULL
45
+ AND source_project_id NOT IN (SELECT id FROM projects);
46
+
36
47
  -- Consolidate data from old table - keep most recent description per file
37
48
  -- This handles multi-branch scenarios by selecting the newest data
38
49
  INSERT INTO file_descriptions_new (
@@ -76,6 +87,10 @@ CREATE TABLE project_overviews_new (
76
87
  -- Create indexes for the new table
77
88
  CREATE INDEX idx_project_overviews_new_last_modified ON project_overviews_new(last_modified);
78
89
 
90
+ -- Clean up orphaned project overviews
91
+ DELETE FROM project_overviews
92
+ WHERE project_id NOT IN (SELECT id FROM projects);
93
+
79
94
  -- Consolidate project overviews - keep the one with most tokens (most comprehensive)
80
95
  INSERT INTO project_overviews_new (
81
96
  project_id, overview, last_modified, total_files, total_tokens
@@ -162,5 +177,8 @@ END;
162
177
  DROP INDEX IF EXISTS idx_merge_conflicts_project;
163
178
  CREATE INDEX idx_merge_conflicts_project ON merge_conflicts(project_id, created);
164
179
 
180
+ -- Re-enable foreign key constraints
181
+ PRAGMA foreign_keys=ON;
182
+
165
183
  -- Commit the migration
166
184
  COMMIT;
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-code-indexer
3
- Version: 3.0.2
3
+ Version: 3.0.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
  Author: MCP Code Indexer Contributors
6
6
  Maintainer: MCP Code Indexer Contributors
@@ -59,8 +59,8 @@ Dynamic: requires-python
59
59
 
60
60
  # MCP Code Indexer 🚀
61
61
 
62
- [![PyPI version](https://badge.fury.io/py/mcp-code-indexer.svg?20)](https://badge.fury.io/py/mcp-code-indexer)
63
- [![Python](https://img.shields.io/pypi/pyversions/mcp-code-indexer.svg?20)](https://pypi.org/project/mcp-code-indexer/)
62
+ [![PyPI version](https://badge.fury.io/py/mcp-code-indexer.svg?21)](https://badge.fury.io/py/mcp-code-indexer)
63
+ [![Python](https://img.shields.io/pypi/pyversions/mcp-code-indexer.svg?21)](https://pypi.org/project/mcp-code-indexer/)
64
64
  [![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
65
65
 
66
66
  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.
@@ -24,14 +24,14 @@ mcp_code_indexer/middleware/error_middleware.py,sha256=5agJTAkkPogfPGnja1V9JtG9R
24
24
  mcp_code_indexer/migrations/001_initial.sql,sha256=hIXkCP4LA_4A9HJ1CHU0a1DD-a6EN6u-uJPMqW0c2Yo,4120
25
25
  mcp_code_indexer/migrations/002_performance_indexes.sql,sha256=FlKbmcJyKAHTKmjxmpk8ABe6eMcQahz8RciRYcREY_E,2846
26
26
  mcp_code_indexer/migrations/003_project_overviews.sql,sha256=pPzn7UmJ_Bda9mJ1nYTN1GeuYwdQHC7Fva6PvWaucUw,891
27
- mcp_code_indexer/migrations/004_remove_branch_dependency.sql,sha256=x3aBHJHS8rN1RA7Ba5JdGudR-dYzxH0jiuylGy0X4D0,5844
27
+ mcp_code_indexer/migrations/004_remove_branch_dependency.sql,sha256=whZvj2qfba1-Xq7Vg4IfpCpIrRKN21AdtG0gZbFSRi4,6466
28
28
  mcp_code_indexer/server/__init__.py,sha256=16xMcuriUOBlawRqWNBk6niwrvtv_JD5xvI36X1Vsmk,41
29
29
  mcp_code_indexer/server/mcp_server.py,sha256=EQnwRbjF17AdPvO_HPb6d7cmpxUN51qbyMuhQXrtetU,63168
30
30
  mcp_code_indexer/tiktoken_cache/9b5ad71b2ce5302211f9c61530b329a4922fc6a4,sha256=Ijkht27pm96ZW3_3OFE-7xAPtR0YyTWXoRO8_-hlsqc,1681126
31
31
  mcp_code_indexer/tools/__init__.py,sha256=m01mxML2UdD7y5rih_XNhNSCMzQTz7WQ_T1TeOcYlnE,49
32
- mcp_code_indexer-3.0.2.dist-info/licenses/LICENSE,sha256=JN9dyPPgYwH9C-UjYM7FLNZjQ6BF7kAzpF3_4PwY4rY,1086
33
- mcp_code_indexer-3.0.2.dist-info/METADATA,sha256=JLmX7xUbSANmBoLVdqXE8zEBQoYERiahC2fHzoR_RFM,20165
34
- mcp_code_indexer-3.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
35
- mcp_code_indexer-3.0.2.dist-info/entry_points.txt,sha256=8HqWOw1Is7jOP1bvIgaSwouvT9z_Boe-9hd4NzyJOhY,68
36
- mcp_code_indexer-3.0.2.dist-info/top_level.txt,sha256=yKYCM-gMGt-cnupGfAhnZaoEsROLB6DQ1KFUuyKx4rw,17
37
- mcp_code_indexer-3.0.2.dist-info/RECORD,,
32
+ mcp_code_indexer-3.0.3.dist-info/licenses/LICENSE,sha256=JN9dyPPgYwH9C-UjYM7FLNZjQ6BF7kAzpF3_4PwY4rY,1086
33
+ mcp_code_indexer-3.0.3.dist-info/METADATA,sha256=KhSmG_81Lli-5xIPfTy1uOCGYl6Ec1vqGrpaq0IE9ls,20165
34
+ mcp_code_indexer-3.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
35
+ mcp_code_indexer-3.0.3.dist-info/entry_points.txt,sha256=8HqWOw1Is7jOP1bvIgaSwouvT9z_Boe-9hd4NzyJOhY,68
36
+ mcp_code_indexer-3.0.3.dist-info/top_level.txt,sha256=yKYCM-gMGt-cnupGfAhnZaoEsROLB6DQ1KFUuyKx4rw,17
37
+ mcp_code_indexer-3.0.3.dist-info/RECORD,,