karate-graph-mcp

karate-graph-mcp

Enables analysis of Karate framework feature files, extracting dependencies and generating interactive dependency graphs.

Category
Visit Server

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.

Python MCP License


✨ 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/repo with 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-fw and analyze it."
  • "Show me all test cases affected by a change in the OrderManagement page."
  • "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

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

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.

Official
Featured