Function bodies 99 total
set_storage_speed_deck_a function · python · L500-L503 (4 LOC)src/madrix_mcp/server.py
def set_storage_speed_deck_a(value: int) -> str:
_check_write()
_validate_u8(value, "value")
return _json(_client().set_function("SetStorageSpeedDeckA", value))set_storage_speed_deck_b function · python · L508-L511 (4 LOC)src/madrix_mcp/server.py
def set_storage_speed_deck_b(value: int) -> str:
_check_write()
_validate_u8(value, "value")
return _json(_client().set_function("SetStorageSpeedDeckB", value))toggle_storage_speed_pause_deck_a function · python · L516-L518 (3 LOC)src/madrix_mcp/server.py
def toggle_storage_speed_pause_deck_a() -> str:
_check_write()
return _json(_set_no_value("SetStorageSpeedPauseToggleDeckA"))toggle_storage_speed_pause_deck_b function · python · L523-L525 (3 LOC)src/madrix_mcp/server.py
def toggle_storage_speed_pause_deck_b() -> str:
_check_write()
return _json(_set_no_value("SetStorageSpeedPauseToggleDeckB"))set_cuelist_select function · python · L530-L533 (4 LOC)src/madrix_mcp/server.py
def set_cuelist_select(index: int) -> str:
_check_write()
_validate_non_negative_int(index, "index")
return _json(_client().set_function("SetCuelistSelect", index))cuelist_go function · python · L556-L558 (3 LOC)src/madrix_mcp/server.py
def cuelist_go() -> str:
_check_write()
return _json(_set_no_value("SetCuelistGo"))cuelist_back function · python · L563-L565 (3 LOC)src/madrix_mcp/server.py
def cuelist_back() -> str:
_check_write()
return _json(_set_no_value("SetCuelistBack"))Citation: Repobility (2026). State of AI-Generated Code. https://repobility.com/research/
set_audio_input_mute function · python · L570-L572 (3 LOC)src/madrix_mcp/server.py
def set_audio_input_mute(enabled: bool) -> str:
_check_write()
return _json(_client().set_function("SetAudioInputMute", 1 if enabled else 0))toggle_audio_input_mute function · python · L577-L579 (3 LOC)src/madrix_mcp/server.py
def toggle_audio_input_mute() -> str:
_check_write()
return _json(_set_no_value("SetAudioInputMuteToggle"))set_audio_input_fader function · python · L584-L587 (4 LOC)src/madrix_mcp/server.py
def set_audio_input_fader(value: int) -> str:
_check_write()
_validate_u8(value, "value")
return _json(_client().set_function("SetAudioInputFader", value))set_audio_output_mute function · python · L592-L594 (3 LOC)src/madrix_mcp/server.py
def set_audio_output_mute(enabled: bool) -> str:
_check_write()
return _json(_client().set_function("SetAudioOutputMute", 1 if enabled else 0))toggle_audio_output_mute function · python · L599-L601 (3 LOC)src/madrix_mcp/server.py
def toggle_audio_output_mute() -> str:
_check_write()
return _json(_set_no_value("SetAudioOutputMuteToggle"))set_audio_output_fader function · python · L606-L609 (4 LOC)src/madrix_mcp/server.py
def set_audio_output_fader(value: int) -> str:
_check_write()
_validate_u8(value, "value")
return _json(_client().set_function("SetAudioOutputFader", value))set_auto_gain_input function · python · L614-L616 (3 LOC)src/madrix_mcp/server.py
def set_auto_gain_input(enabled: bool) -> str:
_check_write()
return _json(_client().set_function("SetAutoGainInput", 1 if enabled else 0))toggle_auto_gain_input function · python · L621-L623 (3 LOC)src/madrix_mcp/server.py
def toggle_auto_gain_input() -> str:
_check_write()
return _json(_set_no_value("SetAutoGainInputToggle"))Same scanner, your repo: https://repobility.com — Repobility
set_output_freeze function · python · L628-L630 (3 LOC)src/madrix_mcp/server.py
def set_output_freeze(enabled: bool) -> str:
_check_write()
return _json(_client().set_function("SetOutputFreeze", 1 if enabled else 0))toggle_output_freeze function · python · L635-L637 (3 LOC)src/madrix_mcp/server.py
def toggle_output_freeze() -> str:
_check_write()
return _json(_set_no_value("SetOutputFreezeToggle"))set_output_strobe function · python · L642-L644 (3 LOC)src/madrix_mcp/server.py
def set_output_strobe(enabled: bool) -> str:
_check_write()
return _json(_client().set_function("SetOutputStrobe", 1 if enabled else 0))toggle_output_strobe function · python · L649-L651 (3 LOC)src/madrix_mcp/server.py
def toggle_output_strobe() -> str:
_check_write()
return _json(_set_no_value("SetOutputStrobeToggle"))set_output_strobe_value function · python · L656-L659 (4 LOC)src/madrix_mcp/server.py
def set_output_strobe_value(value: int) -> str:
_check_write()
_validate_u8(value, "value")
return _json(_client().set_function("SetOutputStrobeValue", value))set_output_strobe_color function · python · L664-L676 (13 LOC)src/madrix_mcp/server.py
def set_output_strobe_color(red: int, green: int, blue: int, white: int = 0) -> str:
_check_write()
_validate_u8(red, "red")
_validate_u8(green, "green")
_validate_u8(blue, "blue")
_validate_u8(white, "white")
client = _client()
return _json({
"red": client.set_function("SetOutputStrobeColorRed", red),
"green": client.set_function("SetOutputStrobeColorGreen", green),
"blue": client.set_function("SetOutputStrobeColorBlue", blue),
"white": client.set_function("SetOutputStrobeColorWhite", white),
})set_output_filter function · python · L681-L684 (4 LOC)src/madrix_mcp/server.py
def set_output_filter(level: int) -> str:
_check_write()
_validate_u8(level, "level")
return _json(_client().set_function("SetOutputFilter", level))set_output_filter_color function · python · L689-L701 (13 LOC)src/madrix_mcp/server.py
def set_output_filter_color(red: int, green: int, blue: int, white: int = 0) -> str:
_check_write()
_validate_u8(red, "red")
_validate_u8(green, "green")
_validate_u8(blue, "blue")
_validate_u8(white, "white")
client = _client()
return _json({
"red": client.set_function("SetOutputFilterRed", red),
"green": client.set_function("SetOutputFilterGreen", green),
"blue": client.set_function("SetOutputFilterBlue", blue),
"white": client.set_function("SetOutputFilterWhite", white),
})About: code-quality intelligence by Repobility · https://repobility.com
set_text_ticker function · python · L706-L709 (4 LOC)src/madrix_mcp/server.py
def set_text_ticker(text: str) -> str:
_check_write()
_validate_string_non_empty(text, "text")
return _json(_client().set_function("SetTextTicker", text))set_bpm function · python · L714-L717 (4 LOC)src/madrix_mcp/server.py
def set_bpm(value: int) -> str:
_check_write()
_validate_non_negative_int(value, "value")
return _json(_client().set_function("SetBpm", value))get_preview_info function · python · L722-L729 (8 LOC)src/madrix_mcp/server.py
def get_preview_info() -> str:
config = load_config()
return _json({
"deck_a_bitmap_url": f"{config.base_url}?GetPreviewDeckA.bmp",
"deck_b_bitmap_url": f"{config.base_url}?GetPreviewDeckB.bmp",
"output_bitmap_url": f"{config.base_url}?GetPreviewOutput.bmp",
"note": "Preview bitmap URLs are exposed directly because they are binary assets, not scalar text values.",
})get_timeline_summary function · python · L734-L753 (20 LOC)src/madrix_mcp/server.py
def get_timeline_summary() -> str:
client = _client()
result = client.get_functions(
[
("GetTimelinesSelected", None),
("GetTimelinesActive", None),
("GetTimelinesCount", None),
("GetTimelinesPlaybackState", None),
("GetTimelinesDuration", None),
]
)
lines = result["lines"]
return _json({
"selected": lines[0] if len(lines) > 0 else None,
"active": lines[1] if len(lines) > 1 else None,
"count": lines[2] if len(lines) > 2 else None,
"playback_state": lines[3] if len(lines) > 3 else None,
"duration": lines[4] if len(lines) > 4 else None,
"raw": result,
})get_group_summary function · python · L758-L787 (30 LOC)src/madrix_mcp/server.py
def get_group_summary(group_id: int) -> str:
_validate_non_negative_int(group_id, "group_id")
client = _client()
result = client.get_functions(
[
("GetGroupFadeTime", None),
("GetGroupCount", None),
("GetGroupDisplayName", str(group_id)),
("GetGroupDisplayColor", str(group_id)),
("GetGroupDefaultValue", str(group_id)),
("GetGroupFlashMode", str(group_id)),
("GetGroupValue", str(group_id)),
("GetGroupPresetDescription", str(group_id)),
("GetGroupPresetFullState", str(group_id)),
]
)
lines = result["lines"]
return _json({
"group_id": group_id,
"fade_time": lines[0] if len(lines) > 0 else None,
"count": lines[1] if len(lines) > 1 else None,
"display_name": lines[2] if len(lines) > 2 else None,
"display_color": lines[3] if len(lines) > 3 else None,
"default_value": lines[4] if len(lines) > 4 else get_global_color function · python · L792-L819 (28 LOC)src/madrix_mcp/server.py
def get_global_color(color_id: int) -> str:
_validate_non_negative_int(color_id, "color_id")
client = _client()
result = client.get_functions(
[
("GetGlobalColorAvailable", str(color_id)),
("GetGlobalColorDescription", str(color_id)),
("GetGlobalColorRed", str(color_id)),
("GetGlobalColorGreen", str(color_id)),
("GetGlobalColorBlue", str(color_id)),
("GetGlobalColorWhite", str(color_id)),
("GetGlobalColorAlpha", str(color_id)),
("GetGlobalColorRGB", str(color_id)),
]
)
lines = result["lines"]
return _json({
"color_id": color_id,
"available": lines[0] if len(lines) > 0 else None,
"description": lines[1] if len(lines) > 1 else None,
"red": lines[2] if len(lines) > 2 else None,
"green": lines[3] if len(lines) > 3 else None,
"blue": lines[4] if len(lines) > 4 else None,
"white": lines[5] if len(lines)get_storage_place_details function · python · L824-L847 (24 LOC)src/madrix_mcp/server.py
def get_storage_place_details(storage: int, place: int) -> str:
_validate_non_negative_int(storage, "storage")
_validate_non_negative_int(place, "place")
ref = f"S{storage}P{place}"
client = _client()
result = client.get_functions(
[
("GetStoragePlaceDescription", ref),
("GetStoragePlaceFullState", ref),
("GetStoragePlaceThumbTimeStamp", ref),
]
)
lines = result["lines"]
config = load_config()
return _json({
"storage": storage,
"place": place,
"reference": ref,
"description": lines[0] if len(lines) > 0 else None,
"full_state": lines[1] if len(lines) > 1 else None,
"thumb_timestamp": lines[2] if len(lines) > 2 else None,
"thumb_url": f"{config.base_url}?GetStoragePlaceThumb.png={ref}",
"raw": result,
})_create_deck_level_value_tool function · python · L850-L859 (10 LOC)src/madrix_mcp/server.py
def _create_deck_level_value_tool(*, tool_name: str, function_template: str, field_name: str, minimum: int, maximum: int):
@_handle_errors
def tool(deck: str, value: int) -> str:
_validate_int_range(value, field_name, minimum=minimum, maximum=maximum)
function_name = function_template.format(deck=_deck_suffix(deck))
return _json(_client().set_function(function_name, value))
tool.__name__ = tool_name
tool.__doc__ = f"Set {field_name} on deck A or B."
globals()[tool_name] = mcp.tool()(tool)Provenance: Repobility (https://repobility.com) — every score reproducible from /scan/
_create_deck_level_float_tool function · python · L862-L872 (11 LOC)src/madrix_mcp/server.py
def _create_deck_level_float_tool(*, tool_name: str, function_template: str, field_name: str, minimum: float):
@_handle_errors
def tool(deck: str, value: float) -> str:
if value < minimum:
raise ValueError(f"{field_name} must be >= {minimum}, got {value}")
function_name = function_template.format(deck=_deck_suffix(deck))
return _json(_client().set_function(function_name, value))
tool.__name__ = tool_name
tool.__doc__ = f"Set {field_name} on deck A or B."
globals()[tool_name] = mcp.tool()(tool)_create_layer_property_tool function · python · L875-L885 (11 LOC)src/madrix_mcp/server.py
def _create_layer_property_tool(*, tool_name: str, function_template: str, field_name: str, minimum: int, maximum: int):
@_handle_errors
def tool(deck: str, layer: int, value: int) -> str:
_validate_layer_index(layer)
_validate_int_range(value, field_name, minimum=minimum, maximum=maximum)
function_name = function_template.format(deck=_deck_suffix(deck))
return _json(_client().set_function(function_name, _underscore_pair(layer, value)))
tool.__name__ = tool_name
tool.__doc__ = f"Set {field_name} for a specific layer on deck A or B."
globals()[tool_name] = mcp.tool()(tool)_create_current_layer_property_tool function · python · L888-L897 (10 LOC)src/madrix_mcp/server.py
def _create_current_layer_property_tool(*, tool_name: str, function_template: str, field_name: str, minimum: int, maximum: int):
@_handle_errors
def tool(deck: str, value: int) -> str:
_validate_int_range(value, field_name, minimum=minimum, maximum=maximum)
function_name = function_template.format(deck=_deck_suffix(deck))
return _json(_client().set_function(function_name, value))
tool.__name__ = tool_name
tool.__doc__ = f"Set {field_name} for the current layer on deck A or B."
globals()[tool_name] = mcp.tool()(tool)_create_exact_layer_property_tool function · python · L900-L910 (11 LOC)src/madrix_mcp/server.py
def _create_exact_layer_property_tool(*, tool_name: str, function_template: str, field_name: str, minimum: int, maximum: int):
@_handle_errors
def tool(deck: str, layer: int, value: int) -> str:
_validate_layer_index(layer)
_validate_int_range(value, field_name, minimum=minimum, maximum=maximum)
function_name = function_template.format(deck=_deck_suffix(deck), layer=f"{layer:02d}")
return _json(_client().set_function(function_name, value))
tool.__name__ = tool_name
tool.__doc__ = f"Set {field_name} for a specific layer on deck A or B."
globals()[tool_name] = mcp.tool()(tool)_create_layer_toggle_tool function · python · L913-L922 (10 LOC)src/madrix_mcp/server.py
def _create_layer_toggle_tool(*, tool_name: str, function_template: str, field_name: str):
@_handle_errors
def tool(deck: str, layer: int, enabled: bool) -> str:
_validate_layer_index(layer)
function_name = function_template.format(deck=_deck_suffix(deck), layer=f"{layer:02d}")
return _json(_client().set_function(function_name, 1 if enabled else 0))
tool.__name__ = tool_name
tool.__doc__ = f"Set {field_name} for a specific layer on deck A or B."
globals()[tool_name] = mcp.tool()(tool)_create_current_layer_toggle_tool function · python · L925-L933 (9 LOC)src/madrix_mcp/server.py
def _create_current_layer_toggle_tool(*, tool_name: str, function_template: str, field_name: str):
@_handle_errors
def tool(deck: str, enabled: bool) -> str:
function_name = function_template.format(deck=_deck_suffix(deck))
return _json(_client().set_function(function_name, 1 if enabled else 0))
tool.__name__ = tool_name
tool.__doc__ = f"Set {field_name} for the current layer on deck A or B."
globals()[tool_name] = mcp.tool()(tool)set_timelines_playback_state function · python · L944-L946 (3 LOC)src/madrix_mcp/server.py
def set_timelines_playback_state(state: int) -> str:
_validate_int_range(state, "state", minimum=0, maximum=2)
return _json(_client().set_function("SetTimelinesPlaybackState", state))set_cuelist_timecode_source function · python · L981-L984 (4 LOC)src/madrix_mcp/server.py
def set_cuelist_timecode_source(source: int) -> str:
_validate_int_range(source, "source", minimum=0, maximum=4)
_check_write()
return _json(_client().set_function("SetCuelistTimeCodeSource", source))Citation: Repobility (2026). State of AI-Generated Code. https://repobility.com/research/
set_cuelist_playback_mode function · python · L989-L992 (4 LOC)src/madrix_mcp/server.py
def set_cuelist_playback_mode(mode: int) -> str:
_validate_int_range(mode, "mode", minimum=0, maximum=1)
_check_write()
return _json(_client().set_function("SetCuelistPlaybackMode", mode))set_cuelist_fade_type function · python · L1015-L1018 (4 LOC)src/madrix_mcp/server.py
def set_cuelist_fade_type(cue_index: int, fade_type: str) -> str:
if fade_type not in _FADE_TYPES and fade_type not in {str(i) for i in range(15)}:
raise ValueError(f"fade_type must be one of {sorted(_FADE_TYPES)} or the string numbers 0-14, got {fade_type!r}")
return _json(_set_pair_string("SetCuelistFadeType", "cue_index", cue_index, "fade_type", fade_type))set_cuelist_fade_time function · python · L1023-L1028 (6 LOC)src/madrix_mcp/server.py
def set_cuelist_fade_time(cue_index: int, seconds: float) -> str:
if seconds < 0:
raise ValueError(f"seconds must be >= 0, got {seconds}")
_validate_non_negative_int(cue_index, "cue_index")
_check_write()
return _json(_client().set_function("SetCuelistFadeTime", _underscore_pair(cue_index, seconds)))set_global_color_channel function · python · L1057-L1071 (15 LOC)src/madrix_mcp/server.py
def set_global_color_channel(color_id: int, channel: str, value: int) -> str:
_validate_non_negative_int(color_id, "color_id")
_validate_u8(value, "value")
normalized = channel.strip().lower()
mapping = {
"red": "SetGlobalColorRed",
"green": "SetGlobalColorGreen",
"blue": "SetGlobalColorBlue",
"white": "SetGlobalColorWhite",
"alpha": "SetGlobalColorAlpha",
}
if normalized not in mapping:
raise ValueError(f"channel must be one of {sorted(mapping)}, got {channel!r}")
_check_write()
return _json(_client().set_function(mapping[normalized], _underscore_pair(color_id, value)))set_global_color function · python · L1076-L1080 (5 LOC)src/madrix_mcp/server.py
def set_global_color(color_id: int, component_spec: str) -> str:
_validate_non_negative_int(color_id, "color_id")
_validate_string_non_empty(component_spec, "component_spec")
_check_write()
return _json(_client().set_function("SetGlobalColor", _underscore_pair(color_id, component_spec)))set_group_value function · python · L1103-L1113 (11 LOC)src/madrix_mcp/server.py
def set_group_value(group_id: int, value: int) -> str:
return _json(
_set_pair_int(
"SetGroupValue",
"group_id",
group_id,
"value",
value,
second_validator=lambda v: _validate_u8(v, "value"),
)
)set_group_flash_mode function · python · L1118-L1121 (4 LOC)src/madrix_mcp/server.py
def set_group_flash_mode(group_id: int, enabled: bool) -> str:
_validate_non_negative_int(group_id, "group_id")
_check_write()
return _json(_client().set_function("SetGroupFlashMode", _underscore_pair(group_id, 1 if enabled else 0)))select_layer function · python · L1132-L1135 (4 LOC)src/madrix_mcp/server.py
def select_layer(deck: str, layer: int) -> str:
_validate_layer_index(layer)
function_name = f"SetLayer{_deck_suffix(deck)}"
return _json(_client().set_function(function_name, layer))Same scanner, your repo: https://repobility.com — Repobility
set_text_ticker_layer function · python · L1140-L1144 (5 LOC)src/madrix_mcp/server.py
def set_text_ticker_layer(deck: str, layer: int, text: str) -> str:
_validate_layer_index(layer)
_validate_string_non_empty(text, "text")
function_name = f"SetTextTickerLayer{_deck_suffix(deck)}"
return _json(_client().set_function(function_name, _underscore_pair(layer, text)))main function · python · L1259-L1270 (12 LOC)src/madrix_mcp/server.py
def main() -> None:
transport = os.getenv("MADRIX_TRANSPORT", "stdio").lower()
if transport == "stdio":
mcp.run()
return
if transport == "sse":
mcp.run(transport="sse")
return
if transport == "streamable-http":
mcp.run(transport="streamable-http")
return
raise ValueError("MADRIX_TRANSPORT must be one of: stdio, sse, streamable-http")‹ prevpage 2 / 2