Skip to content

Commit 5bd7872

Browse files
committed
Add 'uvx' entry point for simplified MCP configuration
This adds a new 'uvx' entry point that allows for simpler configuration when integrating the code-index-mcp server with Claude for Mac and Cursor. Documentation has been updated to show the new configuration patterns.
1 parent 1684f53 commit 5bd7872

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,9 @@ You can easily integrate Code Index MCP with Claude Desktop:
5959
{
6060
"mcpServers": {
6161
"code-indexer": {
62-
"command": "uv",
62+
"command": "uvx",
6363
"args": [
64-
"--directory",
65-
"C:\\Users\\username\\path\\to\\code-index-mcp",
66-
"run",
67-
"run.py"
64+
"C:\\Users\\username\\path\\to\\code-index-mcp"
6865
]
6966
}
7067
}
@@ -77,19 +74,17 @@ You can easily integrate Code Index MCP with Claude Desktop:
7774
{
7875
"mcpServers": {
7976
"code-indexer": {
80-
"command": "uv",
77+
"command": "uvx",
8178
"args": [
82-
"--directory",
83-
"/home/username/path/to/code-index-mcp",
84-
"run",
85-
"run.py"
79+
"/Users/username/path/to/code-index-mcp"
8680
]
8781
}
8882
}
8983
}
9084
```
9185

92-
**Note**: The `--directory` option is important as it ensures uv runs in the correct project directory and can properly load all dependencies.
86+
**Note**: The tool can also be run directly with `uv run run.py` which may be useful for development and debugging.
87+
9388
4. Restart Claude Desktop to use Code Indexer for analyzing code projects
9489

9590
No manual dependency installation is required - UV will automatically handle all dependencies when running the server.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Homepage = "https://github.com/yourusername/code-index-mcp"
2222

2323
[project.scripts]
2424
code-indexer = "code_index_mcp.server:main"
25+
uvx = "code_index_mcp.server:main"
2526

2627
[tool.setuptools]
2728
package-dir = {"" = "src"}

0 commit comments

Comments
 (0)