-`BATCH_SIZE`: Number of files to upload per batch (default: 10)
-`MAX_LINES_PER_BLOB`: Maximum lines per blob before splitting large files (default: 800)
-`BASE_URL`: API endpoint URL
-`TOKEN`: Authentication token
-`TEXT_EXTENSIONS`: List of file extensions to index
-`EXCLUDE_PATTERNS`: List of patterns to exclude from indexing (supports wildcards like `*.pyc`)
You can also configure via:
- **Command line arguments** (highest priority): `--base-url`, `--token`
- **Web management interface** (updates user config file)
- **Environment variables** with `ACEMCP_` prefix
## MCP Configuration
Add the following to your MCP client configuration (e.g., Claude Desktop):
### Basic Configuration
```json
{
"mcpServers": {
"acemcp": {
"command": "uvx",
"args": [
"acemcp"
]
}
}
}
```
**Available command line arguments:**
-`--base-url`: Override BASE_URL configuration
-`--token`: Override TOKEN configuration
-`--web-port`: Enable web management interface on specified port (e.g., 8080)
### Configuration with Web Management Interface
To enable the web management interface, add the `--web-port` argument:
```json
{
"mcpServers": {
"acemcp": {
"command": "uvx",
"args": [
"acemcp",
"--web-port",
"8888"
]
}
}
}
```
Then access the management interface at `http://localhost:8888`
**Web Management Features:**
- **Configuration Management**: View and edit server configuration (BASE_URL, TOKEN, BATCH_SIZE, MAX_LINES_PER_BLOB, TEXT_EXTENSIONS)
- **Real-time Logs**: Monitor server logs in real-time via WebSocket connection
- **Tool Debugger**: Test and debug MCP tools directly from the web interface
- Test `index_code` tool with any project path
- Test `search_context` tool with project path and query
- View formatted results and error messages
## Tools
### search_context
Search for relevant code context based on a query. This tool **automatically performs incremental indexing** before searching, ensuring results are always up-to-date. It performs **semantic search** across your codebase and returns formatted text snippets showing where relevant code is located.
**Key Features:**
- **Automatic Incremental Indexing**: Before each search, the tool automatically indexes only new or modified files, skipping unchanged files for efficiency
- **No Manual Indexing Required**: You don't need to manually index your project - just search and the tool handles indexing automatically
- **Always Up-to-Date**: Search results reflect the current state of your codebase
**Parameters:**
-`project_root_path` (string): Absolute path to the project root directory
- **IMPORTANT**: Use forward slashes (`/`) as path separators, even on Windows
- Windows example: `C:/Users/username/projects/myproject`