robotraconteur-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@robotraconteur-mcp find the left_arm robot and move its joints to the home position"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
robotraconteur-mcp
An MCP server that lets an AI application find Robot Raconteur devices on the network and use them. It is an experiment to show what AI and Robot Raconteur can do together.
This version has no safety layer. A model can set properties, call functions, and move any robot the server can reach. Anyone running it is responsible for what it is connected to.
Using it with an AI application
The server is a single file, robotraconteur-mcp.mjs, that runs with Node.js 22 or newer and needs nothing else installed. The AI application starts it and talks to it over standard input and output.
In Claude Desktop, add it to claude_desktop_config.json and restart Claude Desktop:
{
"mcpServers": {
"robotraconteur": {
"command": "node",
"args": ["C:\\path\\to\\robotraconteur-mcp.mjs"]
}
}
}In Claude Code:
claude mcp add robotraconteur -- node /path/to/robotraconteur-mcp.mjsOther applications that support MCP servers over standard input and output are set up the same way: the command is node, followed by the path to the file. Restart the application, then ask it what Robot Raconteur devices it can find.
The computer must be on the same network as the devices. Discovery listens on UDP port 48653, so allow Node.js through the firewall when asked. It uses IPv6 link-local multicast, as Robot Raconteur Core does. Add "ipv4Discovery": true to a configuration file, described below, if the devices only announce over IPv4. Services that require TLS (rrs+tcp) are checked against the Robot Raconteur root certificates built into Core.
Related MCP server: ROS2 MCP Server
Tools
Tool | Purpose |
| List services found so far. It answers immediately, and reports when a background search is still running |
| Show a service's members and documentation, or the types one member uses |
| Read and write properties |
| Call a function. A generator function is started and returns a generator id |
| Step a generator: |
| Get or set the latest value of a wire |
| Return events the service has sent, oldest first, optionally only those of one name, with the server's current time |
| List, read, write in place, and delete values kept in the server, so large data can go between services without passing through the model |
| Start a timed sequence of steps and return its ID immediately |
| Detailed help by category or topic: the rules and examples for sequences, and the documentation of the standard service definitions |
| Follow a sequence and get its results, or stop it |
If the client cancels a tool call, such as when the user presses Esc, a generator waiting in robotraconteur_generator next is aborted, which stops a trajectory. A plain function call stops being waited for, but the service finishes it, since a Robot Raconteur call cannot be stopped once sent.
There is no tool to move a robot to joint positions. A robot is moved with a trajectory from a planning service, run by the robot's execute_trajectory generator in its trajectory command mode.
Tool calls sent together may run at the same time, in any order. To run calls one after another, send them one at a time, or use a sequence.
Services are named by robotraconteur_discover as node.service, and a name stays the same while the server runs. The service name alone also works when only one service has it. If two nodes share a node name, the later one gets part of its node ID added to the name. Sub objects are selected with paths such as arm.tool[0]. Enums can be given by name, and fields left out of a structure are filled with zero or empty values. Discovery runs continuously in the background, and a search can take up to 15 seconds to find a service. robotraconteur_discover never waits for one. While searching it returns searching: true and check_again_after_s.
Generators
Generator functions are for long operations, such as a trajectory, and for data sent in parts. A direct robotraconteur_call_function of one starts it and returns a generator id, with the types it takes and returns. robotraconteur_generator then steps it: next waits as long as the service takes, and returns that one result, summarized and kept in the scratchpad if it is too large, or kept under store_result. A generator that takes a value at each step is given it in value. The service decides when each next returns, such as a trajectory that reports its status every few seconds. done: true means it has ended, and next on an ended generator says so again, so a polling loop ends cleanly. close ends it normally and abort stops it at once. Cancelling a next, such as with Esc, aborts the generator, and open generators are aborted when the server shuts down. At most 16 can be open at once.
In a sequence, a call_function step of a generator function still runs it to its end. generator_next, generator_close, and generator_abort steps act on a generator the model started. A direct next holds the model until the service answers, which for a trajectory can be the whole motion, so the model runs next as a generator_next step instead, and follows it with robotraconteur_sequence_status or its store_result key while doing other work: one single-step sequence per next, or one step with repeat, which stops repeating once the generator is done, and whose runs never overlap, since without at_s a run that comes up while the previous next waits starts as soon as it ends. A cancel, a stop, or reaching max_duration_s while a generator_next waits aborts the generator, and a motion with it. on_stop can close or abort a generator, but not wait on next.
Scratchpad
Large results, such as camera images and trajectories, are summarized when they are over 64 KB, so the model could not pass them on, and smaller ones cost tokens and can be copied wrongly. store_result on robotraconteur_get_property, robotraconteur_read_wire, robotraconteur_call_function, and robotraconteur_read_events, and on the same sequence actions, keeps the result in the server under a key, and returns its type and size with the value itself if its JSON is at most 1 KB, or else the start of it. list and get give age_s, the seconds since the key was last written, so an old value is seen to be old. A generator's results are kept as a list. { "$scratchpad": "path" } then stands for a kept value anywhere in a value, arguments, generator_inputs, or joint_position, including as one field of a structure given in JSON. A path is a key with any fields, indexes, and map keys, such as img.data, state.joint_position[2], or tags["lens"].
Every result of a direct robotraconteur_get_property, robotraconteur_read_wire, non-generator robotraconteur_call_function, or robotraconteur_generator next without store_result is also kept, under the key its kept_as gives, such as _r17, so the model can use a value it has already seen without having stored it by name. A result too large to return is summarized, with a note, and kept in full. When a sequence ends, however it ended, the result of its last main step that returned data, a get_property, read_wire, call_function, read_events, or generator_next, is kept the same way, and its status gives kept_as. For a call_function step that runs a generator to its end, that is the last value the generator returned, such as a planner's final status carrying its plan, kept whole even when the step's own result summarizes it. Since that is often the result wanted, such as a final state or a plan, it can be used next without a store_result. Other sequence steps keep nothing by themselves, so that a loop does not churn through the keys. The newest 20 such results, up to 64 MB, are kept; older ones are evicted first when space runs short, and keys the model names are never evicted. The model cannot write to these keys, but can copy one to its own key with set.
A value from a service is kept as it was unpacked, with its type, and sent as it is to a member of the same type, from any service that uses that type. Anything else is converted through JSON to the type wanted, with errors that give the path. robotraconteur_scratchpad lists the keys, reads the value at a path, summarized as the read tools do if it is large, writes JSON at a path, converted in place to the type there, or copies a kept value when given a $scratchpad value, and deletes keys. Keys are shared by every call and sequence, and kept in memory until the server restarts, up to 100 keys and 256 MB.
In a sequence, a $scratchpad value is read when its step runs, so a step can use what an earlier step stored, such as an image passed to a detector, or waypoints to move through. Before the sequences start, a path must use a key that exists or that a step of the call stores.
Timed sequences
The tool list is loaded on every turn of a conversation, so robotraconteur_start_sequence has a short description of the essentials, and the detailed rules below are given by robotraconteur_help, by topic: actions, timing, waiting, conditions, stopping, on_stop, skipping, events, scratchpad, and examples. The model is told to read the topics it needs, such as actions, timing, and stopping, in one call before writing its first sequence. In robotraconteur_help, topics give their pages, a category alone lists its topics, and an empty request lists the categories. The rules are in src/sequence_help.ts, kept in step with this section.
Each tool call is a round trip through the model, which takes seconds and varies, so steps that must happen at set times run as a sequence in the server instead. robotraconteur_start_sequence takes a list of sequences, usually one, each with its steps, and returns their sequence_id values straight away:
{
"sequences": [{
"steps": [
{ "action": "call_function", "service": "reynard", "name": "say", "arguments": ["Watch this"] },
{ "action": "wait", "seconds": 2 },
{ "action": "call_function", "service": "left_arm.robot", "name": "execute_trajectory", "arguments": [{ "$scratchpad": "plan" }] },
{ "action": "read_wire", "service": "left_arm.robot", "name": "robot_state", "repeat": { "count": 10, "every_s": 0.1 } },
{ "action": "set_property", "service": "reynard", "name": "color", "value": [0, 1, 0], "at_s": 8 }
],
"max_duration_s": 30
}]
}Each entry of sequences has steps, and optionally label, service for its steps that do not name one, on_stop, and max_duration_s. wait_s and detail apply to the whole call, and the result gives each sequence in order. Sequences started in one call start at the same instant on one clock, so their at_s and after times line up across them, which is how to move several robots together. Every step of every sequence is checked first, and if any is wrong, none start. Once started, each runs on its own: it has its own sequence_id, and stopping, cancelling, or failing one does not affect the others. With stop_together: true on the call, they are tied instead: when any of them ends without completing, because it failed, timed out, was stopped, or was cancelled, every other one still running is stopped at once, before the ended one's on_stop runs. Each stopped one has state stopped, runs its own on_stop, and has stopped_by with stop_together: true and the sequence_id, label, state, and sequence_error of the one that ended, which its on_stop can query through _sequence. Use it when the sequences only make sense together, such as robots that move as one.
Actions are named after the tools and take the same arguments:
get_property,set_property,call_function,read_wire,write_wire,read_events, plusgenerator_next,generator_close, andgenerator_abort,waitwithseconds, andwait_until, described below.Arguments are fixed when the sequence starts, except
$scratchpadreferences, which are read when the step runs, so a step can use what an earlier step kept withstore_result. Otherwise, to act on a result, branch on it withonly_if, or read it and start a new sequence.Steps run one at a time. A step starts when the previous one finishes, or at
at_sseconds from the start if that is later, so steps with the sameat_srun one after another, in order.atstarts a step at an absolute ISO 8601 time on the server clock, the clockstarted,now, and event times use. Steps with the sameatstart together, even in different sequences, which synchronizes robots on separate services.max_late, also an absolute time, is the latest the step may start, and defaults toat. A step that comes up after it, because earlier steps overran or the sequence started late, fails rather than starting late. A step that comes up in time waits and starts on time, give or take a few milliseconds of timer jitter, and up to 20 ms past its latest start still counts as in time, since getting from one step to the next takes a millisecond or two.atcannot be used withat_sorafter, must not be in the past, and must be withinmax_duration_s.at_sworks the same way:max_late_sis the deadline in seconds, counted asat_sis, from the start of the sequence or withafterfrom that step's end, and it defaults toat_s. So a step withatorat_sstarts on time or fails, and a latermax_lateormax_late_slets it start late. A step without either starts when the previous one finishes and has no deadline. To fall back when a timed step fails, give itcontinue_on_errorand a later steponly_if: { "<label>.ok": false }. A step with any deadline always reportslate_s, even when on time, so synchronization can be read directly.Steps of one sequence run one after another, so steps with the same
at_sin one sequence start a few milliseconds apart. For things that must start at the same instant, put them in different sequences of one call, whose steps with the sameat_sstart within a millisecond or two.Within one call, time steps with
at_s: the call's sequences share its clock, soat_s: 1means one second from now in each. Useatonly to meet sequences started in other calls, or an outside time. A step whose deadline is before the time of an earlier step counted from the same point, which it could only start after, is refused before the sequence starts. Steps withonly_ifare not checked this way, since they may be skipped.A
noopstep does nothing. Withatand alabel, it anchors a sequence at an absolute time: later steps useafterwith that label andat_s, andmax_late_sfor deadlines, so several sequences can share one start time and keep relative timing.robotraconteur_sequence_statuswithoutsequence_idgivesnow, the server's time, to choose that start time from.afternames the label of an earlier step, so thatat_scounts from when that step ended instead of from the start. This keeps timing after a step of unknown length, such as await_until. Withoutat_s, the step starts as soon as the labelled step has ended. The label must be unique.repeatruns a stepcounttimes,every_sapart.A
call_functionstep of a trajectory finishes when the robot arrives. To do something during a motion, such as sampling a wire, start a second sequence; sequences run side by side.Every step is checked before the sequence starts, including the services, members, values, and arguments, so a mistake is reported before anything moves.
A step may only use the fields of its action, so a field the action would ignore is reported rather than silently dropped.
serviceon the sequence applies to the steps that do not name one.wait_sonrobotraconteur_start_sequencewaits up to 30 seconds for the sequence to finish and answers asrobotraconteur_sequence_statusdoes, so a short sequence, or a wait for an event, takes one call.A sequence stops at the first failed step unless that step has
continue_on_error.It is stopped after
max_duration_sseconds: 60 by default and 600 at most.At most 200 steps, 2000 runs counting repeats, and 8 sequences running at once.
wait_until reads a wire or property every check_every_s seconds (0.05 by default) until its value matches condition, and checks events as soon as they arrive, and fails if timeout_s passes first, giving the last value it read. It can also wait for an event, described below:
{ "action": "wait_until", "service": "left_arm.robot", "name": "robot_state", "timeout_s": 5,
"condition": { "joint_position.0": { "$gte": 0.29 }, "controller_state.name": "motor_on" } }The condition is a MongoDB query, which models already know, evaluated by mingo against the same JSON that read_wire or get_property returns. A JSON object, such as a structure, is queried by its fields. An event is matched by its arguments by parameter name, such as { "message": "stop" }, not by the time, event, and arguments that read_events shows. Any other value, such as a number or an array, is queried as value, as in { "value": { "$gt": 0.5 } }, or an array element, as in { "value.0": { "$gte": 0.8 } }. $expr arithmetic works, for example to check that a joint is within a tolerance of its target. Only a list of operators is allowed: the query operators, and in $expr arithmetic, comparison, logical, conditional, type, string, and simple array operators. Operators that run code ($where, $function, $accumulator), use regular expressions, or loop over or build arrays ($map, $filter, $reduce, $range) are refused, so a condition cannot run code, and takes time in proportion to its size and the value's. Conditions are checked with the other steps before a sequence starts.
Values appear as the read tools show them, which matters when writing a condition:
Type | JSON | Matching it |
Enum |
|
|
64-bit integer | A decimal string, such as |
|
Complex number |
|
|
Map | An object keyed by strings |
|
Very large array | Summarized, with | Its elements cannot be matched |
wait_until on an event, such as Reynard's new_message, waits for an event of that name whose arguments match the condition, by parameter name as robotraconteur_read_events shows them. {} matches any event of that name. The matched event is returned in the step's result and removed from the events that robotraconteur_read_events returns, so each is handled once. An event received before the step started and not yet read also counts, so a message that arrives between two sequences is not missed. new_events_only: true ignores those, for when a stale event should not end the wait. It applies to the event entries of watch too, and a wait that times out says how many earlier events it ignored. In combine, an event entry stays met until the step ends, because its event waits unread. Events are collected from the root object of a service once the service has been used by any tool, including robotraconteur_describe. robotraconteur_read_events returns the oldest first and, with clear, removes only the events it returned, reporting how many remain. name limits it to one event.
To wait on several things at once, watch lists up to 10 entries in place of name and condition. Each has its own name, condition, and optionally service, object, and key. Wires, properties, and events on any services can be mixed. By default the step ends as soon as any entry is met. combine is a MongoDB query over the entries by key, each true or false, for other combinations:
A stop_when step takes a condition the same way as wait_until (name and condition, or watch and combine, with new_events_only and check_every_s), but does not wait. From that step until the sequence ends, it watches in the background. If the condition is met, it stops the sequence as a cancel does, aborting a running generator, such as a trajectory. The state is then stopped, stopped_by gives the stop_when step and what it saw, and an event that met the condition is taken. Placing it partway through limits it to the steps after it, and a sequence can have several. Within a sequence, an event that an active stop_when matches is left for it, so a wait_until in the same sequence does not take it and the stop wins. A stop_when with combine does not hold events back. An end_stop_when step ends one early: with target, the label of an earlier stop_when step, it ends that one, and without it, every one still watching. Its result lists those it ended. Together they guard only the steps between them, such as a celebration within a longer sequence. If what it watches cannot be read, it stops the sequence as well, with an error, rather than letting it go on unwatched.
A stop_when step only watches while its own sequence runs. To stop all the sequences of one call together, such as a whole show on a "stop" message or a fault, give the call a stop_when next to sequences, in the same form as the step but with no timing. From the moment the call starts the sequences until all have ended, if its condition is met, every sequence still running is stopped at once, with state stopped and stopped_by from it (stop_when: "call" and its label), and each runs its own on_stop. It holds back the events it matches from the wait_until steps of all the sequences, so it always wins. A stop_when in each sequence would not do this: the first to take the event would be the only one to stop.
Anything that must interrupt a running sequence, such as an operator request, a fault, or a sensor limit, needs a stop_when in that sequence or the call's stop_when, with on_stop to make the device safe. Checked only between sequences, it waits until the running step ends, which for a motion can be seconds. Leave new_events_only off for such a stop_when, so that a request sent before the sequence started, such as between sequences, still stops it; with it on, that request is ignored for good and the next sequence moves the device anyway.
on_stop, next to steps, lists steps to run at once if the sequence ends without completing: stopped by stop_when, cancelled, timed out, or failed. It is for cleaning up, such as stopping a motion that a function started without waiting, or saying that the show stopped. The steps run in order, each even if another fails, within 10 seconds in all. They cannot wait: wait, wait_until, stop_when, end_stop_when, and generator_next are refused, and so are at_s, after, and repeat. They are checked with the other steps before the sequence starts, and their results are given in on_stop. A cancel returns once they have run. An on_stop step's only_if can also query _sequence, how the sequence ended: { state, stopped_by, error }, with state one of stopped, cancelled, timed_out, or failed. For example, { "_sequence.stopped_by.label": "stop" } says "Stopped" only when the stop_when labelled stop fired, and { "_sequence.state": "failed" } handles a failure. stopped_by is there only when a stop_when fired, and error only after a timeout or a failure, so after a cancel neither is, and $exists tells them apart. An on_stop step without only_if runs however the sequence ended. _sequence cannot be used in main steps or as a label.
only_if on any step, including on_stop steps, runs it only if a MongoDB query holds, and otherwise skips it completely, with skipped: true in its result. It is decided as soon as the step comes up, so a skipped step does not wait for its at_s or after time, none of its repeats run, and it does not hold up the steps after it. A skipped step counts as finished when it was skipped, so after on it times from then. To time a step from whichever branch ran, time it with after on the step both branches follow, such as the wait_until they depend on. The query is on the outcomes of earlier labelled steps, by label, each { ok, skipped, result, error }:
{ "action": "wait_until", "name": "new_message", "condition": {}, "timeout_s": 10, "label": "answer", "continue_on_error": true },
{ "action": "call_function", "name": "say", "arguments": ["Well done!"], "only_if": { "answer.ok": true } },
{ "action": "call_function", "name": "say", "arguments": ["Too slow!"], "only_if": { "answer.ok": false } }A failed step only lets the sequence go on if it has continue_on_error. A query can also look at what a step returned, such as { "answer.result.event.arguments.message": "yes" }. To act on a live value, read it in an earlier labelled step, such as get_property. only_if does not wait, and the labels it uses are checked before the sequence starts: each must belong to one earlier step.
{ "sequences": [{ "service": "reynard",
"steps": [
{ "action": "stop_when", "name": "new_message", "label": "stop",
"condition": { "$expr": { "$eq": [{ "$toLower": { "$trim": { "input": "$message" } } }, "stop"] } } },
{ "action": "call_function", "name": "say", "arguments": ["Hooray!"] },
{ "action": "set_property", "name": "color", "value": [0, 1, 0] }
] }] }{ "action": "wait_until", "timeout_s": 280,
"watch": [
{ "key": "msg", "service": "reynard", "name": "new_message", "condition": {} },
{ "key": "fault", "service": "left_arm.robot", "name": "robot_state", "condition": { "controller_state.name": { "$ne": "motor_on" } } }
] }This ends when a message arrives or the arm leaves motor_on, whichever is first. "combine": { "msg": true, "fault": false } would instead wait for a message while the arm is still in motor_on. An entry's key defaults to its name, and its service to the step's, then the sequence's. The result's met lists the keys of the entries that were met, and its watch gives each entry by key: whether it was met, the value of a wire or property, and the event of an event entry that was met. Only those events are removed from robotraconteur_read_events. An event that arrives while combine is not yet satisfied waits in the buffer. Keys used in combine are checked against the entries before the sequence starts.
robotraconteur_cancel_sequence takes sequence_ids, a list, so that all the sequences of a call can be cancelled at once. Every id is checked first, and an unknown one cancels nothing.
With wait_s, robotraconteur_sequence_status and robotraconteur_start_sequence normally return when the sequences end or wait_s runs out. until names a step label, to return as soon as that step has a result, whether it ran, failed, or was skipped, such as to react to an answer in the middle of a show. until_met says whether it did.
robotraconteur_sequence_status reports the state (running; completed; failed, when a step failed, including a wait_until that reached its timeout_s; cancelled; stopped, by a stop_when step; or timed_out, when the sequence ran past max_duration_s) and each step's result. A result gives when the step started, in seconds from the start of the sequence, how long it took, how late it started if it was late, and its value or error. wait_s waits up to 30 seconds for the sequence to finish, and long result lists are returned over several calls using from_index and next_index. robotraconteur_cancel_sequence stops a sequence. A robot motion it started is aborted, and the robot is set to halt. Running sequences are also cancelled when the server shuts down. The 20 most recent finished sequences are kept.
Results are compact by default: steps that succeeded on time without returning a value, and have no label, are left out. A step counts as on time if it started no more than 0.02 s late, and their number is given as omitted. detail: "full" gives every step, for example to check the timing of each one. Results also give started, when the sequence started, ended, when it ended, and now, the server's current time. Each step's result also gives its own started as an absolute time, so results can be compared across sequences, and a step that missed its deadline gives late_s, how late it came up. elapsed_s is how long the sequence ran, so it stops when the sequence ends. robotraconteur_read_events gives now too. These come from the same clock as event times, so the model can tell how long something has run or a message has waited. A call_function step's result is the function's return value itself, or for a generator, how it ran and its last results. While a sequence waits for a step's time, current_step shows that step with waiting: true and its starts_at_s. A sequence that was cancelled or timed out gives stopped, saying whether a step was stopped or it was between steps, and any sequence that did not complete gives not_run, how many step runs never started. robotraconteur_cancel_sequence returns all the results so far. A cancelled sequence has no error, since stopped explains it. Cancelling a sequence that has already finished says so in cancel, with when the cancel arrived, and changes nothing. A cancel from the model arrives a turn after the last result, often seconds later, so a stop at a set time or on an event belongs in max_duration_s or stop_when. wait_s counts from when the call arrives, not from the start of the sequence. wait_s also works to check partway through a running sequence. A sequence keeps running if the conversation is interrupted. List the sequences to find any still running.
An optional JSON file, passed as the first argument, can limit what is used:
{ "serviceTypes": ["com.robotraconteur.robotics.robot.Robot"], "nodeNames": ["left_arm"] }It can also list services at known addresses with "services": [{ "name": "ur5e", "url": "rr+tcp://..." }], and enable IPv4 discovery with "ipv4Discovery": true. The file is checked when the server starts, and a misspelled or unknown setting stops it with an error naming the setting.
Standard service definitions
Robots, cameras, sensors, and other devices use the standard service definitions, such as com.robotraconteur.robotics.robot. Their robdefs carry little documentation, to keep them small on the wire, so robotraconteur_help serves it instead: category standard_service_types lists them, and each is a topic by its full name, giving its page from robotraconteur_standard_robdef docs/group1. When robotraconteur_describe shows standard types, it adds standard_docs, naming the page to read: the object's own for an object, or the pages of the types a member uses.
The pages are copied into src/standard_docs.ts from a commit of that repository, recorded in the file. To update them, run npm run import-standard-docs -- <path to a robotraconteur_standard_robdef checkout>.
Building and testing
robotraconteur and robotraconteur-node are installed from npm. The image is built on the development images of robotraconteur_typescript, so build those first. Then:
podman build -t rr-ts-mcp-dev .
./scripts/podman-run.sh npm test
./scripts/podman-run.sh npm run bundlenpm run bundle writes dist-bundle/robotraconteur-mcp.mjs, along with THIRD_PARTY_LICENSES.txt for the packages it includes, which should be distributed with it. Setting RR_MCP_SERVER=dist-bundle/robotraconteur-mcp.mjs runs the tests against the bundle instead of the normal build.
The tests and builds run inside an isolated podman container, on an internal network of its own with no route to the host or the internet.
GitHub Actions runs the same tests on every push and pull request, builds the bundle, and tests it. The bundle and its license file are kept as the robotraconteur-mcp artifact of each run.
The tests drive the real server over stdio with the MCP client, against Reynard, two simulated robots using the standard Robot type, a planner that makes long trajectories for them, and Core's test service. Reynard runs as test/services/instrumented_reynard.py, which adds a reynard_diagnostics service to send chat messages as if typed in the web page and to log what Reynard is asked to do, so tests of chat and timing need no person. Testing with an AI client describes it.
Running a demo
Testing with an AI client connects Claude Code to the server through .mcp.json in this folder, with Reynard and two simulated robots named left_arm and right_arm to find, and suggests prompts to try.
License
Apache 2.0
Available Tools
13 toolsrobotraconteur_call_functionA
Call a function of a service. Arguments are given in order as an array, or by name as an object. Fields left out of a structure are filled with zero or empty values. A function that streams results as a generator is run to completion, and its last results are returned. The call waits until the generator finishes, so it cannot be stopped partway; to be able to stop a long generator, such as a trajectory, run it as a call_function step of robotraconteur_start_sequence, which robotraconteur_cancel_sequence aborts. Tool calls sent together may run at the same time, in any order. To run calls one after another, send them one at a time, or use robotraconteur_start_sequence for exact order and timing.
Inputs: name (required), service (required), object, arguments, +2 more.
robotraconteur_cancel_sequenceA
Stop running sequences, given by sequence_ids, such as all those of one start call, at once. A cancel from the model arrives one turn after the last result, often seconds later, so to stop at a set time or on something happening, use max_duration_s or a stop_when step instead. A generator it is running, such as a trajectory, is aborted on the service, and a robot moved by robot_move_joints is also halted. It does not stop work that a service started from an ordinary function call that returned at once, such as a motion started without waiting for it, so stop that with the service's own command, such as in on_stop. An ordinary function call that is still running, such as a motion called with wait true, is not interrupted either: the sequence stops at once, but the service goes on until the call returns. Returns the sequence's final state and results, stopped, which says whether a step was stopped or the sequence was between steps, and not_run, how many step runs never started. If the sequence had already finished, cancel says so, and nothing is cancelled.
Inputs: sequence_ids (required).
robotraconteur_describeARead-only
Show what a service can do: its properties, functions, wires, events, and sub objects, with documentation. Set member to see the fields of the structures and the names of the enums that member uses. Documentation is reStructuredText. Values use SI units and radians unless the documentation says otherwise.
Inputs: service (required), member, object.
robotraconteur_discoverARead-only
List the Robot Raconteur services found so far on the network: devices such as robots, cameras, and sensors. Start here. It answers immediately while searching continues in the background, so if searching is true and something is missing, call it again after check_again_after_s seconds. Use robotraconteur_describe to see what a service can do. Each service's name in service is the exact name to use with the other tools, made from the node name and the service name. It is unique and stays the same while the server runs: names are kept by node ID, and when two nodes share a node name, the later one's name includes part of its node ID. nodeId identifies the node. A node that restarts with a new node ID gets a new name, so a running sequence never switches to a different node.
Inputs: refresh.
robotraconteur_get_propertyCRead-only
Read a property of a service.
Inputs: name (required), service (required), object.
robotraconteur_helpARead-only
Detailed help. Ask for topics to read them, each once; names ignore case. A category alone lists its topics, and an empty request lists the categories. Categories: sequences: the rules for robotraconteur_start_sequence. Read the topics you need before writing your first sequence, and when a rule is unclear. Its topics:
actions: what each sequence action takes, the fields any step can use, and the limits
timing: at_s, after, at, the max_late and max_late_s deadlines, starting several things at the same instant, and waiting for results with wait_s and until
waiting: wait_until, with watch to wait for several things, combine, and check_every_s
conditions: writing MongoDB queries on wires, properties, and events, special values such as enums and 64-bit integers, and the operators allowed
stopping: stop_when, end_stop_when, the call's stop_when, stop_together, max_duration_s, and what a cancel stops
on_stop: cleanup steps after an early end, and querying how the sequence ended with _sequence
skipping: only_if on the outcomes of earlier labelled steps
events: which step takes an event, events received earlier, and new_events_only
examples: complete start_sequence calls standard_service_types: lists the standard service definitions that robots, cameras, sensors, and other devices use, such as com.robotraconteur.robotics.robot. Their robdefs carry little documentation, so each one's documentation is a topic by its full name. robotraconteur_describe says which to read.
Inputs: topics, category.
robotraconteur_read_eventsA
Return events a service has sent, such as a fault, a trigger, or a message arriving, oldest first, with now, the server's current time, from the same clock as the events' times. Events are collected once the service has been used by any tool, including robotraconteur_describe, so earlier ones are not seen. To wait for an event rather than checking repeatedly, use a wait_until step of robotraconteur_start_sequence. With clear false, this only looks: the events stay, and a wait_until still sees them and takes only those it matches.
Inputs: service (required), name, clear, limit.
robotraconteur_read_wireARead-only
Read the latest value of a wire. Wires carry continuously updated data such as robot state and sensor readings. read_at is when it was read, not when the device last updated it. not_updating appears when a standard state's seqno has not changed for 5 s: the device stopped sending.
Inputs: name (required), service (required), object.
robotraconteur_robot_move_jointsA
Move a standard Robot Raconteur robot smoothly to joint positions and wait for it to arrive. Use this instead of building a trajectory by hand. Positions are in the robot's joint units, usually radians. It needs a robot that supports the trajectory command mode. Read robot_state with robotraconteur_read_wire to find the current position. Refused if a target is outside its joint limits or robot_state is not updating. On success the robot is left in trajectory command mode; on a failure, stop, or timeout (duration_s + 30 s) it is halted. Tool calls sent together may run at the same time, in any order. To run calls one after another, send them one at a time, or use robotraconteur_start_sequence for exact order and timing.
Inputs: service (required), duration_s (required), joint_position (required), object.
robotraconteur_sequence_statusARead-only
Report the state of a sequence and the results of its steps so far: running, completed, failed (a step failed, including a wait_until that reached its timeout_s), cancelled, stopped (a stop_when step's condition was met, given in stopped_by), or timed_out (the sequence ran past max_duration_s). Use wait_s to check partway through a running sequence. wait_s counts from when this call arrives, not from the start of the sequence, so to check at a set time in the sequence, compare elapsed_s. current_step is the step running, or the next one with waiting true while the sequence waits for its starts_at_s. A sequence that was cancelled, stopped, or timed out gives stopped, saying why and where it stopped, and one that did not complete gives not_run, how many step runs never started. started is when the sequence started, ended is when it ended, and now is the server's current time, all from the same clock, and each result gives its own started as an absolute time too. elapsed_s is how long the sequence has run, and stops when it ends, and each result has the step index, when it started in seconds from that time, how long it took, how late it started if it was late, and its result or error. Set wait_s to wait for the sequence to finish, up to 30 seconds, rather than calling repeatedly. Results are returned in order, and a long list is split over calls: pass next_index as from_index to get the rest, or only the new ones. Without sequence_id, lists the sequences, with now, the server's current time.
Inputs: limit, until, detail, wait_s, +2 more.
robotraconteur_set_propertyA
Write a property of a service. Enums can be given by name. 64-bit integers can be given as decimal strings. Tool calls sent together may run at the same time, in any order. To run calls one after another, send them one at a time, or use robotraconteur_start_sequence for exact order and timing.
Inputs: name (required), value (required), service (required), object.
robotraconteur_start_sequenceA
Start one or more timed sequences of steps, and return at once with each one's sequence_id. The steps run in the server without a round trip through the model, so their timing is exact. Before writing your first sequence, read robotraconteur_help topics actions, timing, and stopping, and others as needed, such as waiting, conditions, on_stop, skipping, events, and examples, in one call. Essentials: steps of a sequence run one at a time, in order. Sequences in one call start together on one clock, and every step is checked before any starts, so nothing starts if any step is wrong. A step with at_s or at starts on time or fails. wait_until waits for a condition on a wire, property, or event. stop_when watches in the background and stops its sequence when its condition is met; to stop every sequence of a call on one condition, use the call's stop_when. An active stop_when, including the call's, holds only the events it matches, so the stop wins and other events still reach wait_until. on_stop steps clean up after any early end and cannot wait. The first step of any sequence to match an event takes it. Step arguments are fixed when the sequence starts: a step cannot use an earlier step's result, so branch on it with only_if, or read it and start a new sequence. Follow sequences with robotraconteur_sequence_status. A sequence keeps running if the conversation is interrupted. A cancel arrives a turn late, so put planned stops in max_duration_s or stop_when. Anything that must interrupt a running sequence, such as an operator request, a fault, or a sensor limit, needs a stop_when in that sequence or the call's stop_when, with on_stop to make the device safe; checked only between sequences, it waits until the running step ends.
Inputs: sequences (required), until, detail, wait_s, +2 more.
robotraconteur_write_wireC
Set the value being sent on a wire.
Inputs: name (required), value (required), service (required), object.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools map cleanly to distinct actions (discover, describe, get/set property, read/write wire, read events, sequence lifecycle, help), and the descriptions explicitly steer between them. The main soft spot is that robotraconteur_call_function, robotraconteur_start_sequence, and robotraconteur_robot_move_joints can all accomplish the same motion/interaction goal, but the descriptions clearly state when to prefer each.
Every name shares the robotraconteur_ prefix and most follow a verb_noun pattern (get_property, set_property, call_function, read_wire, write_wire, start_sequence, cancel_sequence, read_events). Minor deviations exist: robotraconteur_sequence_status is noun-first and bare verbs (discover, describe, help) lack an object, but the convention remains readable and predictable.
13 tools is well within the ideal range for a device-integration server. Each tool covers a distinct facet (discovery, introspection, members, sequences, motion, help) and none appear redundant or filler.
The surface covers discovery, introspection, properties, functions, wires, events, sequenced/timed operations, robot motion, and extensive help — a solid lifecycle. Gaps remain: Robot Raconteur pipes are not exposed (describe lists properties, functions, wires, events, sub objects but no pipe read/write), and there is no explicit connect/disconnect or auth/subscription management.
Related MCP Connectors
Connect AI agents to discover services and coordinate real-world tasks.
Discover, compare, route, and execute machine-accessible capabilities for AI agents.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Reach your own computers from any AI app: files, commands, screen and mouse, approvals and alerts.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to control Universal Robots through real-time connection management, status monitoring, and precise joint/linear motion control. Provides safe robot operation with built-in collision detection and simulation mode for development without physical hardware.6GPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables AI tools to interact with ROS2 robotics systems through natural language commands. Supports topic publishing/subscribing, service calls, message analysis, and auto-discovery of ROS2 interfaces for debugging and controlling robots.Mozilla Public 2.0
- AlicenseNot gradedqualityDmaintenanceEnables large language models to interact with ROS robots seamlessly, allowing natural language control, real-time sensor monitoring, and autonomous task execution without modifying existing robot code.Apache 2.0
- AlicenseAqualityCmaintenanceConnects AI agents to ROS 2 robots via rosbridge, enabling observation, inspection, and control of robot topics, services, and actions through natural language.112MIT