mcp-code-indexer 1.0.0__py3-none-any.whl → 1.0.2__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,7 @@ intelligent codebase navigation through searchable file descriptions,
6
6
  token-aware overviews, and advanced merge capabilities.
7
7
  """
8
8
 
9
- __version__ = "1.0.0"
9
+ __version__ = "1.0.2"
10
10
  __author__ = "MCP Code Indexer Contributors"
11
11
  __email__ = ""
12
12
  __license__ = "MIT"
mcp_code_indexer/main.py CHANGED
@@ -84,7 +84,7 @@ async def main() -> None:
84
84
  db_path.parent.mkdir(parents=True, exist_ok=True)
85
85
  cache_dir.mkdir(parents=True, exist_ok=True)
86
86
 
87
- # Log startup information
87
+ # Log startup information to stderr (stdout reserved for MCP JSON-RPC)
88
88
  logger.info("Starting MCP Code Index Server", extra={
89
89
  "structured_data": {
90
90
  "startup": {
@@ -119,9 +119,12 @@ def cli_main():
119
119
  try:
120
120
  asyncio.run(main())
121
121
  except KeyboardInterrupt:
122
- print("\nServer stopped by user")
122
+ # For MCP servers, we should avoid stdout completely
123
+ # The server will log shutdown through stderr
124
+ pass
123
125
  except Exception as e:
124
- print(f"Server failed to start: {e}")
126
+ # Log critical errors to stderr, not stdout
127
+ print(f"Server failed to start: {e}", file=sys.stderr)
125
128
  sys.exit(1)
126
129
 
127
130
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-code-indexer
3
- Version: 1.0.0
3
+ Version: 1.0.2
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
@@ -15,7 +15,7 @@ Classifier: Intended Audience :: Developers
15
15
  Classifier: License :: OSI Approved :: MIT License
16
16
  Classifier: Operating System :: OS Independent
17
17
  Classifier: Programming Language :: Python :: 3
18
- Classifier: Programming Language :: Python :: 3.8
18
+ Classifier: Programming Language :: Python :: 3.13
19
19
  Classifier: Programming Language :: Python :: 3.9
20
20
  Classifier: Programming Language :: Python :: 3.10
21
21
  Classifier: Programming Language :: Python :: 3.11
@@ -29,7 +29,7 @@ Classifier: Typing :: Typed
29
29
  Requires-Python: >=3.9
30
30
  Description-Content-Type: text/markdown
31
31
  License-File: LICENSE
32
- Requires-Dist: tiktoken==0.7.0
32
+ Requires-Dist: tiktoken>=0.9.0
33
33
  Requires-Dist: mcp==1.0.0
34
34
  Requires-Dist: gitignore_parser==0.1.11
35
35
  Requires-Dist: pydantic>=2.8.0
@@ -40,11 +40,11 @@ Requires-Dist: pytest>=8.0.0; extra == "dev"
40
40
  Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
41
41
  Requires-Dist: pytest-mock>=3.11.0; extra == "dev"
42
42
  Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
43
- Requires-Dist: black>=23.0.0; extra == "dev"
43
+ Requires-Dist: black>=24.0.0; extra == "dev"
44
44
  Requires-Dist: isort>=5.12.0; extra == "dev"
45
- Requires-Dist: flake8>=6.0.0; extra == "dev"
46
- Requires-Dist: mypy>=1.0.0; extra == "dev"
47
- Requires-Dist: pre-commit>=3.0.0; extra == "dev"
45
+ Requires-Dist: flake8>=7.0.0; extra == "dev"
46
+ Requires-Dist: mypy>=1.8.0; extra == "dev"
47
+ Requires-Dist: pre-commit>=3.5.0; extra == "dev"
48
48
  Provides-Extra: test
49
49
  Requires-Dist: pytest>=8.0.0; extra == "test"
50
50
  Requires-Dist: pytest-asyncio>=0.21.0; extra == "test"
@@ -187,6 +187,7 @@ The server provides **8 powerful MCP tools** for intelligent codebase management
187
187
  ### Production Ready
188
188
  - **Comprehensive error handling** with structured JSON logging
189
189
  - **Async-first design** with proper resource cleanup
190
+ - **MCP protocol compliant** with clean stdio streams
190
191
  - **Upstream inheritance** for fork workflows
191
192
  - **Git integration** with .gitignore support
192
193
 
@@ -1,8 +1,8 @@
1
- mcp_code_indexer/__init__.py,sha256=bKiDtK7m0i3FVZXbtCRYVbEQzDlsrBM93nLMvF7Lypo,473
1
+ mcp_code_indexer/__init__.py,sha256=SqtCXmJGZ4zdPgDrCETFKwiyVSEH6W4EOApSFwdTAY0,473
2
2
  mcp_code_indexer/error_handler.py,sha256=cNSUFFrGBMLDv4qa78c7495L1wSl_dXCRbzCJOidx-Q,11590
3
3
  mcp_code_indexer/file_scanner.py,sha256=1Z6wq7H14V1OMAHIF4v9G7SY8hC1puDmU5IXsCKH4kU,11442
4
4
  mcp_code_indexer/logging_config.py,sha256=5L1cYIG8IAX91yCjc5pzkbO_KPt0bvm_ABHB53LBZjI,5184
5
- mcp_code_indexer/main.py,sha256=zM08T96zqq8HT02rslQhHxkOgvx8J77RmFUJWdqKCqY,3419
5
+ mcp_code_indexer/main.py,sha256=TJHyXc0mchaIyF5ABo24kcT8Sv1PsJibHVZoznGbrxo,3619
6
6
  mcp_code_indexer/merge_handler.py,sha256=lJR8eVq2qSrF6MW9mR3Fy8UzrNAaQ7RsI2FMNXne3vQ,14692
7
7
  mcp_code_indexer/token_counter.py,sha256=WrifOkbF99nWWHlRlhCHAB2KN7qr83GOHl7apE-hJcE,8460
8
8
  mcp_code_indexer/database/__init__.py,sha256=aPq_aaRp0aSwOBIq9GkuMNjmLxA411zg2vhdrAuHm-w,38
@@ -14,9 +14,9 @@ mcp_code_indexer/server/__init__.py,sha256=16xMcuriUOBlawRqWNBk6niwrvtv_JD5xvI36
14
14
  mcp_code_indexer/server/mcp_server.py,sha256=6wm4XKfTLSpfHP9GpCqwWsekQFwwo9ngqM-ZXiJidx4,33424
15
15
  mcp_code_indexer/tiktoken_cache/9b5ad71b2ce5302211f9c61530b329a4922fc6a4,sha256=Ijkht27pm96ZW3_3OFE-7xAPtR0YyTWXoRO8_-hlsqc,1681126
16
16
  mcp_code_indexer/tools/__init__.py,sha256=m01mxML2UdD7y5rih_XNhNSCMzQTz7WQ_T1TeOcYlnE,49
17
- mcp_code_indexer-1.0.0.dist-info/licenses/LICENSE,sha256=JN9dyPPgYwH9C-UjYM7FLNZjQ6BF7kAzpF3_4PwY4rY,1086
18
- mcp_code_indexer-1.0.0.dist-info/METADATA,sha256=GllXN1R8ya1no8exdC3pOm7TKNJ5QfdD7KaWEbY2Q68,11875
19
- mcp_code_indexer-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
20
- mcp_code_indexer-1.0.0.dist-info/entry_points.txt,sha256=8HqWOw1Is7jOP1bvIgaSwouvT9z_Boe-9hd4NzyJOhY,68
21
- mcp_code_indexer-1.0.0.dist-info/top_level.txt,sha256=yKYCM-gMGt-cnupGfAhnZaoEsROLB6DQ1KFUuyKx4rw,17
22
- mcp_code_indexer-1.0.0.dist-info/RECORD,,
17
+ mcp_code_indexer-1.0.2.dist-info/licenses/LICENSE,sha256=JN9dyPPgYwH9C-UjYM7FLNZjQ6BF7kAzpF3_4PwY4rY,1086
18
+ mcp_code_indexer-1.0.2.dist-info/METADATA,sha256=u-yHVXuTl_y5Qkrb4vWMBkQWmuS6OUB2RtrzwvsnimU,11930
19
+ mcp_code_indexer-1.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
20
+ mcp_code_indexer-1.0.2.dist-info/entry_points.txt,sha256=8HqWOw1Is7jOP1bvIgaSwouvT9z_Boe-9hd4NzyJOhY,68
21
+ mcp_code_indexer-1.0.2.dist-info/top_level.txt,sha256=yKYCM-gMGt-cnupGfAhnZaoEsROLB6DQ1KFUuyKx4rw,17
22
+ mcp_code_indexer-1.0.2.dist-info/RECORD,,