Skip to main content

A Model Context Protocol server for turning repositories into navigable MCP systems

Project description

Dev-Kit MCP Server

PyPI - Python Version version License OS OS OS Tests Code Checks codecov Ruff Last Commit

A Model Context Protocol (MCP) server targeted for agent development tools, providing scoped authorized operations in the root project directory. This package enables secure execution of operations such as running makefile commands, moving and deleting files, with future plans to include more tools for code editing. It serves as an excellent MCP server for VS-Code copilot and other AI-assisted development tools.

Features

  • 🔒 Secure Operations: Execute operations within a scoped, authorized root directory
  • 🛠️ Makefile Command Execution: Run makefile commands securely within the project
  • 📁 File Operations: Move, Create, Rename and Delete files within the authorized directory
  • 🔌 MCP Integration: Turn any codebase into an MCP-compliant system
  • 🤖 AI-Assisted Development: Excellent integration with VS-Code copilot and other AI tools
  • 🔄 Extensible Framework: Easily add new tools for code editing and other operations
  • 🚀 Fast Performance: Built with FastMCP for high performance

Installation

pip install dev-kit-mcp-server

Usage

Running the Server

# Recommended method (with root directory specified)
dev-kit-mcp-server --root-dir=workdir

# Alternative methods
uv run python -m dev_kit_mcp_server.mcp_server --root-dir=workdir
python -m dev_kit_mcp_server.mcp_server --root-dir=workdir

The --root-dir parameter specifies the directory where file operations will be performed. This is important for security reasons, as it restricts file operations to this directory only.

Available Tools

The server provides the following tools:

  • exec_make_target: Run makefile commands securely within the project
  • create_dir: Create directories within the authorized root directory
  • move_dir: Move files and directories within the authorized root directory
  • remove_file: Delete files within the authorized root directory

Example Usage with MCP Client

from fastmcp import Client
async def example()
    async with Client() as client:
        # List available tools
        tools = await client.list_tools()

        # Run a makefile command
        result = await client.call_tool("exec_make_target", {"commands": ["test"]})

        # Create a directory
        result = await client.call_tool("create_dir", {"path": "new_directory"})

        # Move a file
        result = await client.call_tool("move_dir", {"path1": "source.txt", "path2": "destination.txt"})

        # Remove a file
        result = await client.call_tool("remove_file", {"path": "file_to_remove.txt"})

        # Rename a file
        result = await client.call_tool("rename_file", {"path1": "old_name.txt", "path2": "new_name.txt"})

Development

Setup

# Clone the repository
git clone https://github.com/DanielAvdar/dev-kit-mcp-server.git
cd dev-kit-mcp-server

# Install development dependencies
pip install -e ".[dev]"

# Run tests
pytest

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

dev_kit_mcp_server-0.0.3b0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

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

dev_kit_mcp_server-0.0.3b0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file dev_kit_mcp_server-0.0.3b0.tar.gz.

File metadata

File hashes

Hashes for dev_kit_mcp_server-0.0.3b0.tar.gz
Algorithm Hash digest
SHA256 c20b84bb334499841b797ad7e9085cb01ebbb5fc79b7148db173e49583eac31a
MD5 37a91d10f46dcbdf8e630184e75e4f65
BLAKE2b-256 7ffe31c6f43c54bb490c36af5846618e74bea52b14a5288185cbd12be4c5405e

See more details on using hashes here.

File details

Details for the file dev_kit_mcp_server-0.0.3b0-py3-none-any.whl.

File metadata

File hashes

Hashes for dev_kit_mcp_server-0.0.3b0-py3-none-any.whl
Algorithm Hash digest
SHA256 de12b7dc511a770ad5e0800d5addb92d0d44e99f160da130b4d2059bae2a9824
MD5 d9c57f80331c5c526b607530f7956f57
BLAKE2b-256 78a355ace7b42306030d9aa900135e4f1b0ce4f43c9f1bd0e4a042806e42bd69

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