TopicForge

Let an AI assistant inspect your ROS 2 robot and its DDS bus.

TopicForge is an open source MCP server. Its 14 tools read ROS 2 topics, nodes, bags and the DDS bus, and explain why readers and writers do not talk. It is read-only by architecture: no code path publishes to the robot or commands it.

Install

pip install topicforge

v0.11.2 on PyPIPython 3.10 to 3.13MIT

A real diagnosis

A QoS mismatch, captured on 2026-10-05 on a real Cyclone DDS bus. The calls and outputs are real, trimmed to the useful fields. The final answer is written from these outputs.

TopicForge 0.6.0 Cyclone DDS examples/dds/02_why_cant_they_talk
  1. user

    "The navigation planner subscribes to the lidar scan but never receives anything. Both programs run, the topic name and type are right. Why?"

  2. tool
    -> list_participants {}
    lidar_driver  (cyclone, active)
    nav_planner   (cyclone, active)
    topicforge    (cyclone, active, observer)
  3. tool
    -> list_endpoints {"topic": "scan"}
    writer  lidar_driver  type LidarScan  reliability BEST_EFFORT  durability VOLATILE
    reader  nav_planner   type LidarScan  reliability RELIABLE     durability VOLATILE
    by_topic: scan, 1 writer, 1 reader, same type, same partition
  4. tool
    -> detect_qos_mismatches {"topic": "scan"}
    {
      "topic": "scan",
      "writer_participant_name": "lidar_driver",
      "reader_participant_name": "nav_planner",
      "severity": "incompatible",
      "details": [{
        "policy": "Reliability",
        "requested": "RELIABLE",
        "offered": "BEST_EFFORT",
        "rule": "a RELIABLE reader needs a RELIABLE writer"
      }]
    }
  5. answer

    nav_planner's reader on scan requests RELIABLE, but lidar_driver's writer only offers BEST_EFFORT. DDS never matches that pair and raises no error, so the planner silently receives nothing. Either make the lidar writer RELIABLE, or make the planner's reader BEST_EFFORT (usual for high-rate sensor data). Nothing else blocks the pair: same type, same partition, durability compatible.

Three calls. TopicForge is the third participant in the list, as an observer. The example is in the repository under examples/dds/02_why_cant_they_talk.

Captured with 0.6.0; output contract 2 in 0.7.0 changes the response shape, see the migration guide.

The 14 tools

Every tool observes and declares itself read-only in MCP (readOnlyHint). None of them writes to the robot: the only request TopicForge ever sends is a parameter read (list/get).

ROS 2 5 tools

list_topics
topics of the ROS 2 graph with their types and publisher/subscriber counts.
get_topic_info
one ROS 2 topic in detail, including the reliability and durability of its publishers and subscribers.
list_nodes
ROS 2 nodes on the graph: names, namespaces, duplicate names.
get_node_info
one node's publishers, subscribers, services, actions, parameters (secrets masked) and use_sim_time; a node that does not answer is reported, not an error.
sample_messages
read the latest messages on a ROS 2 topic, decoded into named fields.

Bags 2 tools

analyze_bag
summarize a recording (.mcap, .db3, .bag): topics, counts, real per-topic rates.
peek_bag_samples
read decoded messages out of a recording.

DDS 6 tools

list_participants
the DDS participants (programs) on the bus, with name, vendor and status.
list_endpoints
every DDS writer and reader, with its topic, type and full QoS, and topics with no reader or no writer.
detect_qos_mismatches
why readers and writers on the same topic do not talk, with the requested and offered values.
participant_events
when participants joined and left the bus (crashes, restarts).
peek_dds_samples
raw DDS discovery records and samples on a DDS topic.
topic_metrics
observed frequency, sequence gaps and latency for a DDS topic.

Health 1 tool

health_check
what TopicForge sees right now (live or mock, ROS 2 and DDS backends, domain, version).

New in 0.7.0

  • sample_messages and peek_bag_samples summarize each message by type: closest obstacle and sector minima for LaserScan, speed for Odometry, orientation for Imu, metadata for Image and PointCloud2.
  • They also report the observed rate with a verdict (stable, jittery, intermittent, silent and others).
  • Two MCP prompts, diagnose-dds-bus and inspect-ros2-robot, give the client the read-only call order (Claude, Cursor, VS Code and Gemini CLI show them).
  • The server no longer freezes on long calls: a hung ros2 CLI is killed at its deadline, and each call has a 45 s budget.

What is tested, and what is not

Evidence

  • About 1,400 automated tests.
  • A ROS 2 Humble and Jazzy test bench in Docker, run on every relevant change.
  • Continuous ground truth: on every change, CI compares the answers with a ground truth written by the ROS 2 bench (Humble and Jazzy, Fast DDS and Cyclone). A mismatch fails the job.
  • Blind evaluation: Claude 4/4 and OpenAI Codex 9/9 correct diagnoses on 4 DDS fault scenarios, no false alarm on a healthy bus. Gemini was not run. An internal check on the author's own scenarios, not an independent benchmark.
  • On a simulated robot (OmniSim, external validation), lidar scans matched the simulator's published data beam for beam. Validation note

Known limits

  • Observed live: Cyclone DDS, Fast DDS and Dust DDS participants (CI test bench and the OmniSim validation). RTI Connext, OpenDDS and CoreDX announce themselves through the same standard discovery but have not been observed yet.
  • The Fast DDS backend itself has never run on a real bus.
  • DDS Security is not supported.
  • DDS payloads of user topics are not decoded. The ROS 2 side decodes them.
  • A writer that is stuck but still alive is not detectable yet.

External validation: OmniSim (October 2026)

The OmniSim team ran TopicForge against a simulated robot and compared its answers with the simulator's ground truth.

Setup

OmniSim v9.1.3, a simulated Clearpath Husky with a 541-beam SICK LMS111 lidar in a room with walls at known positions, robot stationary. ROS 2 Humble on Ubuntu 22.04 (WSL2), Fast DDS. TopicForge 0.5.3 in live mode for the ROS 2 tools, and 0.5.5 with the Cyclone backend for the DDS tools.

What matched

  • Every lidar scan TopicForge sampled was bit-identical to the simulator's raw data on the beams it delivered.
  • list_topics and get_topic_info returned the same names, types and publisher/subscriber counts as the ros2 CLI.
  • analyze_bag returned the same duration and message counts as ros2 bag info and an independent read of the bag.
  • With the Cyclone backend, TopicForge saw all seven Fast DDS participants of the ROS 2 graph without extra configuration, and reported participants leaving within about 10 ms of the actual time.

What it found

Seven discrepancies on TopicForge's side, including lidar arrays cut at 128 values, one message per sample_messages call, zero timestamps on simulated time, and Humble bags that peek_bag_samples could not decode.

All seven are addressed in 0.5.6 and 0.6.0 (full arrays through a max_array_length option) and covered by a ROS 2 Humble/Jazzy test bench; the OmniSim run itself has not been repeated on these versions yet.

The bag recorded during the run is part of TopicForge's test fixtures.

Full validation note in the repository

Install and configure

  1. Install

    uvx topicforge==0.11.2

    Or with pip:

    pip install topicforge
    pip install "topicforge[dds]"      # alias, kept so older commands work

    Python 3.10 to 3.13. cyclonedds is now included on Linux x86_64, Windows x64 and macOS; [dds] stays as an alias.

  2. Try it without a robot

    TOPICFORGE_MODE=mock python -m topicforge

    Mock mode answers from fixtures. No robot needed.

  3. Claude Desktop

    Download topicforge-<version>.mcpb from the latest GitHub release and double-click it, or edit claude_desktop_config.json:

    {
      "mcpServers": {
        "topicforge": {
          "command": "python",
          "args": ["-m", "topicforge"],
          "env": { "TOPICFORGE_MODE": "auto" }
        }
      }
    }

    For DDS, add to env

    "TOPICFORGE_DDS_BACKEND": "cyclone",
    "TOPICFORGE_DDS_DOMAIN_ID": "<domain>"

    Set TOPICFORGE_DDS_DOMAIN_ID only if your domain is not 0.

  4. Claude Code

    claude mcp add topicforge -- topicforge

    Or as a plugin, with two skills:

    claude plugin marketplace add yaniswav/TopicForge
    claude plugin install topicforge@topicforge
  5. Local HTTP, optional

    topicforge --transport streamable-http --port 8765

    For clients that cannot launch the server. Serves http://127.0.0.1:8765/mcp, bound to 127.0.0.1 only, with no authentication: use an SSH tunnel to reach a robot. stdio stays the default.

  6. Modes

    TOPICFORGE_MODE is auto by default: live if ros2 is on PATH, else mock fixtures. Set it to live or mock to choose.

  7. Upgrading from 0.6.x

    0.7.0 is a breaking release: output contract 2, one object per tool. Clients check health_check.contract_version == 2. Every renamed field is in the migration guide.

Install in your client

Every client launches TopicForge as a child process with the same stdio command:

uvx topicforge==0.11.2

And the same three environment variables:

VariableValueMeaning
TOPICFORGE_MODEautoUse ROS 2 if it is on PATH, else fixtures.
TOPICFORGE_DDS_BACKENDcycloneJoin the DDS bus as a read-only participant (the cyclonedds binding is installed with TopicForge on supported platforms). Use mock for a demo with no robot.
TOPICFORGE_DDS_DOMAIN_ID0The one DDS domain to observe. Fixed at startup: restart the server to change it.

16 clients covered

Setup for every client (config file paths and per-client notes)

What cannot work. ChatGPT on the web and in the desktop app cannot run local stdio MCP servers. A hosted TopicForge endpoint is out of scope on purpose: TopicForge has to sit on the same network as the DDS participants it observes. Details

Where a client asks for a display name, use TopicForge (ROS 2 / DDS): an unrelated SEO product is also called TopicForge in the MCP registries.

Professional integration

TopicForge is free and open source (MIT) and stays that way. If your team needs it validated on its own ROS 2 / DDS stack, I offer:

Professional integration offers
OfferPriceScope and conditions
Integration Sprint On quotefixed scope
Effort
5 days of work, delivered remotely over about 3 weeks.
Included
setup on the client's ROS 2 / DDS stack, 3 failure scenarios reproduced and diagnosed, compatibility matrix, written report, 1-hour handover session.
Excluded
travel, on-site work, write access to robots (TopicForge is read-only by design).

Multi-vendor stacks (RTI with your license, segmented networks, DDS Security): scoped separately, on quote.

Design partner On quotereduced rate, first 3 teams only

Same scope as the Integration Sprint.

In exchange
structured feedback and an anonymized case study we can publish.
Team Support On quotemonthly, 3-month minimum
  • Async support by email or issue, best-effort answer within 3 business days (no guaranteed SLA).
  • Help with ROS 2 / DDS upgrades, review of diagnostics, one scheduled call per month.
Enterprise On quote
Annual agreement
signed package, SBOM, maintained versions, no telemetry, path restrictions, validated middleware matrix, private skills.

Email ethvignot.yanis@gmail.com with your ROS 2 distro, DDS vendor and what breaks; I reply with a quote.

Project

  • Version0.11.2, on PyPI (2026-11-23)
  • MCP Registryio.github.yaniswav/topicforge
  • External validationOmniSim, October 2026
  • Claude plugin listingsubmitted to the Claude directory, in review