Control systems frequency response and LQR/PID MCP server
  • TypeScript 57%
  • Python 39.8%
  • CSS 1.5%
  • Shell 1.1%
  • Dockerfile 0.4%
  • Other 0.2%
Find a file
Erwan Lee Pesle c85d9c4957
Some checks failed
ci.yml / Merge pull request #2 from vidimus-dev/chore/vidimus-dev-ghcr (push) Failing after 0s
Merge pull request #2 from vidimus-dev/chore/vidimus-dev-ghcr
chore(ci): migrate engineering-toolchain and GHCR to vidimus-dev
2026-12-05 15:34:50 +08:00
.github/workflows chore(ci): migrate engineering-toolchain and GHCR target to vidimus-dev 2026-12-05 15:32:08 +08:00
scripts feat: initial release of @casys/mcp-control v0.1.0 (port 3039) 2026-12-04 19:57:25 +08:00
src feat: initial release of @casys/mcp-control v0.1.0 (port 3039) 2026-12-04 19:57:25 +08:00
tests feat: initial release of @casys/mcp-control v0.1.0 (port 3039) 2026-12-04 19:57:25 +08:00
.gitignore feat: initial release of @casys/mcp-control v0.1.0 (port 3039) 2026-12-04 19:57:25 +08:00
.release-please-manifest.json feat: initial release of @casys/mcp-control v0.1.0 (port 3039) 2026-12-04 19:57:25 +08:00
CHANGELOG.md feat: initial release of @casys/mcp-control v0.1.0 (port 3039) 2026-12-04 19:57:25 +08:00
deno.json feat: initial release of @casys/mcp-control v0.1.0 (port 3039) 2026-12-04 19:57:25 +08:00
deno.lock feat: initial release of @casys/mcp-control v0.1.0 (port 3039) 2026-12-04 19:57:25 +08:00
Dockerfile feat: initial release of @casys/mcp-control v0.1.0 (port 3039) 2026-12-04 19:57:25 +08:00
LICENSE feat: initial release of @casys/mcp-control v0.1.0 (port 3039) 2026-12-04 19:57:25 +08:00
mod.ts feat: initial release of @casys/mcp-control v0.1.0 (port 3039) 2026-12-04 19:57:25 +08:00
README.md feat: initial release of @casys/mcp-control v0.1.0 (port 3039) 2026-12-04 19:57:25 +08:00
release-please-config.json feat: initial release of @casys/mcp-control v0.1.0 (port 3039) 2026-12-04 19:57:25 +08:00
renovate.json chore(ci): migrate engineering-toolchain and GHCR target to vidimus-dev 2026-12-05 15:32:08 +08:00
server.ts feat: initial release of @casys/mcp-control v0.1.0 (port 3039) 2026-12-04 19:57:25 +08:00

@casys/mcp-control

Deterministic Layer-4 MCP server (v0.1.0, port 127.0.0.1:3039) for classical & modern control systems, LQR/PID synthesis, linearized 6-DOF aircraft flight-dynamics modes, and closed-loop gust/saturation disturbance simulation with Level-2 @mcpview/compose Code Mode snippets and 3 interactive MCP App widgets.

Provenance

All four tools, Level-2 snippets, _meta["io.casys/provenance"] headers, /health, and MCP App widget badges report literal provenance deterministic-analysis.

@casys/mcp-control executes deterministic Python/NumPy/SciPy control-systems models (with an IEEE-754 parity Python stdlib fallback for bare Node/host installs). In the Casys Digital Thread provenance contract, verified-solver is reserved strictly for independent established physics engines (CalculiX, OpenFOAM, OCCT, ngspice, OpenEMS, Project Chrono, MIT AVL, and Z3).

Engineering Tools & Level-2 Snippets

Direct MCP Tool Level-2 Snippet Primary Widget View Deterministic Analysis Model
control_analyze_frequency_response analyze_frequency_response bode-margins Transfer-function (num, den) or state-space (A, B, C, D) open-loop Bode/Nyquist analysis with exact transport delay exp(-jωτ), GM, PM, M_s, -3 dB bandwidth, closed-loop poles & ζ
control_synthesize_lqr_pid synthesize_lqr_pid step-response Exact CARE LQR (solve_continuous_are / Matrix Sign Function) or filtered PID synthesis with closed-loop eigenvalues, step-response metrics (t_r, M_p, t_s2%), and actuator saturation check
control_analyze_flight_modes analyze_flight_modes flight-modes Generic 4×4 longitudinal & 4×4 lateral-directional linearized flight dynamics classifying Short-Period, Phugoid, Dutch Roll, Roll Subsidence, and Spiral modes against MIL-F-8785C Level-1 limits
control_simulate_disturbance simulate_disturbance step-response Nonlinear closed-loop time-domain ODE (solve_ivp / RK4) with 1-cos discrete wind gust or step disturbance, actuator rate limit, deflection saturation, transport delay, and rejection verdict

Interactive MCP App Viewers (src/ui/)

  • ui://mcp-control/bode-margins — Dual Bode magnitude/phase SVG chart with 0 dB/-180° crossover cursors, Nyquist plot with (-1, 0) crosshair and 1/M_s circle, qualification badge, and closed-loop pole table.
  • ui://mcp-control/step-response — Output y(t) vs reference/disturbance SVG plot, control effort u(t) with saturation rails and shaded saturation windows, LQR gain/pole or disturbance rejection KPI cards.
  • ui://mcp-control/flight-modes — Interactive s-plane eigenvalue map with constant-damping rays (ζ = 0.08, 0.35, 0.707), 5-mode KPI cards, and clickable MIL-F-8785C Level-1 handling criteria table.

All widgets declare Layer-3 portSync event ports (emits: ["part.selected", "artifact.selected", "requirement.selected"], accepts: ["part.focus", "artifact.focus", "requirement.focus"]), and tool responses keep content[0].text strictly compact (< 900 B) while exposing complete curves and pole arrays in structuredContent.

Quick Start

# Local Deno HTTP server on 127.0.0.1:3039
deno task build:ui
deno task serve

# Full quality gate (fmt, check, lint, tests, UI bundle freshness)
deno task ci:check

# Multi-arch Docker container (Deno 2 + Python 3 + NumPy/SciPy)
docker build -t ghcr.io/superworldsavior/mcp-control:0.1.0 .
docker run -d --name casys-mcp-control --restart unless-stopped \
  -p 127.0.0.1:3039:3039 ghcr.io/superworldsavior/mcp-control:0.1.0