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
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: JSON string containing directory information 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: Absolute directory where ChromaDB database and model cache will be stored (default: a 'data' directory inside the package)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
Using Python 3.11 as ChromaDB has issues with newer Python versions.
{
"mcpServers": {
"windtools": {
"command": "uvx",
"args": [
"-p",
"3.11",
"windtools-mcp"
],
"env": {
"DATA_ROOT": "/Users/<user>/windtools_data",
"CHROMA_DB_FOLDER_NAME": "chromadb",
"SENTENCE_TRANSFORMER_PATH": "jinaai/jina-embeddings-v2-base-code"
}
}
}
}
Data (including ChromaDB database and model cache) will be saved in the /Users/<user>/windtools_data directory and
persist between
container executions.
Development
Requirements
- Python 3.11
- 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
Inspector
npx @modelcontextprotocol/inspector uvx -p 3.11 windtools-mcp
Running Tests
pytest tests/
Project Structure
src/
windtools_mcp/
__init__.py
__main__.py
server.py
tests/
test_client.py
.gitignore
.python-version
pyproject.toml
README.md
Release Process
La versión del proyecto se gestiona de forma centralizada en el archivo VERSION. El proceso de release es automático:
- Actualizar el número de versión en el archivo
VERSION - Hacer commit y push a la rama
main - El flujo de trabajo de GitHub Actions automáticamente:
- Detectará el cambio en el archivo
VERSION - Creará un tag de git con el formato
v{VERSION} - Generará una release en GitHub
- Publicará el paquete en PyPI
- Detectará el cambio en el archivo
# Ejemplo de actualización de versión
echo "0.0.13" > VERSION
git add VERSION
git commit -m "Bump version to 0.0.13"
git push origin main
No es necesario crear manualmente tags o publicar en PyPI, todo se gestiona automáticamente cuando se actualiza el
archivo VERSION.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file windtools_mcp-0.0.17.tar.gz.
File metadata
- Download URL: windtools_mcp-0.0.17.tar.gz
- Upload date:
- Size: 100.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
849c3edd048255a05c4ad495040a1bcd5e83ca85150fe19c20155d72e834188e
|
|
| MD5 |
9949a8c8f9e7b38ca71af8fdfc0d927c
|
|
| BLAKE2b-256 |
b496898970f49a26806841645b47a542e0bfc972a91fad579260dcc0f46688f8
|
File details
Details for the file windtools_mcp-0.0.17-py3-none-any.whl.
File metadata
- Download URL: windtools_mcp-0.0.17-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0769cd8a312e53d33400e58780dd39fe7dee3f7f9c9d2ccbd2f6dbcc9803ee61
|
|
| MD5 |
3819349f5b101c96fb693d76ebbbe0c8
|
|
| BLAKE2b-256 |
19f81ce60ac4aa27557ffcac20fa46613f677c28eee5581d4af03059878d23b7
|