Skip to content

Commit 645df39

Browse files
committed
fix: remove sys.path.append to restore uvx environment isolation
Removed sys.path.append('.') from server.py:426 that was breaking uvx environment isolation. This was causing watchdog dependency conflicts between local development and uvx environments, preventing file watcher from starting properly in uvx mode. The fix maintains clean uvx isolation while preserving all functionality: - File watcher auto-refresh now works correctly in uvx environment - No dependency conflicts between local and uvx environments - All existing functionality preserved Tested with comprehensive file watcher validation: - New file creation triggers auto-indexing (6s debounce) - File modifications update index automatically - Observer status remains healthy Bumped version to v1.1.1 for this critical uvx compatibility fix.
1 parent 9c42ad7 commit 645df39

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "code-index-mcp"
7-
version = "1.1.0"
7+
version = "1.1.1"
88
description = "Code indexing and analysis tools for LLMs using MCP"
99
readme = "README.md"
1010
requires-python = ">=3.10"

src/code_index_mcp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
A Model Context Protocol server for code indexing, searching, and analysis.
44
"""
55

6-
__version__ = "1.1.0"
6+
__version__ = "1.1.1"

src/code_index_mcp/server.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,4 @@ def main():
422422
mcp.run()
423423

424424
if __name__ == '__main__':
425-
# Set path to project root
426-
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
427425
main()

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)