loading…
Search for a command to run...
loading…
Enables analysis of Karate framework feature files, extracting dependencies and generating interactive dependency graphs.
Enables analysis of Karate framework feature files, extracting dependencies and generating interactive dependency graphs.
A powerful Model Context Protocol (MCP) tool designed for AI agents (Claude, Antigravity, Cursor) to analyze Karate Framework feature files, manage multi-project dependencies, and generate interactive graphs.
Instead of running scripts manually, you can just chat with your codebase:
Option A: Standard (Requires Internet)
git clone <repository-url>
cd karate-feature-graph-analyzer
pip install -e .
Option B: Offline / Vendor Mode (No Internet Required)
If your environment blocks external downloads, use the pre-packaged libraries in python_libs:
git clone <repository-url>
cd karate-feature-graph-analyzer
# Install all dependencies from local vendor folder
pip install --no-index --find-links=python_libs -r requirements.txt
# Install the project in editable mode
pip install -e . --no-deps
Add the following to your AI client configuration (e.g., claude_desktop_config.json):
{
"mcpServers": {
"karate-analyzer": {
"command": "python",
"args": ["C:/path/to/repo/src/karate_graph_analyzer/mcp_server.py"],
"env": {
"PYTHONPATH": "C:/path/to/repo/src",
"PYTHONIOENCODING": "utf-8"
}
}
}
}
[!IMPORTANT] Replace
C:/path/to/repowith the actual absolute path of this repository.
Once connected, just ask your AI:
E:/my-karate-fw and analyze it."OrderManagement page."| Tool | AI Command Example |
|---|---|
register_project |
"Register my project at [path] as 'Core-Service'" |
bulk_analyze |
"Scan all my projects and find any issues" |
merge_projects |
"Merge project A and B to see cross-project dependencies" |
impact_analysis |
"Which tests break if I modify the @AddPayment scenario?" |
search_api |
"Find all POST endpoints in the checkout domain" |
get_project_health |
"Give me a health report for project X" |
export_graph |
"Export the graph of project Y to JSON" |
The analyzer generates interactive HTML graphs in the output/ directory using a standardized Visual Identity System:
Shapes & Meanings:
Interactive Features:
If you still prefer the terminal, you can use the built-in scanners:
python scan_project.py <path_to_project> <output_name>
python scan_all_projects.py <path1> <path2> <parent_folder>
karate-feature-graph-analyzer/
├── src/karate_graph_analyzer/
│ ├── mcp_server.py # MCP Server Entry Point
│ ├── mcp_interface/ # MCP Tool Logic
│ ├── parser/ # Karate/Gherkin Parser
│ ├── graph/ # Graph Construction
│ └── visualization/ # HTML/Vis.js Generator
├── python_libs/ # [NEW] Offline python dependencies (.whl)
├── requirements.txt # Dependency list for installation
├── output/ # Generated HTML/JSON files
└── tests/ # 300+ Unit & Integration tests
This project is licensed under the MIT License.
Built with ❤️ for the Karate Community.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"karate-graph-mcp": {
"command": "npx",
"args": []
}
}
}