karate-graph-mcp
Enables analysis of Karate framework feature files, extracting dependencies and generating interactive dependency graphs.
README
š Karate Feature Graph Analyzer (MCP-Powered)
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.
⨠Why use this with AI?
Instead of running scripts manually, you can just chat with your codebase:
- š Impact Analysis: Ask AI "What happens if I change this API?" and see the exact lines affected.
- š Ecosystem View: Merge multiple projects into one global graph via chat.
- š Source Snippets: View relevant code snippets around dependencies directly in AI search results.
- š« Ticket tracking: Automatically link Jira tags to code components.
- 𩺠Health Check: Get AI-generated reports on cycles and redundant components.
š Quick Start (AI-Powered)
1. Installation
git clone <repository-url>
cd karate-feature-graph-analyzer
pip install -e .
2. Configure MCP Client
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.
3. Start Analyzing via Chat
Once connected, just ask your AI:
- "Register the project at
E:/my-karate-fwand analyze it." - "Show me all test cases affected by a change in the
OrderManagementpage." - "Scan all my registered projects and give me a health summary."
š¤ Available AI Tools
| 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" |
š Visualizing Results
The analyzer generates interactive HTML graphs in the output/ directory.
- Color Coding:
- š¢ Test Case: Main entry points/Scenarios.
- šµ Workflow: Reusable feature files.
- š API: REST/SOAP endpoints.
- š£ Page: Page Objects / UI Logic.
- š“ Database: DB operations.
- Features:
- Click to Highlight: See exact dependency paths.
- Interactive Tooltips: View file paths, line numbers, and Jira tags.
- Legend: Included in the top-right corner.
š ļø Advanced Usage (CLI)
If you still prefer the terminal, you can use the built-in scanners:
Scan a single project
python scan_project.py <path_to_project> <output_name>
Scan multiple projects at once
python scan_all_projects.py <path1> <path2> <parent_folder>
š Project Structure
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
āāā output/ # Generated HTML/JSON files
āāā tests/ # 300+ Unit & Integration tests
š License
This project is licensed under the MIT License.
Built with ā¤ļø for the Karate Community.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.