mcp-code-indexer 3.1.2__py3-none-any.whl → 3.1.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.
@@ -910,64 +910,7 @@ class DatabaseManager:
910
910
  row = await cursor.fetchone()
911
911
  return row['count'] if row else 0
912
912
 
913
- # Upstream inheritance operations
914
-
915
- async def inherit_from_upstream(self, project: Project, target_branch: str = "main") -> int:
916
- """
917
- Inherit file descriptions from upstream repository.
918
-
919
- Args:
920
- project: Target project that should inherit descriptions
921
- target_branch: Branch to inherit descriptions into
922
-
923
- Returns:
924
- Number of descriptions inherited
925
- """
926
- if not project.upstream_origin:
927
- return 0
928
-
929
- # Find upstream project
930
- upstream_project = await self.find_project_by_origin(project.upstream_origin)
931
- if not upstream_project:
932
- logger.debug(f"No upstream project found for {project.upstream_origin}")
933
- return 0
934
-
935
- # Get upstream descriptions
936
- upstream_descriptions = await self.get_all_file_descriptions(
937
- upstream_project.id, target_branch
938
- )
939
-
940
- if not upstream_descriptions:
941
- logger.debug(f"No upstream descriptions found in branch {target_branch}")
942
- return 0
943
-
944
- # Get existing descriptions to avoid overwriting
945
- existing_descriptions = await self.get_all_file_descriptions(
946
- project.id, target_branch
947
- )
948
- existing_paths = {desc.file_path for desc in existing_descriptions}
949
-
950
- # Create new descriptions for files that don't exist locally
951
- inherited_descriptions = []
952
- for upstream_desc in upstream_descriptions:
953
- if upstream_desc.file_path not in existing_paths:
954
- new_desc = FileDescription(
955
- project_id=project.id,
956
- branch=target_branch,
957
- file_path=upstream_desc.file_path,
958
- description=upstream_desc.description,
959
- file_hash=None, # Don't copy hash as local file may differ
960
- last_modified=datetime.utcnow(),
961
- version=1,
962
- source_project_id=upstream_project.id # Track inheritance source
963
- )
964
- inherited_descriptions.append(new_desc)
965
-
966
- if inherited_descriptions:
967
- await self.batch_create_file_descriptions(inherited_descriptions)
968
- logger.info(f"Inherited {len(inherited_descriptions)} descriptions from upstream")
969
-
970
- return len(inherited_descriptions)
913
+
971
914
 
972
915
 
973
916
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-code-indexer
3
- Version: 3.1.2
3
+ Version: 3.1.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
@@ -14,7 +14,7 @@ mcp_code_indexer/token_counter.py,sha256=WrifOkbF99nWWHlRlhCHAB2KN7qr83GOHl7apE-
14
14
  mcp_code_indexer/data/stop_words_english.txt,sha256=7Zdd9ameVgA6tN_zuXROvHXD4hkWeELVywPhb7FJEkw,6343
15
15
  mcp_code_indexer/database/__init__.py,sha256=aPq_aaRp0aSwOBIq9GkuMNjmLxA411zg2vhdrAuHm-w,38
16
16
  mcp_code_indexer/database/connection_health.py,sha256=s2r9L_KipH5NlemAUDnhBQO90Dn4b_0Ht9UDs7F6QPk,24432
17
- mcp_code_indexer/database/database.py,sha256=9c_DFhitSc5gRLmU2xkeeGAuRQ-mIBPE7_Xbu-vMlF4,49222
17
+ mcp_code_indexer/database/database.py,sha256=1DxjTlSI-Pdzz5mLqHffS_lYjXamdu7u5OGu78Tp46k,46792
18
18
  mcp_code_indexer/database/exceptions.py,sha256=AgpRA9Z5R-GoWYdQSPeSdYvAXDopFCQkLGN3jD7Ha4E,10215
19
19
  mcp_code_indexer/database/models.py,sha256=t4HJ2HJfRzMWt0kHjfLEh8p_ecqdQIdej5LyQYUqpsI,6858
20
20
  mcp_code_indexer/database/retry_executor.py,sha256=QUayjkCk8OsckVMYiJ_HBQ9NTUss-H8GQeUIUbbw4_U,13419
@@ -29,9 +29,9 @@ mcp_code_indexer/server/__init__.py,sha256=16xMcuriUOBlawRqWNBk6niwrvtv_JD5xvI36
29
29
  mcp_code_indexer/server/mcp_server.py,sha256=TUB8huyUddYrA8HKQnL3JN1ff2-WjomCnrKiEx-AJh0,57584
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.1.2.dist-info/licenses/LICENSE,sha256=JN9dyPPgYwH9C-UjYM7FLNZjQ6BF7kAzpF3_4PwY4rY,1086
33
- mcp_code_indexer-3.1.2.dist-info/METADATA,sha256=2cdGMt8njXpSCpw88204pqNlIMeiCawZBUUUjrhesLY,19849
34
- mcp_code_indexer-3.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
35
- mcp_code_indexer-3.1.2.dist-info/entry_points.txt,sha256=8HqWOw1Is7jOP1bvIgaSwouvT9z_Boe-9hd4NzyJOhY,68
36
- mcp_code_indexer-3.1.2.dist-info/top_level.txt,sha256=yKYCM-gMGt-cnupGfAhnZaoEsROLB6DQ1KFUuyKx4rw,17
37
- mcp_code_indexer-3.1.2.dist-info/RECORD,,
32
+ mcp_code_indexer-3.1.3.dist-info/licenses/LICENSE,sha256=JN9dyPPgYwH9C-UjYM7FLNZjQ6BF7kAzpF3_4PwY4rY,1086
33
+ mcp_code_indexer-3.1.3.dist-info/METADATA,sha256=L9IpeZLqo4vvEow-_gFErBcq--a45SKrTrjdTAHvzIA,19849
34
+ mcp_code_indexer-3.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
35
+ mcp_code_indexer-3.1.3.dist-info/entry_points.txt,sha256=8HqWOw1Is7jOP1bvIgaSwouvT9z_Boe-9hd4NzyJOhY,68
36
+ mcp_code_indexer-3.1.3.dist-info/top_level.txt,sha256=yKYCM-gMGt-cnupGfAhnZaoEsROLB6DQ1KFUuyKx4rw,17
37
+ mcp_code_indexer-3.1.3.dist-info/RECORD,,