x-m32-mcp-server 3.1.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +104 -243
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/tools/bus.d.ts.map +1 -1
- package/dist/tools/bus.js +10 -10
- package/dist/tools/bus.js.map +1 -1
- package/dist/tools/channel.d.ts.map +1 -1
- package/dist/tools/channel.js +21 -20
- package/dist/tools/channel.js.map +1 -1
- package/dist/tools/connection.d.ts.map +1 -1
- package/dist/tools/connection.js +161 -9
- package/dist/tools/connection.js.map +1 -1
- package/dist/tools/fx.d.ts.map +1 -1
- package/dist/tools/fx.js +9 -6
- package/dist/tools/fx.js.map +1 -1
- package/dist/tools/main.d.ts.map +1 -1
- package/dist/tools/main.js +14 -11
- package/dist/tools/main.js.map +1 -1
- package/dist/tools/parameter.d.ts.map +1 -1
- package/dist/tools/parameter.js +4 -2
- package/dist/tools/parameter.js.map +1 -1
- package/dist/utils/error-helper.d.ts +178 -0
- package/dist/utils/error-helper.d.ts.map +1 -0
- package/dist/utils/error-helper.js +208 -0
- package/dist/utils/error-helper.js.map +1 -0
- package/dist/utils/error-messages.d.ts +178 -0
- package/dist/utils/error-messages.d.ts.map +1 -0
- package/dist/utils/error-messages.example.d.ts +82 -0
- package/dist/utils/error-messages.example.d.ts.map +1 -0
- package/dist/utils/error-messages.example.js +241 -0
- package/dist/utils/error-messages.example.js.map +1 -0
- package/dist/utils/error-messages.js +338 -0
- package/dist/utils/error-messages.js.map +1 -0
- package/package.json +35 -31
package/README.md
CHANGED
|
@@ -1,281 +1,142 @@
|
|
|
1
|
-
#
|
|
1
|
+
# X32/M32 MCP Server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
MCP server for controlling Behringer X32/M32 digital mixing consoles via OSC protocol.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## When to Use This
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
- **Remote Mixing**: Control your X32/M32 from anywhere on the network
|
|
8
|
+
- **Automated Setup**: Quickly configure channels for rehearsals or shows
|
|
9
|
+
- **Batch Operations**: Apply settings to multiple channels at once
|
|
10
|
+
- **Documentation**: Query and document current mixer settings
|
|
11
|
+
- **Troubleshooting**: Check mixer state without physical access
|
|
12
|
+
- **Live Adjustments**: Make quick changes during performances via AI assistant
|
|
9
13
|
|
|
10
14
|
## Features
|
|
11
15
|
|
|
12
|
-
|
|
16
|
+
- 32 input channels with volume, gain, mute, solo, EQ, pan control
|
|
17
|
+
- 16 mix buses for aux sends and monitor mixes
|
|
18
|
+
- 8 FX racks with parameter control
|
|
19
|
+
- Main/monitor output control
|
|
20
|
+
- Direct OSC parameter access for advanced users
|
|
13
21
|
|
|
14
|
-
|
|
15
|
-
- **Gain Control**: Adjust preamp gain for input channels
|
|
16
|
-
- **Mute/Solo**: Control channel mute and solo states
|
|
17
|
-
- **Pan Control**: Set stereo positioning with multiple input formats (percentage, LR notation, linear)
|
|
18
|
-
- **EQ Control**: Configure 4-band parametric EQ per channel
|
|
19
|
-
|
|
20
|
-
### 🎨 Channel Configuration
|
|
21
|
-
|
|
22
|
-
- **Naming**: Set custom channel names (max 12 characters)
|
|
23
|
-
- **Colors**: Assign channel strip colors for visual organization (16 colors including inverted variants)
|
|
22
|
+
## Installation
|
|
24
23
|
|
|
25
|
-
###
|
|
24
|
+
### Recommended: Published package (quick start)
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
- **Status Monitoring**: Get connection status and mixer information
|
|
29
|
-
- **Auto-discovery**: Support for standard X32 port (10023)
|
|
26
|
+
Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
30
27
|
|
|
31
|
-
|
|
28
|
+
```json
|
|
29
|
+
{
|
|
30
|
+
"mcpServers": {
|
|
31
|
+
"x32": {
|
|
32
|
+
"command": "npx",
|
|
33
|
+
"args": ["x-m32-mcp-server"]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
```
|
|
32
38
|
|
|
33
|
-
|
|
34
|
-
- **Generic Get/Set**: Read and write any mixer parameter by OSC address
|
|
39
|
+
This runs the published npm package, so you do not need to clone this repo.
|
|
35
40
|
|
|
36
|
-
|
|
41
|
+
### From source: Local checkout
|
|
37
42
|
|
|
38
43
|
```bash
|
|
39
|
-
# Clone the repository
|
|
40
44
|
git clone https://github.com/GoBeromsu/X32-MCP.git
|
|
41
45
|
cd X32-MCP
|
|
42
|
-
|
|
43
|
-
# Install dependencies
|
|
44
46
|
npm install
|
|
45
|
-
|
|
46
|
-
# Build the project
|
|
47
47
|
npm run build
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
### 1. Start the MCP Server
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
npm start
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
The server will run on stdio transport, ready to accept connections from MCP clients.
|
|
59
|
-
|
|
60
|
-
### 2. Connect with an MCP Client
|
|
61
|
-
|
|
62
|
-
#### Using Claude Desktop
|
|
63
|
-
|
|
64
|
-
Add to your Claude Desktop configuration (`~/Library/Application Support/Claude/claude_desktop_config.json`):
|
|
50
|
+
Then point Claude Desktop at the local build output:
|
|
65
51
|
|
|
66
52
|
```json
|
|
67
53
|
{
|
|
68
54
|
"mcpServers": {
|
|
69
55
|
"x32": {
|
|
70
56
|
"command": "node",
|
|
71
|
-
"args": ["/path/to/X32-MCP/dist/index.js"]
|
|
57
|
+
"args": ["/absolute/path/to/X32-MCP/dist/index.js"]
|
|
72
58
|
}
|
|
73
59
|
}
|
|
74
60
|
}
|
|
75
61
|
```
|
|
76
62
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
connection_connect
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
|
98
|
-
|
|
|
99
|
-
| `
|
|
100
|
-
| `
|
|
101
|
-
| `
|
|
102
|
-
| `
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
|
107
|
-
|
|
|
108
|
-
|
|
|
109
|
-
| `
|
|
110
|
-
| `
|
|
111
|
-
| `
|
|
112
|
-
|
|
|
113
|
-
| `
|
|
114
|
-
| `
|
|
115
|
-
| `
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
await channel_set_volume({ channel: 1, value: -10, unit: 'db' });
|
|
150
|
-
|
|
151
|
-
// Using linear values (0.0 to 1.0)
|
|
152
|
-
await channel_set_volume({ channel: 1, value: 0.75, unit: 'linear' });
|
|
153
|
-
|
|
154
|
-
// Unity gain (0 dB)
|
|
155
|
-
await channel_set_volume({ channel: 1, value: 0, unit: 'db' });
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
### Pan Control Examples
|
|
159
|
-
|
|
160
|
-
```javascript
|
|
161
|
-
// Using percentage (-100 to +100)
|
|
162
|
-
await channel_set_pan({ channel: 1, pan: -50 }); // 50% left
|
|
163
|
-
|
|
164
|
-
// Using LR notation
|
|
165
|
-
await channel_set_pan({ channel: 1, pan: 'L50' }); // 50% left
|
|
166
|
-
await channel_set_pan({ channel: 1, pan: 'C' }); // Center
|
|
167
|
-
await channel_set_pan({ channel: 1, pan: 'R75' }); // 75% right
|
|
168
|
-
|
|
169
|
-
// Using linear values (0.0 to 1.0)
|
|
170
|
-
await channel_set_pan({ channel: 1, pan: 0.5 }); // Center
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
## Technical Details
|
|
174
|
-
|
|
175
|
-
### Architecture
|
|
176
|
-
|
|
177
|
-
```
|
|
178
|
-
MCP Client (Claude, etc.)
|
|
179
|
-
↓
|
|
180
|
-
MCP Protocol (stdio/HTTP)
|
|
181
|
-
↓
|
|
182
|
-
X32 MCP Server (this project)
|
|
183
|
-
↓
|
|
184
|
-
OSC Protocol (UDP)
|
|
185
|
-
↓
|
|
186
|
-
X32/M32 Mixer
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
### Project Structure
|
|
190
|
-
|
|
191
|
-
```
|
|
192
|
-
X32-MCP/
|
|
193
|
-
├── src/
|
|
194
|
-
│ ├── index.ts # Entry point
|
|
195
|
-
│ ├── server.ts # Server configuration
|
|
196
|
-
│ ├── mcp/ # MCP protocol implementation
|
|
197
|
-
│ ├── tools/ # Domain-based tool implementations
|
|
198
|
-
│ │ ├── channel.ts # Channel control tools
|
|
199
|
-
│ │ ├── connection.ts # Connection management tools
|
|
200
|
-
│ │ └── parameter.ts # Low-level parameter tools
|
|
201
|
-
│ ├── services/ # Business logic
|
|
202
|
-
│ │ └── x32-connection.ts # X32 OSC communication
|
|
203
|
-
│ ├── types/ # TypeScript type definitions
|
|
204
|
-
│ └── utils/ # Utility functions
|
|
205
|
-
│ ├── db-converter.ts # dB/linear conversion
|
|
206
|
-
│ ├── color-converter.ts # Color mapping
|
|
207
|
-
│ └── pan-converter.ts # Pan value conversion
|
|
208
|
-
└── docs/ # Documentation
|
|
209
|
-
└── OSC-Protocol.md # X32 OSC protocol reference
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
### OSC Protocol Implementation
|
|
213
|
-
|
|
214
|
-
The server implements the X32/M32 OSC protocol for:
|
|
215
|
-
|
|
216
|
-
- Channel parameters (`/ch/XX/...`)
|
|
217
|
-
- Bus routing (`/bus/XX/...`)
|
|
218
|
-
- Effects (`/fx/XX/...`)
|
|
219
|
-
- Main mix (`/main/...`)
|
|
220
|
-
- Configuration (`/config/...`)
|
|
221
|
-
|
|
222
|
-
See `docs/OSC-Protocol.md` for detailed protocol documentation.
|
|
223
|
-
|
|
224
|
-
## Development
|
|
225
|
-
|
|
226
|
-
### Running Tests
|
|
227
|
-
|
|
228
|
-
```bash
|
|
229
|
-
npm test
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
### Building
|
|
233
|
-
|
|
234
|
-
```bash
|
|
235
|
-
npm run build
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
### Linting
|
|
239
|
-
|
|
240
|
-
```bash
|
|
241
|
-
npm run lint
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
## Testing with X32 Emulator
|
|
245
|
-
|
|
246
|
-
For development without physical hardware, you can use the X32 emulator:
|
|
247
|
-
|
|
248
|
-
1. Download the X32 emulator from the Behringer website
|
|
249
|
-
2. Run the emulator (default port: 10023)
|
|
250
|
-
3. Connect using `connection_connect` with host: `10.69.6.254`
|
|
251
|
-
|
|
252
|
-
## Contributing
|
|
253
|
-
|
|
254
|
-
Contributions are welcome! Please:
|
|
255
|
-
|
|
256
|
-
1. Fork the repository
|
|
257
|
-
2. Create a feature branch
|
|
258
|
-
3. Follow the existing code style and patterns
|
|
259
|
-
4. Add tests for new features
|
|
260
|
-
5. Submit a pull request
|
|
261
|
-
|
|
262
|
-
### Code Style Guidelines
|
|
263
|
-
|
|
264
|
-
- Use semantic, task-based tool names (`channel_set_volume`, not `set_parameter`)
|
|
265
|
-
- Keep tools focused on single responsibilities
|
|
266
|
-
- Include comprehensive JSDoc comments
|
|
267
|
-
- Follow TypeScript strict mode requirements
|
|
63
|
+
After code changes, run `npm run build` again so Claude Desktop uses the updated `dist/` output.
|
|
64
|
+
|
|
65
|
+
### Connect to Mixer
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
connection_connect with host="192.168.1.100" and port=10023
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Available Tools (21 total)
|
|
72
|
+
|
|
73
|
+
| Tool | Parameters |
|
|
74
|
+
| ----------------------- | --------------------------------------- |
|
|
75
|
+
| **Connection (4)** | |
|
|
76
|
+
| `connection_connect` | `host`, `port` |
|
|
77
|
+
| `connection_disconnect` | - |
|
|
78
|
+
| `connection_get_info` | - |
|
|
79
|
+
| `connection_get_status` | - |
|
|
80
|
+
| **Channel (8)** | |
|
|
81
|
+
| `channel_set_volume` | `channel`, `value`, `unit` |
|
|
82
|
+
| `channel_set_gain` | `channel`, `gain` |
|
|
83
|
+
| `channel_mute` | `channel`, `muted` |
|
|
84
|
+
| `channel_solo` | `channel`, `solo` |
|
|
85
|
+
| `channel_set_name` | `channel`, `name` |
|
|
86
|
+
| `channel_set_color` | `channel`, `color` |
|
|
87
|
+
| `channel_set_pan` | `channel`, `pan` |
|
|
88
|
+
| `channel_set_eq_band` | `channel`, `band`, `parameter`, `value` |
|
|
89
|
+
| **Bus (4)** | |
|
|
90
|
+
| `bus_set_volume` | `bus`, `value`, `unit` |
|
|
91
|
+
| `bus_mute` | `bus`, `muted` |
|
|
92
|
+
| `bus_set_send` | `channel`, `bus`, `value`, `unit` |
|
|
93
|
+
| `bus_get_state` | `bus` |
|
|
94
|
+
| **FX (3)** | |
|
|
95
|
+
| `fx_set_parameter` | `fx`, `parameter`, `value` |
|
|
96
|
+
| `fx_get_state` | `fx` |
|
|
97
|
+
| `fx_bypass` | `fx`, `bypass` |
|
|
98
|
+
| **Main/Monitor (3)** | |
|
|
99
|
+
| `main_set_volume` | `value`, `unit` |
|
|
100
|
+
| `main_mute` | `muted` |
|
|
101
|
+
| `monitor_set_level` | `value`, `unit` |
|
|
102
|
+
| **Low-Level (2)** | |
|
|
103
|
+
| `get_parameter` | `address` |
|
|
104
|
+
| `set_parameter` | `address`, `value` |
|
|
105
|
+
|
|
106
|
+
## Quick Tips
|
|
107
|
+
|
|
108
|
+
- **Unity Gain**: 0 dB = 0.75 linear (neutral, no boost/cut)
|
|
109
|
+
- **Safe Start**: Begin with channel at -20 dB and muted
|
|
110
|
+
- **Channel Colors**: Use colors to organize (red=vocals, blue=drums, etc.)
|
|
111
|
+
- **Bus Usage**: 1-4 monitors, 5-6 FX sends, 7-8 recording, 9-16 IEM/matrix
|
|
112
|
+
- **Network**: X32 uses port 10023, connect to same network as computer
|
|
113
|
+
|
|
114
|
+
## Parameter Reference
|
|
115
|
+
|
|
116
|
+
### Common Parameters
|
|
117
|
+
|
|
118
|
+
- `channel`: 1-32
|
|
119
|
+
- `bus`: 1-16
|
|
120
|
+
- `fx`: 1-8
|
|
121
|
+
- `unit`: "linear" (0.0-1.0) or "db" (-90 to +10)
|
|
122
|
+
- `muted`/`solo`/`bypass`: true/false
|
|
123
|
+
- `pan`: -100 to +100, "L50"/"C"/"R50", or 0.0-1.0
|
|
124
|
+
- `color`: "red", "green", "blue", etc. or 0-15
|
|
125
|
+
- `band`: 1-4 (EQ bands)
|
|
126
|
+
- `parameter`: "f" (frequency), "g" (gain), "q" (Q factor)
|
|
127
|
+
|
|
128
|
+
### Value Ranges
|
|
129
|
+
|
|
130
|
+
- Volume linear: 0.0-1.0 (unity = 0.75)
|
|
131
|
+
- Volume dB: -90 to +10 (unity = 0 dB)
|
|
132
|
+
- Gain: 0.0-1.0
|
|
133
|
+
- FX parameter: 0.0-1.0
|
|
134
|
+
- Channel name: max 12 characters
|
|
268
135
|
|
|
269
136
|
## License
|
|
270
137
|
|
|
271
138
|
MIT
|
|
272
139
|
|
|
273
|
-
## Acknowledgments
|
|
274
|
-
|
|
275
|
-
- Based on the [Model Context Protocol TypeScript SDK](https://github.com/modelcontextprotocol/typescript-sdk)
|
|
276
|
-
- OSC protocol implementation for Behringer X32/M32 mixers
|
|
277
|
-
- Thanks to Patrick-Gilles Maillot for X32 OSC documentation
|
|
278
|
-
|
|
279
140
|
## Support
|
|
280
141
|
|
|
281
|
-
|
|
142
|
+
https://github.com/GoBeromsu/X32-MCP
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
2
3
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
3
4
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
4
5
|
import { X32Connection } from './services/x32-connection.js';
|
|
5
6
|
import { registerConnectionTools, registerChannelTools, registerBusTools, registerFxTools, registerMainTools, registerParameterTools } from './tools/index.js';
|
|
7
|
+
const require = createRequire(import.meta.url);
|
|
8
|
+
const { version } = require('../package.json');
|
|
6
9
|
/**
|
|
7
10
|
* X32 MCP Server
|
|
8
11
|
* Model Context Protocol server for X32/M32 mixer control
|
|
@@ -13,7 +16,7 @@ async function main() {
|
|
|
13
16
|
// Create MCP server using McpServer class
|
|
14
17
|
const server = new McpServer({
|
|
15
18
|
name: 'x-m32-mcp-server',
|
|
16
|
-
version
|
|
19
|
+
version
|
|
17
20
|
}, {
|
|
18
21
|
capabilities: {
|
|
19
22
|
tools: {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EACH,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,sBAAsB,EACzB,MAAM,kBAAkB,CAAC;AAE1B;;;GAGG;AACH,KAAK,UAAU,IAAI;IACf,iCAAiC;IACjC,M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AAC,CAAC;IAErE,2BAA2B;IAC3B,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;QAC5B,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACpC,IAAI,UAAU,CAAC,SAAS,EAAE,CAAC;YACvB,MAAM,UAAU,CAAC,UAAU,EAAE,CAAC;QAClC,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QAC7B,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACpC,IAAI,UAAU,CAAC,SAAS,EAAE,CAAC;YACvB,MAAM,UAAU,CAAC,UAAU,EAAE,CAAC;QAClC,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;AACP,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;IACjB,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IACrC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"}
|
package/dist/tools/bus.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bus.d.ts","sourceRoot":"","sources":["../../src/tools/bus.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"bus.d.ts","sourceRoot":"","sources":["../../src/tools/bus.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAuY9D;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,GAAG,IAAI,CAKnF"}
|
package/dist/tools/bus.js
CHANGED
|
@@ -12,14 +12,14 @@ function registerBusSetVolumeTool(server, connection) {
|
|
|
12
12
|
server.registerTool('bus_set_volume', {
|
|
13
13
|
title: 'Set Bus Fader Volume',
|
|
14
14
|
description: 'Set the fader level (volume) for a specific mix bus on the X32/M32 mixer. Supports both linear values (0.0-1.0) and decibel values (-90 to +10 dB). Unity gain is 0 dB or 0.75 linear.',
|
|
15
|
-
inputSchema: {
|
|
15
|
+
inputSchema: z.object({
|
|
16
16
|
bus: z.number().min(1).max(16).describe('Mix bus number from 1 to 16'),
|
|
17
17
|
value: z.number().describe('Volume value (interpretation depends on unit parameter)'),
|
|
18
18
|
unit: z
|
|
19
19
|
.enum(['linear', 'db'])
|
|
20
20
|
.default('linear')
|
|
21
21
|
.describe('Unit of the value: "linear" (0.0-1.0) or "db" (-90 to +10 dB). Default is "linear".')
|
|
22
|
-
},
|
|
22
|
+
}),
|
|
23
23
|
annotations: {
|
|
24
24
|
readOnlyHint: false,
|
|
25
25
|
destructiveHint: false,
|
|
@@ -32,7 +32,7 @@ function registerBusSetVolumeTool(server, connection) {
|
|
|
32
32
|
content: [
|
|
33
33
|
{
|
|
34
34
|
type: 'text',
|
|
35
|
-
text: 'Not connected to X32/M32 mixer.
|
|
35
|
+
text: 'Not connected to X32/M32 mixer. First, establish connection using connection_connect tool with parameters:\n - host: IP address of mixer (e.g., "192.168.1.100")\n - port: OSC port, typically 10023\n\nExample: connection_connect with host="192.168.1.100" and port=10023'
|
|
36
36
|
}
|
|
37
37
|
],
|
|
38
38
|
isError: true
|
|
@@ -48,7 +48,7 @@ function registerBusSetVolumeTool(server, connection) {
|
|
|
48
48
|
content: [
|
|
49
49
|
{
|
|
50
50
|
type: 'text',
|
|
51
|
-
text: `Invalid dB value: ${value}. Must be between -90 and +10 dB
|
|
51
|
+
text: `Invalid dB value: ${value} dB. Must be between -90 and +10 dB.\n\nValid range:\n - Minimum: -90 dB (silence)\n - Unity gain: 0 dB (no boost/cut)\n - Maximum: +10 dB (boost)\n\nExamples:\n - Set to -6 dB: value=-6, unit="db"\n - Set to unity: value=0, unit="db"\n - Set to +3 dB: value=3, unit="db"`
|
|
52
52
|
}
|
|
53
53
|
],
|
|
54
54
|
isError: true
|
|
@@ -64,7 +64,7 @@ function registerBusSetVolumeTool(server, connection) {
|
|
|
64
64
|
content: [
|
|
65
65
|
{
|
|
66
66
|
type: 'text',
|
|
67
|
-
text: `Invalid linear value: ${value}. Must be between 0.0 and 1.0.`
|
|
67
|
+
text: `Invalid linear value: ${value}. Must be between 0.0 and 1.0.\n\nLinear scale explanation:\n - 0.0 = -∞ dB (silence)\n - 0.75 = 0 dB (unity gain, no boost/cut)\n - 1.0 = +10 dB (maximum)\n\nExamples:\n - Set to silence: value=0.0\n - Set to unity gain: value=0.75\n - Set to half volume: value=0.5\n\nAlternatively, use unit="db" for decibel values (-90 to +10 dB).`
|
|
68
68
|
}
|
|
69
69
|
],
|
|
70
70
|
isError: true
|
|
@@ -120,7 +120,7 @@ function registerBusMuteTool(server, connection) {
|
|
|
120
120
|
content: [
|
|
121
121
|
{
|
|
122
122
|
type: 'text',
|
|
123
|
-
text: 'Not connected to X32/M32 mixer.
|
|
123
|
+
text: 'Not connected to X32/M32 mixer. First, establish connection using connection_connect tool with parameters:\n - host: IP address of mixer (e.g., "192.168.1.100")\n - port: OSC port, typically 10023\n\nExample: connection_connect with host="192.168.1.100" and port=10023'
|
|
124
124
|
}
|
|
125
125
|
],
|
|
126
126
|
isError: true
|
|
@@ -181,7 +181,7 @@ function registerBusSetSendTool(server, connection) {
|
|
|
181
181
|
content: [
|
|
182
182
|
{
|
|
183
183
|
type: 'text',
|
|
184
|
-
text: 'Not connected to X32/M32 mixer.
|
|
184
|
+
text: 'Not connected to X32/M32 mixer. First, establish connection using connection_connect tool with parameters:\n - host: IP address of mixer (e.g., "192.168.1.100")\n - port: OSC port, typically 10023\n\nExample: connection_connect with host="192.168.1.100" and port=10023'
|
|
185
185
|
}
|
|
186
186
|
],
|
|
187
187
|
isError: true
|
|
@@ -197,7 +197,7 @@ function registerBusSetSendTool(server, connection) {
|
|
|
197
197
|
content: [
|
|
198
198
|
{
|
|
199
199
|
type: 'text',
|
|
200
|
-
text: `Invalid dB value: ${value}. Must be between -90 and +10 dB
|
|
200
|
+
text: `Invalid dB value: ${value} dB. Must be between -90 and +10 dB.\n\nValid range:\n - Minimum: -90 dB (silence/off)\n - Unity gain: 0 dB (no boost/cut)\n - Maximum: +10 dB (boost)\n\nExamples:\n - Silence send: value=-90, unit="db"\n - Unity send: value=0, unit="db"\n - Boost send: value=3, unit="db"`
|
|
201
201
|
}
|
|
202
202
|
],
|
|
203
203
|
isError: true
|
|
@@ -213,7 +213,7 @@ function registerBusSetSendTool(server, connection) {
|
|
|
213
213
|
content: [
|
|
214
214
|
{
|
|
215
215
|
type: 'text',
|
|
216
|
-
text: `Invalid linear value: ${value}. Must be between 0.0 and 1.0.`
|
|
216
|
+
text: `Invalid linear value: ${value}. Must be between 0.0 and 1.0.\n\nLinear scale explanation:\n - 0.0 = -∞ dB (no send signal)\n - 0.75 = 0 dB (unity send level)\n - 1.0 = +10 dB (maximum send)\n\nExamples:\n - No send: value=0.0\n - Unity send: value=0.75\n - Half send: value=0.5\n\nAlternatively, use unit="db" for decibel values (-90 to +10 dB).`
|
|
217
217
|
}
|
|
218
218
|
],
|
|
219
219
|
isError: true
|
|
@@ -272,7 +272,7 @@ function registerBusGetStateTool(server, connection) {
|
|
|
272
272
|
content: [
|
|
273
273
|
{
|
|
274
274
|
type: 'text',
|
|
275
|
-
text: 'Not connected to X32/M32 mixer.
|
|
275
|
+
text: 'Not connected to X32/M32 mixer. First, establish connection using connection_connect tool with parameters:\n - host: IP address of mixer (e.g., "192.168.1.100")\n - port: OSC port, typically 10023\n\nExample: connection_connect with host="192.168.1.100" and port=10023'
|
|
276
276
|
}
|
|
277
277
|
],
|
|
278
278
|
isError: true
|
package/dist/tools/bus.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bus.js","sourceRoot":"","sources":["../../src/tools/bus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"bus.js","sourceRoot":"","sources":["../../src/tools/bus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAuB1E;;;GAGG;AAEH;;;GAGG;AACH,SAAS,wBAAwB,CAAC,MAAiB,EAAE,UAAyB;IACzE,MAAM,CAAC,YAA6B,CACjC,gBAAgB,EAChB;QACI,KAAK,EAAE,sBAAsB;QAC7B,WAAW,EACP,wLAAwL;QAC5L,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;YAClB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,6BAA6B,CAAC;YACtE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yDAAyD,CAAC;YACrF,IAAI,EAAE,CAAC;iBACF,IAAI,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;iBACtB,OAAO,CAAC,QAAQ,CAAC;iBACjB,QAAQ,CAAC,qFAAqF,CAAC;SACvG,CAAC;QACF,WAAW,EAAE;YACT,YAAY,EAAE,KAAK;YACnB,eAAe,EAAE,KAAK;YACtB,cAAc,EAAE,IAAI;YACpB,aAAa,EAAE,IAAI;SACtB;KACJ,EACD,KAAK,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,I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uBAAuB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../src/tools/channel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../src/tools/channel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAumB9D;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,GAAG,IAAI,CASvF"}
|