mcp-code-indexer 1.6.4__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.
- mcp_code_indexer/__init__.py +20 -4
- {mcp_code_indexer-1.6.4.dist-info → mcp_code_indexer-1.6.5.dist-info}/METADATA +2 -1
- {mcp_code_indexer-1.6.4.dist-info → mcp_code_indexer-1.6.5.dist-info}/RECORD +7 -7
- {mcp_code_indexer-1.6.4.dist-info → mcp_code_indexer-1.6.5.dist-info}/WHEEL +0 -0
- {mcp_code_indexer-1.6.4.dist-info → mcp_code_indexer-1.6.5.dist-info}/entry_points.txt +0 -0
- {mcp_code_indexer-1.6.4.dist-info → mcp_code_indexer-1.6.5.dist-info}/licenses/LICENSE +0 -0
- {mcp_code_indexer-1.6.4.dist-info → mcp_code_indexer-1.6.5.dist-info}/top_level.txt +0 -0
mcp_code_indexer/__init__.py
CHANGED
@@ -7,7 +7,25 @@ token-aware overviews, and advanced merge capabilities.
|
|
7
7
|
"""
|
8
8
|
|
9
9
|
def _get_version() -> str:
|
10
|
-
"""
|
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)
|
11
29
|
try:
|
12
30
|
from pathlib import Path
|
13
31
|
import sys
|
@@ -18,15 +36,13 @@ def _get_version() -> str:
|
|
18
36
|
try:
|
19
37
|
import tomli as tomllib
|
20
38
|
except ImportError:
|
21
|
-
|
22
|
-
return "1.6.3"
|
39
|
+
return "dev"
|
23
40
|
|
24
41
|
pyproject_path = Path(__file__).parent.parent.parent / "pyproject.toml"
|
25
42
|
with open(pyproject_path, "rb") as f:
|
26
43
|
data = tomllib.load(f)
|
27
44
|
return data["project"]["version"]
|
28
45
|
except Exception:
|
29
|
-
# Return dev version if reading fails - indicates something is wrong
|
30
46
|
return "dev"
|
31
47
|
|
32
48
|
__version__ = _get_version()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: mcp-code-indexer
|
3
|
-
Version: 1.6.
|
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
|
@@ -38,6 +38,7 @@ Requires-Dist: aiosqlite==0.19.0
|
|
38
38
|
Requires-Dist: aiohttp>=3.8.0
|
39
39
|
Requires-Dist: tenacity>=8.0.0
|
40
40
|
Requires-Dist: tomli>=1.2.0; python_version < "3.11"
|
41
|
+
Requires-Dist: importlib-metadata>=1.0.0; python_version < "3.8"
|
41
42
|
Provides-Extra: dev
|
42
43
|
Requires-Dist: pytest>=8.0.0; extra == "dev"
|
43
44
|
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
mcp_code_indexer/__init__.py,sha256=
|
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.
|
21
|
-
mcp_code_indexer-1.6.
|
22
|
-
mcp_code_indexer-1.6.
|
23
|
-
mcp_code_indexer-1.6.
|
24
|
-
mcp_code_indexer-1.6.
|
25
|
-
mcp_code_indexer-1.6.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|