Skip to main content

Add your description here

Project description

Acemcp

MCP server for codebase indexing and semantic search.

Installation

uv add mcp httpx fastapi "uvicorn[standard]" toml websockets
uv sync

Configuration

  1. Copy the example secrets file:
cp .secrets.toml.example .secrets.toml
  1. Edit .secrets.toml with your API credentials:
[default]
BASE_URL = "https://your-api-endpoint.com"
TOKEN = "your-bearer-token-here"
  1. (Optional) Customize settings.toml for other configurations.

MCP Configuration

Add the following to your MCP client configuration (e.g., Claude Desktop):

Basic Configuration

{
  "mcpServers": {
    "acemcp": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/acemcp",
        "run",
        "acemcp"
      ]
    }
  }
}

Replace /path/to/acemcp with the actual path to this project.

Configuration with Command Line Arguments

You can override configuration values using command line arguments:

{
  "mcpServers": {
    "acemcp": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/acemcp",
        "run",
        "acemcp",
        "--base-url",
        "https://your-api-endpoint.com",
        "--token",
        "your-bearer-token",
        "--index-storage-path",
        "/custom/path/to/index"
      ]
    }
  }
}

Available command line arguments:

  • --base-url: Override BASE_URL configuration
  • --token: Override TOKEN configuration
  • --index-storage-path: Override INDEX_STORAGE_PATH 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:

{
  "mcpServers": {
    "acemcp": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/acemcp",
        "run",
        "acemcp",
        "--web-port",
        "8080"
      ]
    }
  }
}

Then access the management interface at http://localhost:8080

Tools

index_code

Index a code project for semantic search.

Parameters:

  • project_id (string): Unique identifier for the project
  • project_root_path (string): Root path of the project to index

Example:

{
  "project_id": "my-project",
  "project_root_path": "/path/to/project"
}

search_context

Search for relevant code context based on a query.

Parameters:

  • project_id (string): Project identifier to search within
  • query (string): Search query string

Example:

{
  "project_id": "my-project",
  "query": "How is authentication implemented?"
}

Usage

  1. Start the MCP server (automatically started by MCP client)
  2. Use index_code to index your project
  3. Use search_context to search for code context

Data Storage

Indexed project data is stored in .acemcp_index/projects.json (configurable via INDEX_STORAGE_PATH).

Web Management Interface

The web management interface provides:

  • Real-time server status monitoring
  • Live log streaming via WebSocket
  • Configuration viewing (current settings)
  • Project statistics (number of indexed projects)

To enable the web interface, use the --web-port argument when starting the server.

Features:

  • Real-time log display with auto-scroll
  • Server status and metrics
  • Configuration overview
  • Responsive design with Tailwind CSS
  • No build step required (uses CDN resources)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

acemcp-0.1.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

acemcp-0.1.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file acemcp-0.1.0.tar.gz.

File metadata

  • Download URL: acemcp-0.1.0.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.0

File hashes

Hashes for acemcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ecbcda4b2b413e6abdf91abbe3eee4caab134fcb6162343b496f5db9445b9ea4
MD5 c45dd18dfdc97e1fecb72f880a988bcb
BLAKE2b-256 67f65c776832fc1608f0c90a5a5fd3318bb2685382082c9557abe89d68c065cf

See more details on using hashes here.

File details

Details for the file acemcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: acemcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.0

File hashes

Hashes for acemcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c2d46fda308505fa7da715cd44b97bb8e671ad7e15c561fa0a24ec9f602e9bc
MD5 8ad0e3bf2087c9818667c3e13ccce473
BLAKE2b-256 f0e32fa13d9601a1dfc0eb55e148211ff6e61531f44e3b16ba4af40d5830bd29

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page