Behringer WING 系列数字调音台 MCP Server — 通过标准 MCP 协议安全控制 WING。
Status: pre-alpha — Fake driver fully functional. OSC experimental (hardware gate). Native stub. Not for production/live use. AI 调音师 → mixingagent
| 模块 | 状态 | 说明 |
|---|---|---|
| Fake driver | ✅ | 48ch+16bus+8DCA+6mute group+8FX+8Matrix, 10 fault profiles, FakeSignalGraph dynamic propagation |
| OSC driver | UDP 2222/2223 framework, WING_HARDWARE_TEST=1 gate, needs hardware truth test | |
| Native/libwing | ❌ stub | propmap integrated; all ops throw DRIVER_NOT_IMPLEMENTED until sidecar built |
| Service layer | ✅ | WingConsoleService + DriverOrchestrator, ProtocolTrace, McpError, TOOL_ANNOTATIONS |
| MCP tools | ✅ 91 tools | 全功能覆盖; 16 个工具文件全部通过 service 层读写 |
| Safety engine | ✅ | RiskEngine (path-based elevation), PolicyEngine (4 modes), ConfirmationManager (batch tickets, driftPolicy, SHA-256), ChangePlanner (read-before-write/readback/audit + cumulative delta) |
| Emergency | ✅ | executeTicket-bound operations, driftPolicy (warn/deny), snapshot restore |
| Diagnosis | ✅ | prepared_fix_id binding, APPROVED_FIXES enforcement |
| Tests | ✅ 149 tests | 15 files: 5 unit + 10 integration |
| Raw tools | 🚫 | Disabled with RAW_DISABLED code |
pnpm install && pnpm build
WING_DRIVER=fake WING_MODE=rehearsal_safe node packages/wing-console-mcp/dist/server.jsClaude Code 配置 (.claude/mcp.json):
{
"mcpServers": {
"wing-console": {
"command": "node",
"args": ["packages/wing-console-mcp/dist/server.js"],
"env": { "WING_MODE": "rehearsal_safe", "WING_DRIVER": "fake" }
}
}
}MCP Tool Handler
→ WingConsoleService
→ DriverOrchestrator (native → osc → fake, ProtocolTrace)
→ Safety Pipeline (RiskEngine → PolicyEngine → ConfirmationManager → readback → Audit)
→ ChangePlanner / BatchChangePlanner
→ structuredContent { ok, data, errors, protocol_trace, human_summary }
wing-mcp/
├── packages/
│ ├── wing-console-mcp/ # MCP 服务器 — 91 tools, service layer, safety engine, 3 drivers
│ │ ├── src/
│ │ │ ├── tools/ # 16 tool modules (channels, sends, routing, headamp, EQ, gate, comp, FX, DCA, mute group, main, matrix, scenes, meters, views, diagnosis, emergency, bulk, raw)
│ │ │ ├── services/ # WingConsoleService (active), MixerFacade (@deprecated)
│ │ │ ├── protocol/ # DriverOrchestrator, ProtocolTrace, CapabilityMatrix
│ │ │ ├── safety/ # RiskEngine, PolicyEngine, ConfirmationManager, AuditLogger, ChangePlanner, BatchChangePlanner, RateLimiter, InputValidator
│ │ │ ├── drivers/ # FakeWingDriver, OscDriver, NativeDriver, FakeSignalGraph
│ │ │ ├── schema/ # WingPropmap (60,748 entries), CanonicalMapper
│ │ │ ├── errors/ # McpError, makeErrorResult
│ │ │ └── state/ # StateCache, AliasResolver
│ │ └── tests/ # 15 test files, 149 tests
│ └── fake-wing/ # Fake WING + signal graph + fault injection
├── rust/wing-native-sidecar/ # Rust JSON-RPC sidecar (stub)
└── docs/ # Architecture, setup, tool reference, roadmap
Read → RiskEngine.classify(tool, target) → PolicyEngine.decide → ConfirmationManager.createTicket
→ exact confirmation text match → Apply → Readback → Audit (SHA-256 JSONL)
- RiskEngine: tool-based RISK_MAP + target-based path elevation (phantom→critical, fader→medium, bus mute→high)
- BatchChangePlanner: prepareBatch → executeTicket with driftPolicy (warn/deny/ignore), consumeOnPartialFailure
- ChangePlanner: applyWrite guard rejects non-_apply tools
- McpError: all errors use classified ErrorCode (not generic PROTOCOL_ERROR)
- structuredContent: all MCP responses (success and failure) have structuredContent
| Mode | Writes | Max Risk | Use Case |
|---|---|---|---|
read_only |
No | none | Live performance |
rehearsal_safe |
Yes | medium | Soundcheck/rehearsal |
maintenance |
Yes | critical | Empty-room maintenance |
developer_raw |
Yes | critical + raw | Dev/testing |
WING_DRIVER=fake|osc|native # Driver selection
WING_HOST=192.168.1.62 # WING IP (osc/native)
WING_MODE=rehearsal_safe # read_only|rehearsal_safe|maintenance|developer_raw
WING_LIVE_MODE=0 # Set 1 during live performance
WING_AUDIT_DIR=./data/audit # Audit log directory (daily JSONL)
WING_ENABLE_RAW=0 # Enable raw tools
WING_RAW_UNLOCK= # Raw tools unlock phrase
WING_ALLOW_UNVERIFIED_OSC_PATHS=0 # Allow unverified X32-style OSC paths
WING_ALLOW_FAKE_FALLBACK=0 # Allow fallback to fake driver (dev only)
WING_HARDWARE_TEST=0 # Hardware test gate (required for OSC writes)pnpm test # 149 tests (15 files): unit + integration + safety pipelineMIT