code-analysis-mcp-server

code-analysis-mcp-server

0

The Code Analysis MCP Server is a modular server designed to integrate code analysis tools, particularly ast-grep, providing a standardized interface for structural code analysis and transformations. It supports multiple programming languages and offers containerized deployment options.

Code Analysis MCP Server

A modular MCP server designed for code analysis tools with a focus on ast-grep integration. It enables AI assistants to perform structural code queries and transformations.

Features

  • Structural code analysis using ast-grep
  • Code transformations with pattern replacement
  • Custom YAML rule application
  • Project-wide scanning
  • Containerized deployment with Docker
  • Modular architecture for easy extension

Requirements

  • Python 3.12.8
  • ast-grep CLI tool
  • Docker

Available Tools

  • ast-grep for setting project paths, parsing code, finding and replacing patterns, running YAML rules, scanning projects, initializing, and testing rules.

Supported Languages

  • Python, JavaScript, TypeScript, Rust, Go, Java, C, C++, C#

Contributing

Contributions are welcome! Please submit a Pull Request.

License

This project is under the MIT License.