Skip to main content

Doctor ROS logo

Doctor ROS

A Kiro Power that moves ROS 1 robot fleets to ROS 2 Jazzy and Open-RMF, one robot at a time, while the rest of the fleet keeps working.

Status: pre-alpha, under active development for the Kiroween 2026 hackathon. The local MCP server and the doctor-ros CLI expose analyze, migrate, build, verify, fleet-config and deploy. Migration converts what it can deterministically and reports every remaining change as a TODO. deploy writes on-site rollout files (bridges, DDS and QoS settings, a one-robot-at-a-time rollout plan and a simulated fleet demo); deploy --target aws is not supported yet. Every stage regenerates migration/report.html. Each stage also regenerates the patient chart, migration/patient-chart.html; migration/report.html is unchanged. doctor-ros start opens a local dashboard with the fleets, live status, report, patient chart and Kiro credits.

The CLI runs the mechanical steps and checks anywhere. The full migration needs Kiro.

Repository: https://github.com/mari-muthu-k/doctor-ros License: Apache-2.0

Install as a Kiro Power

This repository is the Power. It follows the Agent Plugins format that Kiro Powers use:

  • plugin.json: the manifest and activation keywords
  • mcp.json: starts the MCP server with uvx doctor-ros-mcp==<version>
  • skills/: migrate-fleet, fill-fleet-profile, roll-out-fleet and open-dashboard
  • dev.kiro/steering/doctor-ros-rules.md: the Doctor ROS rules
  • dev.kiro/hooks/verify-self-repair.json: the bounded verify self-repair hook
  • assets/doctor-ros-mark.svg: the Doctor ROS logo

In Kiro, open the Powers panel, choose Add Custom Power, then Import power from GitHub with the repository URL (or Import power from a folder with a local clone). uv must be installed for uvx.

The Kiro docs do not yet describe how a Power ships steering files or hooks. If the Agent Hooks panel does not list "Doctor ROS verify self-repair" after you install the Power, copy dev.kiro/hooks/verify-self-repair.json into your workspace's .kiro/hooks/ folder. If the rules are not applied, copy dev.kiro/steering/doctor-ros-rules.md into .kiro/steering/. The same rules are also in the migrate-fleet skill.

With this Power, Kiro keeps its messages short: results in one line plus a few bullets, and one precise question when it needs a decision. The rule is in the steering file, in every skill and in the MCP server's initialize instructions.

Updating the power

After you update the power to a new release, the MCP server can fail to connect for up to about 10 minutes, because uvx still uses its cached PyPI index, which does not list the new version. If the server shows an error after an update, run this once:

uvx --refresh --from doctor-ros-mcp==<version> doctor-ros --help

Then click Retry on the server in the MCP servers panel.

Example fleets

Example ROS 1 fleets for trying the Power live in a separate repository, mari-muthu-k/example-fleets. It is included here as a git submodule at examples/. The first fleet is hospital_fleets: three carts in the AWS RoboMaker hospital world that share one narrow corridor, where only one robot fits at a time. It runs on plain ROS 1 with no traffic control, so the carts deadlock. A corridor_watch node logs deadlocks, collisions and aborted goals. It is the "before" for the Open-RMF traffic demo.

The dashboard tests read fleets from examples/ or from the folder in DOCTOR_ROS_EXAMPLE_FLEETS, and skip when neither is there.

Clone with the submodule, or fetch it into an existing checkout:

git clone --recurse-submodules https://github.com/mari-muthu-k/doctor-ros.git
git submodule update --init examples

To test the Power, open the example-fleets repository as its own workspace in Kiro and install the Power there. examples/ is for development only and is not shipped: the wheel and source archive contain only src/doctor_ros (plus tests and metadata in the source archive), .kiroignore excludes it from the Power, and the release workflow checks out without submodules.

Test the Power against a local checkout

To try unreleased code, point your own workspace MCP settings (not this repository's mcp.json) at a local checkout. The server command is uvx --from <local doctor-ros path> doctor-ros-mcp, which in MCP settings looks like this:

{
  "mcpServers": {
    "doctor-ros": {
      "command": "uvx",
      "args": ["--from", "<local doctor-ros path>", "doctor-ros-mcp"]
    }
  }
}

For the CLI, run it from the checkout with uv run doctor-ros analyze <fleet folder> (and migrate, build, verify, fleet-config, deploy the same way).

The mcp.json shipped with the Power pins doctor-ros-mcp==1.2.4 and is not changed by this. Installing the Power still starts the released server.

Dashboard

The dashboard is a local web page that lists your fleets with their live status, shows each fleet's report and patient chart, and shows Kiro credits per fleet.

In Kiro, say "open the doctor ros dashboard". The open-dashboard skill starts it in the background and gives you the link. To start it yourself, run this in the fleet folder:

uvx --from doctor-ros-mcp doctor-ros start

Or install it once with uv tool install doctor-ros-mcp and then run doctor-ros start.

  • -r <folder> serves another folder. Fleets are found up to two levels down.
  • --port <port> changes the port (default 8765).
  • It listens only on 127.0.0.1 and is read-only: it changes nothing in your repository.
  • It needs a release of doctor-ros-mcp that includes the dashboard. With an older release, start is an invalid choice.

What it shows:

  • Fleets: every fleet under the folder, with its stack (ROS 2 once the migration branch has a migrate: success commit, otherwise ROS 1), its live status, and the robots running according to docker compose ps (unknown when Docker is not reachable).
  • Fleet page tabs:
    • Report and Patient chart: read from the migration branch with git (no checkout) and shown in a sandboxed frame.
    • Kiro credits: see below.
    • Open-RMF: the live map, goals and robot edits come in the next phase.
  • Kiro credits: kept per fleet in .git/doctor-ros/fleets/<fleet>-<id>/credits.yaml (.git/doctor-ros/credits.yaml when the fleet is the repository root). The file is outside the working tree, so it is never committed. The first time you open the fleet page, Doctor ROS creates it with a commented template. Add one entry per stage:
entries:
  - date: "2024-01-15"
    stage: "analyze"
    credits: 12.50
    note: "initial scan"

Context7 documentation lookups

Kiro reads current ROS 2, Nav2, Gazebo with ros_gz, and ros2_control documentation through the context7 MCP server in mcp.json. It does this before it resolves a migration TODO marker or replaces a package. Only Kiro uses Context7. analyze, migrate and build never call it.

Context7 works without an account or a key. If Context7 reports a rate limit, add your own API key as described below.

To add an API key:

  1. Get a key at https://context7.com.
  2. Open your own MCP settings in Kiro (not this repository's mcp.json).
  3. Add a headers entry to the context7 server: "Authorization": "Bearer <your key>".
  4. Save the settings and reconnect the server.

The key is never stored in this repository.

Jazzy dependency snapshot

Doctor ROS ships a Jazzy snapshot: the list of packages in the ros/rosdistro jazzy release file and the noble rosdep keys. It is package data in src/doctor_ros/data/jazzy-snapshot.json, so it works without a network. The Snapshot Date is 2026-11-30.

To refresh it, run this in a checkout (it needs a network):

uv run python dev/generate_jazzy_snapshot.py

What uses it:

  • analyze adds a "jazzy dependencies" table to migration/analysis.md and migration/analysis.json. Each dependency is workspace, renamed, on jazzy, system key, vendored or not on jazzy, with the Snapshot Date and a count per class.
  • migrate renames dependencies in package.xml and CMakeLists.txt with a rename table (for example move_base to nav2_bringup). Renames that need configuration work get a TODO marker with a link to the documentation.
  • build lists all missing rosdep keys at once, instead of stopping at the first one.

analyze, migrate and build stay deterministic and offline: they never call Context7, and they read the snapshot, not the network.

Conversion

analyze and migrate report success only when nothing is left to resolve, and incomplete otherwise. analyze counts unresolved names and lists each one. migrate counts open TODO markers. TODO markers are rescanned at the start of each stage, so a resolved marker is not reported open. Topics built with %, .format or f-strings over loop variables and parameters are reported as templates such as /{cart}/amcl_pose and are not counted as unresolved.

migrate converts:

  • Python: rospy to rclpy for time and duration, sleep (on the node clock), Rate, shutdown calls, wait_for_message, service clients, ROSInterruptException and ServiceException, and anonymous init_node. The default queue_size becomes depth 10, with a note. Blocking nodes spin in a MultiThreadedExecutor on a background thread. The move_base SimpleActionClient becomes a NavigateToPose ActionClient. gazebo_msgs model states map to ros_gz equivalents, otherwise a TODO names both. Unsupported constructs stay in place with a TODO.
  • Launch: each .launch becomes a .launch.xml in the same package, and references to the old name are rewritten. This covers includes, rosparam, use_sim_time (set_parameter), robot_state_publisher, the gazebo_ros world to a ros_gz_sim gz_sim include, spawn_model to ros_gz_sim create, and map_server, amcl and move_base to Nav2 with a generated Nav2 params file. move_base keys with no Nav2 mapping are reported and omitted. A file that fails to convert stays unchanged with a TODO.
  • Gazebo Harmonic: URDF, xacro and world files lose Gazebo Classic plugins, and one ros_gz_bridge YAML (cmd_vel, odom, tf, scan, clock) is generated per robot. A file that cannot be parsed stays unchanged and is reported.
  • Dockerfile and compose: Jazzy base image, ros-noetic-* to ros-jazzy-*, catkin to colcon. Compose files lose roscore and ROS_MASTER_URI, and roslaunch becomes ros2 launch.

Vendored dependencies

Some packages have no Jazzy release and are carried by Doctor ROS from a source table in src/doctor_ros/data/vendored_sources.py. The first entry is aws_robomaker_hospital_world, pinned to a commit with an overlay that removes the Gazebo Classic and pip requirements, fetches the Fuel models and sets GZ_SIM_RESOURCE_PATH. migrate writes fleet.repos from the table when the fleet depends on a vendored package, and analyze and migrate show those packages as vendored, not not on jazzy. An entry can also carry a ROS 1 source (ros1_branch, ros1_commit, same repository). verify clones it into the Noetic baseline workspace before rosdep and catkin_make, and clones and overlays the Jazzy source into the verify workspace the same way build does.

Build

build runs rosdep install and colcon build in one Jazzy container. Before colcon it clones each vendored package at its pinned commit and applies the overlay; a failure stops the build and names the package and the step. After colcon succeeds, build checks the fleet in the same container: py_compile on its Python files, a scan for leftover rospy, actionlib and tf (not tf2) in Python, package.xml, CMakeLists.txt and launch files, a parse of every launch file, and rosdep for build and exec keys with vendored packages counted as workspace packages. All failures are listed with path and line. build reports success only when colcon exits 0 and all four checks pass, so success means the fleet is converted. The scan also flags ROS 1 commands (roscore, rosrun, roslaunch, rosservice, rostopic, rospack, rosparam) left in a Dockerfile or compose file under the fleet source. Because the container only compiles, rosdep install installs build-time dependencies only (build, buildtool, build_export, buildtool_export and test). Runtime exec_depend packages are not installed, and the resolve step still reports missing runtime keys.

Each step has a 1800-second limit. To change it, set DOCTOR_ROS_BUILD_TIMEOUT (seconds) in the environment of the MCP server or CLI, for example DOCTOR_ROS_BUILD_TIMEOUT=3600. A value that is not a positive number is ignored. A timeout is reported as a process_timeout diagnostic that names the step and the limit.

Verify: per-robot launch and scenario

verify starts each robot from its compose service (package, launch file and key:=value arguments, for example robot.launch name:=linen_bot x:=-5.00). The launch files and arguments are recorded in migration/baseline/<robot_id>/topics.yaml under launch (ros1, ros2, ros1_args, ros2_args), and launch.ros2 follows the launch renames in migration/changes.json. A robot without a compose service falls back to the first launch file by name. Edit topics.yaml to override.

inputs.yaml scenario takes two optional fields for a robot launch that spawns the cart and runs its own localization and navigation:

scenario:
  world_launch:                 # launch that brings up the world and the map
    ros1: launch/hospital_sim.launch
    ros2: launch/hospital_sim.launch.xml
  robot_spawns_itself: true     # skip the harness spawn and Nav2 bringup

With them, the harness starts world_launch instead of the bare world, does not spawn the robot or start nav2_bringup, and waits for the robot's own move_base (ROS 1) or navigate_to_pose (ROS 2). world_launch replaces the classic_world, harmonic_world and map files, and robot_spawns_itself replaces robot_model. Without the fields nothing changes.

Gazebo Harmonic renders headless with software rendering (Xvfb and Mesa llvmpipe in the jazzy-sim image). If the lidar topic does not appear within 60 s, the scenario is UNRESOLVED with a gazebo reason. Rebuild the doctor-ros-noetic and doctor-ros-jazzy-sim images after updating, since their Dockerfiles changed.

Fleets in a subfolder

A fleet can live in a subfolder of a larger Git repository, for example example-fleets/hospital_fleets. Doctor ROS then asks for confirmation before it changes anything:

  • MCP: the tool returns the outcome subfolder_confirmation_required with the Git top level, the fleet prefix and the migration branch. Confirm with the user, then call the same tool again with confirm_subfolder: true.
  • CLI: the command asks a y/N question on a terminal. Pass --yes (or -y) to confirm in advance. When the CLI is not interactive and --yes is missing, it prints the same outcome and exits with code 1 without changing anything.

Details:

  • State is stored under <git dir>/doctor-ros/, keyed by the fleet folder, so it is never written inside the fleet folder.
  • Version 0.1.0 could leave a stray .git folder in the fleet subfolder. You can delete it yourself. Doctor ROS never reads it for state and never deletes it.
  • There is one migration branch per fleet folder, and only one branch is checked out per repository. Fleets in the same repository are migrated one after another.
  • Commits include only paths under the fleet folder.
  • Paths passed to fleet_config (--config on the CLI) must stay inside the fleet folder.

Release process

The authoritative version is src/doctor_ros/__about__.py (__version__). Hatchling reads that value for both distributions. Update it before a release. plugin.json (version), the doctor-ros-mcp==<version> pin in mcp.json and the uvx --from doctor-ros-mcp==<version> command in skills/open-dashboard/SKILL.md must carry the same version, and tests/test_power_package.py fails if any of them differs from __about__.py. The version in each skill's front matter is not checked, so update it by hand. Run the checks below, and create a tag whose name is v<version>.

Run the release checks from a clean checkout:

uv run pytest
uv build
uv run --with twine twine check dist/doctor_ros_mcp-<version>.tar.gz dist/doctor_ros_mcp-<version>-py3-none-any.whl

Inspect both artifacts before uploading them. Confirm that the metadata contains the expected version, Requires-Python: >=3.10, the PyYAML, tree-sitter and tree-sitter-cpp runtime dependencies, exactly the doctor-ros and doctor-ros-mcp console scripts, and doctor_ros/data/jazzy.Dockerfile. The package-data check must cover both the wheel and source archive.

A release candidate can be uploaded to TestPyPI after a TestPyPI account and upload credentials are available. The distribution name may need to be registered there first:

uv publish --publish-url https://test.pypi.org/legacy/ dist/doctor_ros_mcp-<version>.tar.gz dist/doctor_ros_mcp-<version>-py3-none-any.whl

From a directory outside this checkout, install and exercise the candidate with the TestPyPI index and the public index as a dependency fallback:

uvx --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ --from doctor-ros-mcp==<version> doctor-ros-mcp
uvx --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ --from doctor-ros-mcp==<version> doctor-ros verify --json

Send an MCP initialize request followed by tools/list to the first command and verify the six tools analyze, migrate, build, verify, fleet_config, and deploy. In the same outside-checkout environment, verify that from doctor_ros.resources import read_jazzy_dockerfile returns content containing FROM ros:jazzy, rosdep update, and colcon. These checks prove that stdio startup and installed package resources do not depend on a repository checkout.

.github/workflows/release.yml runs the test suite, builds both artifacts, checks them with Twine, and verifies the pushed v<version> tag against __about__.py. A separate publish job, which runs only on a manual workflow_dispatch run (a tag push runs the checks but does not publish) and is the only job allowed to request an OIDC identity token, publishes to PyPI with the trusted-publishing action; no PyPI token is stored. Configure the trusted publisher on PyPI with the workflow release.yml and the GitHub environment pypi, and create that environment in the repository settings, before starting the publish run. This repository does not claim any additional hosted deployment service.

Do not publish to real PyPI as part of ordinary development or TestPyPI validation. A real PyPI release requires explicit approval after the TestPyPI smoke checks pass. The 0.1.0 real-PyPI uvx check is intentionally a separate post-approval step.

Metadata

Release files for doctor-ros-mcp 1.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for doctor-ros-mcp 1.2.4
File Size Uploaded Provenance Actions
doctor_ros_mcp-1.2.4.tar.gz 594.8 kB With provenance Details for doctor_ros_mcp-1.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for doctor-ros-mcp 1.2.4
File Interpreter ABI Platform Actions
doctor_ros_mcp-1.2.4-py3-none-any.whl Python 3 none any Details for doctor_ros_mcp-1.2.4-py3-none-any.whl

Total release size: 996.6 kB

Release files / doctor_ros_mcp-1.2.4.tar.gz

Download URL doctor_ros_mcp-1.2.4.tar.gz
Size 594.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d546e17eaf396e02b02ee9d855115dbc7a9a7ef837556a8699b487b4df132b05
BLAKE2b-256 checksum
How to use checksums
3a0041e4e18651c379735807588f7ff9f048526fb006710f6b2a504e277c5f38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Release files / doctor_ros_mcp-1.2.4-py3-none-any.whl

Download URL doctor_ros_mcp-1.2.4-py3-none-any.whl
Size 401.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98bc302596c9178eff8c6d2b0ed8f4b97d7e9509d93b9c9e4c9d0709366f6b17
BLAKE2b-256 checksum
How to use checksums
4789cd1cd9870ea62c85add9cf289dee6e37e968d1ea97c79d657b1ddc97ad83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Security for doctor-ros-mcp 1.2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for doctor_ros_mcp-1.2.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page