Skip to main content

A Codebase MCP Tools

Project description

WindTools MCP Server

MCP Server for the WindTools code assistant, providing document embedding and retrieval capabilities using ChromaDB and sentence transformers.

Features

  • Semantic Code Search: Uses sentence transformers for embedding code snippets and retrieval
  • Persistent Storage: Saves code embeddings in ChromaDB for persistent retrieval
  • Directory Exploration: Built-in tools for navigating and exploring codebases
  • Environment Configuration: Configurable through environment variables

Tools

  1. list_dir
    • List the contents of a directory
    • Inputs:
      • directory_path (string): Path to list contents of, should be absolute path to a directory
    • Returns: String with directory listing including file types and sizes

Technical Architecture

The WindTools MCP Server is built on these key components:

  • ChromaDB: Vector database for storing and retrieving code embeddings
  • Sentence Transformers: Deep learning models for creating embeddings from code
  • FastMCP: Framework for building MCP-compliant servers
  • Async Lifespan Management: Efficient resource initialization and cleanup

Setup

Environment Variables

The server can be configured with the following environment variables:

  • DATA_ROOT: Directorio base donde se almacenarán todos los datos (por defecto: /app/data)
  • CHROMA_DB_FOLDER_NAME: Name of the folder where ChromaDB stores data (default: "default")
  • SENTENCE_TRANSFORMER_PATH: Path to the sentence transformer model (default: "jinaai/jina-embeddings-v2-base-code")

Installation

Using pip

pip install windtools-mcp

From source

git clone https://github.com/ZahidGalea/windtools-mcp
cd windtools-mcp
pip install -e .

Usage with Claude Desktop

Add the following to your claude_desktop_config.json:

Direct Execution

{
  "mcpServers": {
    "windtools": {
      "command": "uvx",
      "args": [
        "windtools-mcp"
      ],
      "env": {
        "DATA_ROOT": "~/windtools_data",
        "CHROMA_DB_FOLDER_NAME": "chromadb",
        "SENTENCE_TRANSFORMER_PATH": "jinaai/jina-embeddings-v2-base-code"
      }
    }
  }
}

Los datos (incluyendo la base de datos ChromaDB y el caché de modelos) se guardarán en el directorio ~/windtools_data y persistirán entre ejecuciones del contenedor.

Development

Requirements

  • Python 3.10.13 or higher
  • Dependencies listed in pyproject.toml

Development Setup

# Create a virtual environment (optional but recommended)
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install development dependencies
uv sync --dev

Running Tests

pytest tests/

Project Structure

src/
  windtools_mcp/
    __init__.py
    __main__.py
    server.py
tests/
  test_client.py
.gitignore
.python-version
pyproject.toml

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License.

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

windtools_mcp-0.0.4.tar.gz (112.3 kB view details)

Uploaded Source

Built Distribution

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

windtools_mcp-0.0.4-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file windtools_mcp-0.0.4.tar.gz.

File metadata

  • Download URL: windtools_mcp-0.0.4.tar.gz
  • Upload date:
  • Size: 112.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.16

File hashes

Hashes for windtools_mcp-0.0.4.tar.gz
Algorithm Hash digest
SHA256 92326914c7de25a39d9b4e51e54807fd6344f125dbe82bc63a480ac39106ef07
MD5 d9f0919ceebdf91b2960a12b1def91cf
BLAKE2b-256 955ba039804a412e1118eba3b59112e3d48ea09bfabc51c8c603795ab937de10

See more details on using hashes here.

File details

Details for the file windtools_mcp-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for windtools_mcp-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 514d6c93f675768981479af637597e8a2fe2d928beb76aa3ea7f5b921680f34a
MD5 d9a732709ca2c9b01da5c02e3d1a029d
BLAKE2b-256 f4a06110a7b68b7c61880ee8ba8f3762164790acbbe5f58aca9fbc8c7961be08

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