allstar-mcp

v0.1.2
allstar-mcp Checked 2 days ago Published 6 months ago

MCP server for AllStar Link — wraps ASL3-API REST endpoints as MCP tools for AI agent control of amateur radio nodes

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

health_check Health Check

Check the health of the ASL3-API connection and the Asterisk node. Returns a structured result with: - api_reachable: HTTP GET /ping succeeded - auth_ok: authenticated call to /capabilities succeeded - ami_connected: Asterisk AMI connection is alive (from /ping) - node: configured node number - callsign: node callsign - api_version: ASL3-API version string - error: null on success, description on failure Use this as the first tool call when diagnosing connectivity problems or before a session that will issue control commands.

get_node_status Get Node Status

Return node statistics: uptime, keyup count, total TX time, and DTMF stats. Use this to get a quick health overview of the node. Suitable to call frequently. Set raw=True to include unparsed rpt_stats output for debugging.

ParameterTypeDescription
rawboolean

get_connected_nodes Get Connected Nodes

Return the list of nodes currently linked to this node. With enrich=True (default), each entry includes callsign, location, and description from the 40k-node AllStar database. Use this to understand the current link topology before making any connection changes.

ParameterTypeDescription
enrichboolean

get_live_variables Get Live Variables

Return live app_rpt node variables sourced directly from Asterisk — no caching. Key fields to check before control actions: - rxkeyed: RF receiver is currently keyed (signal on input) - txkeyed: transmitter is currently active — do not disconnect during TX - num_links: number of connected links - autopatch_up: autopatch call in progress Returns null for fields that could not be read from AMI.

get_capabilities Get Capabilities

Return static capabilities of this node and API instance. Machine-readable metadata: configured node number, supported features, API version. Intended for agent auto-configuration. Safe to call frequently — reads config only, never queries AMI.

lookup_node Lookup Node

Look up a node's callsign, location, and description from the local AllStar node database. The database contains ~40,000 nodes and is refreshed every 15 minutes from allstarlink.org. Served from local cache — no external HTTP call. All fields always present; unknown fields are null.

ParameterTypeDescription
node_number *stringAllStar node number to look up (e.g. "637050")

get_audit_log Get Audit Log

Return recent command history from the audit log. Each entry has timestamp, command, and details fields. Use this to understand what actions have been taken recently before issuing new commands — avoids duplicating recent connects or re-sending DTMF that already ran.

ParameterTypeDescription
linesintegerNumber of recent log entries to return (default 50)

cop_identify Cop Identify

Play the node identification over the air. Equivalent to COP command 10. Triggers the node to transmit its callsign ID. Safe to use at any time; the node will queue the ID after any active transmission completes. Use this to verify the node is transmitting correctly or to manually trigger an ID.

cop_time Cop Time

Say the current time over the air. Equivalent to COP command 12. Causes the node to announce the current time via synthesized speech. Safe to use at any time. Useful for time-check announcements on a linked repeater system.

cop_status Cop Status

Say the system status over the air. Equivalent to COP command 13. Causes the node to announce its current status (link count, connected nodes) via synthesized speech. Safe to use at any time.

cop_version Cop Version

Say the app_rpt software version over the air. Equivalent to COP command 14. Causes the node to announce its app_rpt version via synthesized speech.

connect_node Connect Node

Connect this node to a remote AllStar node. Automatically checks for active QSOs before connecting — will block if the node is transmitting (txkeyed) or receiving (rxkeyed) unless override_active_qso=True. Use dry_run=True to preview what would be sent without executing. REQUIRES dry_run=False AND confirmed=True to actually connect.

ParameterTypeDescription
node_number *stringRemote node number to connect to (e.g. "2560")
confirmedbooleanMust be True (with dry_run=False) to execute
dry_runbooleanIf True, return a preview of what would be sent without executing
monitor_onlybooleanIf True, connect in receive-only (monitor) mode — no TX to remote
override_active_qsobooleanIf True, skip the active QSO check

disconnect_node Disconnect Node

Disconnect from a specific remote node. Automatically checks for active QSOs before disconnecting — will block if the node is transmitting (txkeyed) or receiving (rxkeyed) unless override_active_qso=True. Use dry_run=True to preview what would be sent without executing. REQUIRES dry_run=False AND confirmed=True to actually disconnect. BEFORE CONFIRMING: run get_connected_nodes to confirm the target node is actually linked.

ParameterTypeDescription
node_number *stringRemote node number to disconnect (e.g. "2560")
confirmedbooleanMust be True (with dry_run=False) to execute
dry_runbooleanIf True, return a preview of what would be sent without executing
override_active_qsobooleanIf True, skip the active QSO check

send_dtmf Send Dtmf

Send a DTMF tone sequence to the node. DTMF can trigger macros, link/unlink commands, or autopatch — effects depend on node configuration. Valid characters: 0-9, *, # Use dry_run=True to preview what would be sent without executing. REQUIRES dry_run=False AND confirmed=True to execute. BEFORE CONFIRMING: check get_audit_log to ensure this sequence was not recently sent.

ParameterTypeDescription
sequence *stringDTMF string to send (e.g. "1234" or "*3")
confirmedbooleanMust be True (with dry_run=False) to execute
dry_runbooleanIf True, return a preview of what would be sent without executing

execute_macro Execute Macro

Execute a macro defined in rpt.conf. Macros are user-defined command sequences configured in rpt.conf. Effects vary by macro — they can connect/disconnect nodes, send DTMF, or trigger audio. Use dry_run=True to preview what would be sent without executing. REQUIRES dry_run=False AND confirmed=True to execute. Macros must exist in rpt.conf before use. Use get_audit_log to check if this macro was recently run.

ParameterTypeDescription
macro_number *stringMacro number as defined in rpt.conf (e.g. "1")
confirmedbooleanMust be True (with dry_run=False) to execute
dry_runbooleanIf True, return a preview of what would be sent without executing

disconnect_all Disconnect All

Drop ALL active node connections simultaneously. DESTRUCTIVE: This disconnects every linked node at once with no recovery path other than manually reconnecting each one. This affects all users currently linked through this node. Use dry_run=True to preview what would happen (call get_connected_nodes first to see which nodes would be dropped). REQUIRES dry_run=False AND confirmed=True to execute. Do not call in response to a general "disconnect" request — use disconnect_node for a specific node. Only use this when the user has explicitly said "disconnect all."

ParameterTypeDescription
confirmedbooleanMust be True (with dry_run=False) to execute
dry_runbooleanIf True, return a preview of what would happen without executing