Skip to main content
Glama

CtrlTest MCP Server

README.md1.54 kB
# ctrltest-mcp [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![Python](https://img.shields.io/badge/python-3.10+-brightgreen.svg)](pyproject.toml) [![CI](https://github.com/yevheniikravchuk/ctrltest-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/yevheniikravchuk/ctrltest-mcp/actions/workflows/ci.yml) Reusable control-system regression utilities for Model Context Protocol services. It evaluates PID gains against a second-order plant, computes gust-rejection metrics, and blends optional diffSPH/Foam-Agent metrics supplied by the caller. ## Features - Deterministic PID step response analysis (overshoot, settling time, ISE). - Optional gust detector, adaptive CPG, and MoE router scoring primitives. - FastAPI app + python-sdk helper ready for MCP deployments. ## Installation ```bash pip install "git+https://github.com/yevheniikravchuk/ctrltest-mcp.git" ``` ## Usage ```python from ctrltest_mcp import ControlAnalysisInput, ControlPlant, ControlSimulation, PIDGains from ctrltest_mcp import evaluate_control inputs = ControlAnalysisInput( plant=ControlPlant(natural_frequency_hz=5.0, damping_ratio=0.6, settling_tolerance_rad=0.02, trim_setpoint=0.0), simulation=ControlSimulation(duration_s=5.0, sample_points=500), gains=PIDGains(kp=0.8, ki=0.05, kd=0.02), ) metrics = evaluate_control(inputs) print(metrics["overshoot"]) ``` ## Development ```bash uv pip install --system -e .[dev] uv run ruff check . uv run pytest ``` ## License MIT — see [LICENSE](LICENSE).

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yevheniikravchuk/ctrltest-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server