Enables AI-driven remediation testing for Kubernetes clusters, including pod management, deployment operations, and fault injection through chaos engineering tools like Chaos Mesh and Litmus.
Planned integration for distributed tracing of remediation workflows and test scenario execution.
Supports metrics verification through SignalFlow queries for validating system state and performance during remediation testing scenarios.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AI-Driven Remediation Testingrun scenario scenario-001 with namespace=production"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Server - AI-Driven Remediation Testing
A production-ready Model Context Protocol (MCP) server for orchestrating AI-driven remediation test scenarios with gRPC, WebSocket, and HTTP integrations.
Overview
MCP Server provides end-to-end orchestration for testing AI-powered incident remediation workflows. It reads declarative YAML scenarios, injects faults, interacts with remediation APIs, evaluates AI responses, executes remediation commands, and produces comprehensive test reports.
Features
Declarative Scenarios: Define test scenarios in YAML with variable substitution
FSM-Based Orchestration: 13-state finite state machine for reliable execution
Fault Injection: Integrate with chaos engineering tools (Chaos Mesh, Litmus, etc.)
AI Evaluation: Score AI responses using regex, JSON Schema, and semantic similarity
Secure Execution: Sandboxed command execution with deny patterns
Remediation API Integration: Full HTTP/WebSocket client for workflow APIs
Comprehensive Logging: DEBUG+ file logs, INFO+ console, artifact management
Production-Ready: Type-safe Python 3.11+ with pydantic validation
Architecture
Installation
Configuration
Configuration can be provided via config.yaml or environment variables:
Environment variables (override config.yaml):
Scenario Definition
Scenarios are defined in YAML with the following structure:
FSM States
The orchestration engine follows this state machine:
INIT: Initialize scenario, resolve bindings
PRECHECK: Run pre-execution checks (SignalFlow)
FAULT_INJECT: Inject fault using FaultService
STABILIZE: Wait for system stabilization
ASSISTANT_RCA: Get RCA from remediation API
EVAL_RCA: Evaluate RCA response
ASSISTANT_REMEDY: Get remediation commands
EVAL_REMEDY: Evaluate remedy response
EXECUTE_REMEDY: Execute commands
VERIFY: Verify system state
PASS: Scenario passed
FAIL: Scenario failed
CLEANUP: Clean up resources
Usage
Start Server
Run Scenario (Programmatic)
Check Results
Results are stored in log/runs/{run_id}/:
scenario.yaml: Original scenariotranscript.json: RCA/remedy responsesreport.json: Final test reportcmd_*.txt: Command outputs
Services
FaultService
Injects and cleans up faults. Stub implementation provided; integrate with:
Chaos Mesh (Kubernetes)
Litmus (Kubernetes)
Gremlin (Cloud)
ExecutorService
Executes commands with sandboxing:
Local execution via
asyncio.subprocessDeny pattern enforcement
Output capture and artifact storage
EvalService
Evaluates AI responses:
Regex guards: Pattern matching
JSON Schema: Structure validation
Semantic similarity: Token-based Jaccard
RemediationClient
HTTP client for remediation workflow API:
initiate_remediation(): Start new workflowresume_remediation(): Resume with inputJSON pointer resolution for graph navigation
API Reference
ScenarioService
Remediation API
InitiateEnsemble:
ResumeEnsemble:
Logging
Console: INFO+ (concise)
File: DEBUG+ at
log/mcp_server.log(rotating, 10MB, 5 backups)Artifacts: Per-run in
log/runs/{run_id}/
Development
Project Structure
Testing
Production Deployment
Docker
Kubernetes
Contributing
Follow PEP 8 style guidelines
Add type hints to all functions
Write docstrings for public APIs
Update tests for new features
License
MIT License - See LICENSE file for details
Support
For issues and questions:
GitHub Issues: https://github.com/your-org/mcp-server/issues
Documentation: https://docs.your-org.com/mcp-server
Roadmap
Full gRPC code generation from .proto files
WebSocket streaming for real-time events
Chaos Mesh integration
Prometheus metrics export
OpenTelemetry tracing
Multi-scenario parallel execution
Scenario templates and library