mcp-code-indexer 1.6.3__py3-none-any.whl → 1.6.5__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.
@@ -6,7 +6,46 @@ intelligent codebase navigation through searchable file descriptions,
6
6
  token-aware overviews, and advanced merge capabilities.
7
7
  """
8
8
 
9
- __version__ = "1.6.0"
9
+ def _get_version() -> str:
10
+ """Get version from package metadata or pyproject.toml."""
11
+ # First try to get version from installed package metadata
12
+ try:
13
+ try:
14
+ from importlib.metadata import version
15
+ except ImportError:
16
+ # Python < 3.8 fallback
17
+ from importlib_metadata import version
18
+
19
+ # Try different package name variations
20
+ for pkg_name in ["mcp-code-indexer", "mcp_code_indexer"]:
21
+ try:
22
+ return version(pkg_name)
23
+ except Exception:
24
+ continue
25
+ except Exception:
26
+ pass
27
+
28
+ # Fallback to reading from pyproject.toml (for development)
29
+ try:
30
+ from pathlib import Path
31
+ import sys
32
+
33
+ if sys.version_info >= (3, 11):
34
+ import tomllib
35
+ else:
36
+ try:
37
+ import tomli as tomllib
38
+ except ImportError:
39
+ return "dev"
40
+
41
+ pyproject_path = Path(__file__).parent.parent.parent / "pyproject.toml"
42
+ with open(pyproject_path, "rb") as f:
43
+ data = tomllib.load(f)
44
+ return data["project"]["version"]
45
+ except Exception:
46
+ return "dev"
47
+
48
+ __version__ = _get_version()
10
49
  __author__ = "MCP Code Indexer Contributors"
11
50
  __email__ = ""
12
51
  __license__ = "MIT"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-code-indexer
3
- Version: 1.6.3
3
+ Version: 1.6.5
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
@@ -37,6 +37,8 @@ Requires-Dist: aiofiles==23.2.0
37
37
  Requires-Dist: aiosqlite==0.19.0
38
38
  Requires-Dist: aiohttp>=3.8.0
39
39
  Requires-Dist: tenacity>=8.0.0
40
+ Requires-Dist: tomli>=1.2.0; python_version < "3.11"
41
+ Requires-Dist: importlib-metadata>=1.0.0; python_version < "3.8"
40
42
  Provides-Extra: dev
41
43
  Requires-Dist: pytest>=8.0.0; extra == "dev"
42
44
  Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
@@ -57,8 +59,8 @@ Dynamic: requires-python
57
59
 
58
60
  # MCP Code Indexer 🚀
59
61
 
60
- [![PyPI version](https://badge.fury.io/py/mcp-code-indexer.svg?7)](https://badge.fury.io/py/mcp-code-indexer)
61
- [![Python](https://img.shields.io/pypi/pyversions/mcp-code-indexer.svg?7)](https://pypi.org/project/mcp-code-indexer/)
62
+ [![PyPI version](https://badge.fury.io/py/mcp-code-indexer.svg?8)](https://badge.fury.io/py/mcp-code-indexer)
63
+ [![Python](https://img.shields.io/pypi/pyversions/mcp-code-indexer.svg?8)](https://pypi.org/project/mcp-code-indexer/)
62
64
  [![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
63
65
 
64
66
  A production-ready **Model Context Protocol (MCP) server** that revolutionizes how AI agents navigate and understand codebases. Instead of repeatedly scanning files, agents get instant access to intelligent descriptions, semantic search, and context-aware recommendations.
@@ -1,4 +1,4 @@
1
- mcp_code_indexer/__init__.py,sha256=DKmuPpw8URDyojC4T1bttK8kGMI9lv_-B9UYP8dqb90,473
1
+ mcp_code_indexer/__init__.py,sha256=GhY2NLQ6lH3n5mxqw0t8T1gmZGKhM6KvjhZH8xW5O-A,1686
2
2
  mcp_code_indexer/__main__.py,sha256=4Edinoe0ug43hobuLYcjTmGp2YJnlFYN4_8iKvUBJ0Q,213
3
3
  mcp_code_indexer/error_handler.py,sha256=cNSUFFrGBMLDv4qa78c7495L1wSl_dXCRbzCJOidx-Q,11590
4
4
  mcp_code_indexer/file_scanner.py,sha256=ctXeZMROgDThEtjzsANTK9TbK-fhTScMBd4iyuleBT4,11734
@@ -17,9 +17,9 @@ mcp_code_indexer/server/__init__.py,sha256=16xMcuriUOBlawRqWNBk6niwrvtv_JD5xvI36
17
17
  mcp_code_indexer/server/mcp_server.py,sha256=4goDZmRmhPgipImgfhTVa6nYJM7L1p56h34ITO6JhSw,64431
18
18
  mcp_code_indexer/tiktoken_cache/9b5ad71b2ce5302211f9c61530b329a4922fc6a4,sha256=Ijkht27pm96ZW3_3OFE-7xAPtR0YyTWXoRO8_-hlsqc,1681126
19
19
  mcp_code_indexer/tools/__init__.py,sha256=m01mxML2UdD7y5rih_XNhNSCMzQTz7WQ_T1TeOcYlnE,49
20
- mcp_code_indexer-1.6.3.dist-info/licenses/LICENSE,sha256=JN9dyPPgYwH9C-UjYM7FLNZjQ6BF7kAzpF3_4PwY4rY,1086
21
- mcp_code_indexer-1.6.3.dist-info/METADATA,sha256=s_CKzfJvwMlG268-RA6k2LbAvpA6NxLLuHGPCOamLVk,17453
22
- mcp_code_indexer-1.6.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
- mcp_code_indexer-1.6.3.dist-info/entry_points.txt,sha256=8HqWOw1Is7jOP1bvIgaSwouvT9z_Boe-9hd4NzyJOhY,68
24
- mcp_code_indexer-1.6.3.dist-info/top_level.txt,sha256=yKYCM-gMGt-cnupGfAhnZaoEsROLB6DQ1KFUuyKx4rw,17
25
- mcp_code_indexer-1.6.3.dist-info/RECORD,,
20
+ mcp_code_indexer-1.6.5.dist-info/licenses/LICENSE,sha256=JN9dyPPgYwH9C-UjYM7FLNZjQ6BF7kAzpF3_4PwY4rY,1086
21
+ mcp_code_indexer-1.6.5.dist-info/METADATA,sha256=1vw3p7ngL5uKvvRWF8yfZXGWduc-Z7auUzuWHfQDsVk,17571
22
+ mcp_code_indexer-1.6.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
+ mcp_code_indexer-1.6.5.dist-info/entry_points.txt,sha256=8HqWOw1Is7jOP1bvIgaSwouvT9z_Boe-9hd4NzyJOhY,68
24
+ mcp_code_indexer-1.6.5.dist-info/top_level.txt,sha256=yKYCM-gMGt-cnupGfAhnZaoEsROLB6DQ1KFUuyKx4rw,17
25
+ mcp_code_indexer-1.6.5.dist-info/RECORD,,