mcp-code-indexer 3.2.1__py3-none-any.whl → 3.3.0__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.
@@ -9,6 +9,7 @@ import asyncio
9
9
  import html
10
10
  import json
11
11
  import logging
12
+ import random
12
13
  import re
13
14
  import time
14
15
  import uuid
@@ -388,6 +389,13 @@ class MCPCodeIndexServer:
388
389
  "(optional)"
389
390
  ),
390
391
  },
392
+ "randomize": {
393
+ "type": "boolean",
394
+ "description": (
395
+ "Randomly shuffle files before applying limit "
396
+ "(useful for parallel processing, optional)"
397
+ ),
398
+ },
391
399
  },
392
400
  "required": ["projectName", "folderPath"],
393
401
  "additionalProperties": False,
@@ -1001,8 +1009,7 @@ class MCPCodeIndexServer:
1001
1009
  logger.info(f"Recommendation: {recommendation}")
1002
1010
 
1003
1011
  return {
1004
- "totalTokens": total_tokens,
1005
- "descriptionsTokens": descriptions_tokens,
1012
+ "fileDescriptionTokens": descriptions_tokens,
1006
1013
  "overviewTokens": overview_tokens,
1007
1014
  "isLarge": is_large,
1008
1015
  "recommendation": recommendation,
@@ -1048,6 +1055,12 @@ class MCPCodeIndexServer:
1048
1055
 
1049
1056
  logger.info(f"Found {len(missing_paths)} files without descriptions")
1050
1057
 
1058
+ # Apply randomization if specified
1059
+ randomize = arguments.get("randomize", False)
1060
+ if randomize:
1061
+ random.shuffle(missing_paths)
1062
+ logger.info("Randomized file order for parallel processing")
1063
+
1051
1064
  # Apply limit if specified
1052
1065
  limit = arguments.get("limit")
1053
1066
  total_missing = len(missing_paths)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mcp-code-indexer
3
- Version: 3.2.1
3
+ Version: 3.3.0
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?28)](https://badge.fury.io/py/mcp-code-indexer)
44
- [![Python](https://img.shields.io/pypi/pyversions/mcp-code-indexer.svg?28)](https://pypi.org/project/mcp-code-indexer/)
43
+ [![PyPI version](https://badge.fury.io/py/mcp-code-indexer.svg?30)](https://badge.fury.io/py/mcp-code-indexer)
44
+ [![Python](https://img.shields.io/pypi/pyversions/mcp-code-indexer.svg?30)](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.
@@ -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=9AhgTF_pA5nJQXhGudbO_WYJZzc68TYvTm4RSlywbzg,70969
28
+ mcp_code_indexer/server/mcp_server.py,sha256=L83xi38SEqoIXH_ZJVOmMNFwTnGRHbQRuAAxLjqwCWA,71554
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.2.1.dist-info/LICENSE,sha256=JN9dyPPgYwH9C-UjYM7FLNZjQ6BF7kAzpF3_4PwY4rY,1086
33
- mcp_code_indexer-3.2.1.dist-info/METADATA,sha256=FuSsfCoT6LhhttJ_H9p7ILcXNWOysCLH0QILY8xmWog,19191
34
- mcp_code_indexer-3.2.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
35
- mcp_code_indexer-3.2.1.dist-info/entry_points.txt,sha256=UABj7HZ0mC6rvF22gxaz2LLNLGQShTrFmp5u00iUtvo,67
36
- mcp_code_indexer-3.2.1.dist-info/RECORD,,
32
+ mcp_code_indexer-3.3.0.dist-info/LICENSE,sha256=JN9dyPPgYwH9C-UjYM7FLNZjQ6BF7kAzpF3_4PwY4rY,1086
33
+ mcp_code_indexer-3.3.0.dist-info/METADATA,sha256=jSDImDDYDrtzVOROzsZMRFgNyiJ8_XXfxlNSXBPJ2Eg,19191
34
+ mcp_code_indexer-3.3.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
35
+ mcp_code_indexer-3.3.0.dist-info/entry_points.txt,sha256=UABj7HZ0mC6rvF22gxaz2LLNLGQShTrFmp5u00iUtvo,67
36
+ mcp_code_indexer-3.3.0.dist-info/RECORD,,