Auto-discover enterprise architecture artifacts from Java source code
Project description
Architecture Discovery Engine
Auto-discover enterprise architecture artifacts from Java/Maven source code. Scan your project and generate TOGAF-standard application architecture deliverables in seconds.
What It Does
Point it at a Java/Maven project and get:
- AA-01 Application Module Inventory (Excel)
- AA-02 Function Item Inventory (Excel)
- AA-03 Sub-function Inventory (Excel)
- AA-04 Function Distribution (Excel)
- AA-05 Integration Inventory (Excel)
- AA-07 Application Architecture Diagram (PPTX)
- AA-08 Application Integration Diagram (PPTX)
All generated from static analysis — no runtime required, no code leaves your machine.
Install
pip install architecture-discovery-mcp
Requires Python 3.11+.
Usage
As an MCP Server (recommended)
The engine runs as an MCP server over stdio. Configure it in your AI IDE:
Claude Code (~/.claude.json):
{
"mcpServers": {
"architecture-discovery": {
"command": "architecture-discovery-mcp"
}
}
}
Cursor (.cursor/mcp.json):
{
"mcpServers": {
"architecture-discovery": {
"command": "architecture-discovery-mcp"
}
}
}
VS Code (.vscode/settings.json):
{
"mcp": {
"servers": {
"architecture-discovery": {
"command": "architecture-discovery-mcp"
}
}
}
}
Then ask your AI assistant naturally:
"Scan D:/projects/my-java-app and generate the application architecture artifacts"
Available MCP Tools
| Tool | Description |
|---|---|
scan_project_tool |
Scan project structure, return modules/frameworks overview |
generate_app_architecture_tool |
Generate full AA artifact set (Excel + PPTX) |
export_intermediate_data |
Export structured analysis as JSON |
generate_data_architecture |
DA artifacts (coming soon) |
generate_tech_architecture |
TA artifacts (coming soon) |
All tools accept an optional locale parameter ("zh" or "en", default "zh").
As a Python Library
from pathlib import Path
from src.scanner.project_scanner import scan_project
from src.analyzers.module_analyzer import analyze_modules
from src.analyzers.api_analyzer import analyze_apis
from src.analyzers.integration_analyzer import analyze_integrations
from src.generators.app_architecture_generator import generate_app_architecture
from src.generators.aa07_generator import generate_aa07
from src.generators.aa08_generator import generate_aa08
project = scan_project(Path("your-java-project"))
project = analyze_modules(project)
endpoints = analyze_apis(project)
integrations = analyze_integrations(project)
out = Path("output")
generate_app_architecture(project, endpoints, integrations, out, locale="en")
generate_aa07(project, out, locale="en")
generate_aa08(project, integrations, out, locale="en")
Supported Projects
- Java/Maven projects (must have
pom.xml) - Spring Boot / Spring Cloud microservices
- Feign client integration detection
- Nested multi-module projects (e.g. RuoYi-Cloud style)
Internationalization
Artifacts can be generated in Chinese (locale="zh", default) or English (locale="en"). This controls:
- Excel column headers and sheet names
- Cell values (layer names, status labels)
- PPTX slide titles and diagram labels
- Font selection (Microsoft YaHei for Chinese, Calibri for English)
Security
- Runs locally via stdio — no network exposure
- Source code never leaves your machine
- Exported JSON contains only structural metadata (class names, API paths, annotations), not source code
Development
git clone <repo-url>
cd architecture-discovery-engine
pip install -e ".[dev]"
pytest tests/ -v
License
MIT
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 architecture_discovery_mcp-0.3.0.tar.gz.
File metadata
- Download URL: architecture_discovery_mcp-0.3.0.tar.gz
- Upload date:
- Size: 29.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6434aa06950391245ed28076e8845896e6069754cbe4164ca3943a12dce45c53
|
|
| MD5 |
1ddbe0222443b637038a1ae17a63d4da
|
|
| BLAKE2b-256 |
21284cf7549bd1b535acffd999f2fc08f796df2ed238656a9a5f32f6d46a7b2c
|
Provenance
The following attestation bundles were made for architecture_discovery_mcp-0.3.0.tar.gz:
Publisher:
publish.yml on rdtan/architecture-discovery-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
architecture_discovery_mcp-0.3.0.tar.gz -
Subject digest:
6434aa06950391245ed28076e8845896e6069754cbe4164ca3943a12dce45c53 - Sigstore transparency entry: 2194248291
- Sigstore integration time:
-
Permalink:
rdtan/architecture-discovery-mcp@f0721e74c8224d197c021f3d8fa7d5971d291f96 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/rdtan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f0721e74c8224d197c021f3d8fa7d5971d291f96 -
Trigger Event:
push
-
Statement type:
File details
Details for the file architecture_discovery_mcp-0.3.0-py3-none-any.whl.
File metadata
- Download URL: architecture_discovery_mcp-0.3.0-py3-none-any.whl
- Upload date:
- Size: 31.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2917b5c1736d1c1a26aa7add71759749a4e324b989c388133bbac1e513541e78
|
|
| MD5 |
cf8e889ab1d34aee7c72d9d6e5af6a59
|
|
| BLAKE2b-256 |
56f1d480b3c5d8894046d0400e9ec4bb53beb03aeca5f2dff278dc5ba3a9ef6e
|
Provenance
The following attestation bundles were made for architecture_discovery_mcp-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on rdtan/architecture-discovery-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
architecture_discovery_mcp-0.3.0-py3-none-any.whl -
Subject digest:
2917b5c1736d1c1a26aa7add71759749a4e324b989c388133bbac1e513541e78 - Sigstore transparency entry: 2194248300
- Sigstore integration time:
-
Permalink:
rdtan/architecture-discovery-mcp@f0721e74c8224d197c021f3d8fa7d5971d291f96 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/rdtan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f0721e74c8224d197c021f3d8fa7d5971d291f96 -
Trigger Event:
push
-
Statement type: