mcp-robotstudio

v0.2.0
mcp-robotstudio Checked 2 days ago Published 19 days ago

ABB Robot Web Services client (RWS 1.0 IRC5/RW6 Digest, RWS 2.0 OmniCore/RW7-8 Basic over TLS) and stdio MCP server for ABB RobotStudio

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

get_controller_state Get Controller State

Reads controller system info, motor state, operating mode, RAPID execution state and tasks (dialect: auto).

list_modules List RAPID Modules

Lists loaded RAPID modules for a task (RWS 1.0: /rw/rapid/modules?task=..., RWS 2.0: /rw/rapid/tasks/<t>/modules).

ParameterTypeDescription
taskstringRAPID task name (default: client task, e.g. T_ROB1)

read_rapid_symbol Read RAPID Symbol

Reads a RAPID variable/constant/persistent symbol value.

ParameterTypeDescription
module *stringRAPID module name (e.g. BASE)
symbol *stringRAPID symbol name (e.g. tool0)
taskstringRAPID task name (default: T_ROB1)

list_signals List I/O Signals

Lists controller I/O signals via /rw/iosystem/signals with optional substring filter and item limit.

ParameterTypeDescription
filterstringCase-insensitive substring filter on signal name
limitintegerMaximum signals to return (default: 100)

read_signal Read I/O Signal

Reads a single I/O signal state and value from /rw/iosystem/signals/<name>.

ParameterTypeDescription
name *stringI/O signal name (e.g. DRV1TESTE2)

get_event_log Get Controller Event Log

Reads recent controller event log entries from /rw/elog/<domain>.

ParameterTypeDescription
domainintegerEvent log domain (default: 0 = Common)
limitintegerNumber of entries (default: 10)

get_joints Get Robot Joints

Reads current joint angles (rax_1..rax_6 and external axes) from RWS motionsystem.

ParameterTypeDescription
mechunitstringMechanical unit name (default: ROB_1)

get_tcp Get Robot TCP

Reads current Cartesian TCP robtarget (x, y, z, quaternion, configuration) from RWS motionsystem.

ParameterTypeDescription
mechunitstringMechanical unit name (default: ROB_1)
toolstringTool name (default: tool0)
wobjstringWork object name (default: wobj0)

get_program_pointer Get Program Pointer

Reads /rw/rapid/tasks/<task>/pcp: module, routine and line/column of the program pointer (PP) and motion pointer (MP). With PP not set RW6 returns error -1073442809.

ParameterTypeDescription
taskstring

get_speed_ratio Get Speed Ratio

Reads /rw/panel/speedratio (0..100 %) and the cycle-time penalty factor 100/ratio.

get_user_privileges Get UAS Privileges

Reads the logged-in RWS user (/users), remote mastership privilege (/users/rmmp) and UAS grants (/users/grants). Missing endpoints are reported, never guessed.

read_module_source Read Live Module Source

Extracts the module text from controller RAM: action=save to TEMP (never HOME), downloads it via fileservice and deletes the temporary file.

ParameterTypeDescription
module *string
taskstring

diff_module_with_golden Diff Live Module vs Golden Master

Line-by-line diff (LCS) between the live module in controller RAM and a Golden Master .mod (path or content).

ParameterTypeDescription
module *string
goldenContentstring
goldenPathstringLocal path to the Golden Master .mod
ignoreWhitespaceboolean
taskstring

validate_rapid_offline Validate RAPID Offline

Offline RAPID checks: identifiers, unclosed MODULE/PROC/TRAP/IF/FOR/WHILE, non-unit quaternions, StorePath without StopMove, CONNECT without IDelete and (optional) IRB 120 reach of robtargets and Offs.

ParameterTypeDescription
checkReachboolean
contentstring
pathstring
toolstringtooldata or pose literal, e.g. [TRUE,[[31.8,0,229.6],[0.9455,0,0.3256,0]],...]

capture_forensic_blackbox Capture Forensic Black Box

Atomic snapshot at a stop: PCP + code around the PP line + I/O + last elog events + TCP + joints + speed ratio, cross-checked against known incidents. Returns JSON and Markdown.

ParameterTypeDescription
contextLinesinteger
signalFilterstring
taskstring

probe_reach_kinematics Probe Reach (offline IK)

Evaluates reachability of a target and its Offs without moving the robot (offline IK of the IRB 120, same purpose as CalcJointT). Optionally sweeps tool tilt around X/Y to find a reachable orientation.

ParameterTypeDescription
x *number
y *number
z *number
eulerarrayEuler ZYX [z,y,x] in deg (OrientZYX order)
offsetsarrayOffs to test, e.g. [[0,0,30],[0,0,-15]]
qarrayQuaternion [q1,q2,q3,q4] (RAPID order w,x,y,z)
tiltSweepDegarrayTilt angles to try around X and Y, e.g. [0,10,20,30]
toolstring

audit_rspag_package Audit .rspag Package

Audits a Pack&Go: system.guid/template.guid per controller (anti 0x800706BA), backup taken from a folder copy, personal data (C:\Users\<name>, e-mail, blocklist), PNG metadata chunks and CRC.

ParameterTypeDescription
path *string
blocklistarray