Skip to content

Commit edda811

Browse files
author
johnhuang316
committed
Merge PR #1: Add 'uvx' entry point for simplified MCP configuration
2 parents 6978dc4 + 5bd7872 commit edda811

File tree

2 files changed

+33
-11
lines changed

2 files changed

+33
-11
lines changed

README.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,9 @@ You can easily integrate Code Index MCP with Claude Desktop:
7777
{
7878
"mcpServers": {
7979
"code-indexer": {
80-
"command": "uv",
80+
"command": "uvx",
8181
"args": [
82-
"--directory",
83-
"C:\\Users\\username\\path\\to\\code-index-mcp",
84-
"run",
85-
"run.py"
82+
"C:\\Users\\username\\path\\to\\code-index-mcp"
8683
]
8784
}
8885
}
@@ -95,19 +92,16 @@ You can easily integrate Code Index MCP with Claude Desktop:
9592
{
9693
"mcpServers": {
9794
"code-indexer": {
98-
"command": "uv",
95+
"command": "uvx",
9996
"args": [
100-
"--directory",
101-
"/home/username/path/to/code-index-mcp",
102-
"run",
103-
"run.py"
97+
"/Users/username/path/to/code-index-mcp"
10498
]
10599
}
106100
}
107101
}
108102
```
109103

110-
**Note**: The `--directory` option is important as it ensures uv runs in the correct project directory and can properly load all dependencies.
104+
**Note**: The tool can also be run directly with `uv run run.py` which may be useful for development and debugging.
111105

112106
#### Option 2: Using Docker (Containerized)
113107

pyproject.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "code-index-mcp"
7+
version = "0.1.0"
8+
description = "Code indexing and analysis tools for LLMs using MCP"
9+
readme = "README.md"
10+
requires-python = ">=3.10"
11+
license = {text = "MIT"}
12+
authors = [
13+
{name = "Your Name", email = "your.email@example.com"}
14+
]
15+
dependencies = [
16+
"mcp>=0.3.0",
17+
]
18+
19+
[project.urls]
20+
Homepage = "https://github.com/yourusername/code-index-mcp"
21+
"Bug Tracker" = "https://github.com/yourusername/code-index-mcp/issues"
22+
23+
[project.scripts]
24+
code-indexer = "code_index_mcp.server:main"
25+
uvx = "code_index_mcp.server:main"
26+
27+
[tool.setuptools]
28+
package-dir = {"" = "src"}

0 commit comments

Comments
 (0)