Codegraph
Scans Java JARs and IntelliJ projects to build and expose a class-dependency graph through the MCP protocol.
About
CodeGraph provides a robust solution for understanding the intricate class dependencies within Java applications. It intelligently scans JAR files and IntelliJ project classes, constructing a detailed dependency graph that is then persisted in an embedded Neo4j database. This powerful graph is made accessible to other tools and agents via the MCP protocol, whether through a command-line interface that watches for new JARs or an integrated IntelliJ plugin that offers real-time updates and direct IDE access. It streamlines code analysis for large, multi-module Java projects.
Key Features
- 0 GitHub stars
- IntelliJ plugin for integrating with the IDE, scanning open projects, and incremental graph updates.
- Persists the resulting graph in an embedded Neo4j database.
- CLI module for watching directories and serving MCP requests over STDIO or SSE.
- Automatically generates an MCP manifest reflecting available query capabilities.
- Scans JAR files or IntelliJ project classes to build a class-dependency graph.
Use Cases
- Analyzing class and package dependencies within complex Java applications.
- Integrating real-time code graph analysis directly into the IntelliJ IDEA development workflow.
- Providing a programmatic interface (MCP) for AI agents or other tools to query Java code structure.
- Automating the generation and updating of code dependency graphs for CI/CD pipelines.