Skip to main content

This MCP server provides a set of tools that support AI-driven Development workflows.

Project description

AiDD MCP Server

AiDD (AI-Driven Development) is a Model Context Protocol server designed to facilitate AI-assisted software development workflows. It provides a secure and efficient interface for AI agents to interact with local file systems and perform code analysis across multiple programming languages using tree-sitter.

Quick Install

# Using npx
npx @michaellatman/mcp-get@latest install aidd

# Using pip
pip install aidd

# Using uv
uvx aidd

Overview

AiDD implements the Model Context Protocol (MCP) to enable seamless integration between AI agents and development environments. It offers comprehensive file system operations, directory management, and advanced code analysis capabilities while maintaining strict security controls.

Key Features

File System Operations

  • Secure file reading, writing, and manipulation
  • Batch file operations support
  • Git-aware performance optimizations
  • Detailed file metadata access
  • Comprehensive Git operations support

Code Analysis

  • Multi-language source code parsing
  • Structural analysis of code components
  • Function and class mapping
  • Inheritance and dependency detection

Security

  • Strict directory access controls
  • Path traversal prevention
  • Configurable workspace boundaries
  • Safe file operation handling

Tool Descriptions

File Operations

read_file

  • path(string): Path to the file to read
  • Returns: Content of the file

read_multiple_files

  • paths(array of strings): List of file paths to read
  • Returns: Contents of all files with headers

write_file

  • path(string): Path where to write the file
  • content(string): Content to write to the file

edit_file

  • path(string): File to edit
  • edits(array): List of edit operations
    • oldText(string): Text to search for
    • newText(string): Text to replace with
  • dryRun(boolean, optional): Preview changes without applying (default: false)
  • options(object, optional):
    • preserveIndentation(boolean): Keep existing indentation (default: true)
    • normalizeWhitespace(boolean): Normalize spaces (default: true)
    • partialMatch(boolean): Enable fuzzy matching (default: true)

move_file

  • source(string): Source path of the file or directory
  • destination(string): Destination path

delete_file

  • path(string): Path to the file or empty directory to delete

get_file_info

  • path(string): Path to the file or directory
  • Returns: Size, timestamps, and permissions

Directory Operations

get_allowed_directory

Returns the current working directory that this server is allowed to access.

update_allowed_directory

  • directory(string): Directory to allow access to (must be absolute path)

list_directory

  • path(string): Path of the directory to list

create_directory

  • path(string): Path of the directory to create

directory_tree

  • path(string): Root directory to analyze

search_files

  • pattern(string): Pattern to search for in file names
  • path(string, optional): Starting directory for search (default: ".")
  • include_hidden(boolean, optional): Include hidden files (default: false)

Code Analysis

tree_sitter_map

  • path(string): Root directory to analyze
  • Returns: Structural analysis of source code files

Git Operations

git_init

  • path(string): Path where to initialize the repository
  • initial_branch(string, optional): Name of the initial branch (defaults to 'main')
  • Returns: Confirmation of repository initialization

git_status

  • repo_path(string): Path to git repository
  • Returns: Current status of working directory

git_diff_unstaged

  • repo_path(string): Path to git repository
  • Returns: Diff output of unstaged changes

git_diff_staged

  • repo_path(string): Path to git repository
  • Returns: Diff output of staged changes

git_diff

  • repo_path(string): Path to git repository
  • target(string): Target branch or commit to compare with
  • Returns: Diff output comparing current state with target

git_commit

  • repo_path(string): Path to git repository
  • message(string): Commit message
  • Returns: Confirmation with new commit hash

git_add

  • repo_path(string): Path to git repository
  • files(array of strings): List of file paths to stage
  • Returns: Confirmation of staged files

git_reset

  • repo_path(string): Path to git repository
  • Returns: Confirmation of unstaging operation

git_log

  • repo_path(string): Path to git repository
  • max_count(integer, optional): Maximum number of commits to show (default: 10)
  • Returns: Array of commit entries with hash, author, date, and message

git_create_branch

  • repo_path(string): Path to git repository
  • branch_name(string): Name of the new branch
  • base_branch(string, optional): Starting point for the new branch
  • Returns: Confirmation of branch creation

git_checkout

  • repo_path(string): Path to git repository
  • branch_name(string): Name of branch to checkout
  • Returns: Confirmation of branch switch

git_show

  • repo_path(string): Path to git repository
  • revision(string): The revision (commit hash, branch name, tag) to show
  • Returns: Contents of the specified commit

Supported Languages

AiDD provides deep code analysis for multiple programming languages through tree-sitter integration:

Language File Extensions
Python .py
JavaScript .js, .jsx, .mjs, .cjs
TypeScript .ts, .tsx
Java .java
C++ .cpp, .hpp, .cc, .hh, .cxx, .hxx
Ruby .rb, .rake
Go .go
Rust .rs
PHP .php
C# .cs
Kotlin .kt, .kts

Configuration

AiDD stores its configuration in ~/.aidd/config.json:

{
    "allowed_directory": "/path/to/workspace"
}

Claude Desktop Integration

Add this to your claude_desktop_config.json:

"mcpServers": {
    "aidd": {
        "command": "aidd",
        "args": []
    }
}

Debugging

For the best debugging experience, use the MCP Inspector:

npx @modelcontextprotocol/inspector --directory /path/to/directory/aidd/src/aidd run aidd

The Inspector will provide a URL to access the debugging interface in your browser.

Security Considerations

  • All file operations are restricted to the configured allowed directory
  • Path traversal attempts are automatically blocked
  • File permissions are preserved and validated
  • Sensitive operations require explicit configuration

Performance Optimization

  • Git-aware operations for improved performance in repositories
  • Efficient batch operations for multiple files
  • Caching of frequently accessed paths
  • Optimized code parsing for large files

Upcoming Tools

  • GitHub tools:
    • PR Description Generator
    • Code Review
    • Actions Manager
  • Pivotal Tracker tools:
    • Story Generator
    • Story Manager

Development Status

Please note that AiDD is currently in development and functionality may be subject to change.

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

mcp_server_aidd-0.1.2.tar.gz (40.9 kB view details)

Uploaded Source

Built Distribution

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

mcp_server_aidd-0.1.2-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_aidd-0.1.2.tar.gz.

File metadata

  • Download URL: mcp_server_aidd-0.1.2.tar.gz
  • Upload date:
  • Size: 40.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.2

File hashes

Hashes for mcp_server_aidd-0.1.2.tar.gz
Algorithm Hash digest
SHA256 51d5457bbb87916d85afab293ac84daa03ddc38441eb212e591c01c81ca48ce5
MD5 aedc0bde2f07f860e463e82019870f90
BLAKE2b-256 7ba4b830f6ce6be3fe5fea327b11838c850e74a346980ba0fca7c8ca60acd8f9

See more details on using hashes here.

File details

Details for the file mcp_server_aidd-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_aidd-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb09c37e14c5794b191369badbec151aefab40a717b342d9d81a00b28eef695f
MD5 a1d977cb7f784b2159a2d7e13b401734
BLAKE2b-256 eff5767db2338d1a50c8afe988e74ab45ae489570dfc71f90de9075ef52be109

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