mcpField
M
MCP Server

MCP Server

Local
github.com/Hades-gslCloud & Infra1Updated 75w ago

About MCP Server

MCP Server exposes Kubernetes fault injection, stress testing, log retrieval, and load-test result utilities using Chaos Mesh. It is for teams testing pod and host behavior under disruptions.

Key features

  1. 01Pod and container fault injection
  2. 02CPU and memory stress tests
  3. 03Host disk fault simulation
  4. 04Network partition and bandwidth faults
  5. 05Service and container log retrieval
  6. 06Aggregated load-test result monitoring

Use cases

  1. 01Test pod behavior during failures
  2. 02Stress-test host or pod resources
  3. 03Review logs and load-test results

MCP support

The MCP server exposes tools for injecting faults, running stress tests, retrieving Kubernetes logs, and accessing aggregated load-test results.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MCP Server

MCP Server is a tool for injecting faults and performing stress tests on Kubernetes pods and hosts using Chaos Mesh. It also provides utilities for retrieving logs and monitoring load test results.

Features

  • Pod Fault Injection: Simulate pod failures, pod kills, and container kills.
  • Pod Stress Testing: Simulate CPU and memory stress tests on pods.
  • Host Stress Testing: Simulate CPU and memory stress tests on hosts.
  • Host Disk Faults: Simulate disk fill, read payload, and write payload faults on hosts.
  • Network Faults: Simulate network partition and bandwidth limitations.
  • Log Retrieval: Retrieve logs for specific services and containers.
  • Load Test Monitoring: Parse and retrieve aggregated load test results.

Project Structure

  • fault_inject.py: Contains functions for injecting faults and performing stress tests.
  • kube.py: Provides utilities for interacting with Kubernetes, such as retrieving pod logs.
  • server.py: Implements the MCP server and exposes tools for fault injection and log retrieval.
  • test.py: Contains test cases and examples for using the fault injection and logging utilities.
  • services.json: Defines the services in the cluster, including their namespaces, labels, and containers.

Installation

Prerequisites:

Before starting, make sure you have uv installed. You can install uv here .

1. Clone the repository:
git clone https://github.com/Hades-gsl/mcp_server.git
cd mcp_server
2. Build and set up the virtual environment using uv:
uv venv
source .venv/bin/activate
3. Install dependencies:
uv sync
4. Install Chaos Mesh in your Kubernetes cluster.

You can intall it here.

Usage

Run the MCP server using the following command:

uv run python server.py

You can specify the transport method by adding the --transport argument. By default, the transport parameter is set to sse.

Service Infomation

Write the services.json file to show the services in your cluster. You can write anything useful, the more detailed the better.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.