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.

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 my_hospital_fleet: three service robots in the AWS RoboMaker hospital world, using Gazebo and move_base.

The second fleet is hospital_fleets: three carts in the same 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. It lives in the example-fleets repository, and the examples/ submodule pin can lag behind it.

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.1.1 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 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.

Fleets in a subfolder

A fleet can live in a subfolder of a larger Git repository, for example example-fleets/my_hospital_fleet. 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.1.1

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.1.1
File Size Uploaded Provenance Actions
doctor_ros_mcp-1.1.1.tar.gz 473.7 kB With provenance Details for doctor_ros_mcp-1.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 796.2 kB

Release files / doctor_ros_mcp-1.1.1.tar.gz

Download URL doctor_ros_mcp-1.1.1.tar.gz
Size 473.7 kB
Tags Source
SHA-256 checksum
How to use checksums
990b731899df2f4a34aa09e38dea054a461aa58609768127bd7c6f703482cb81
BLAKE2b-256 checksum
How to use checksums
55e366c0b6901cdbe932d934ed9aa40f6be4bd2c0173995a77143188290879db
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 1, 2026.

Transparency log

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

Download URL doctor_ros_mcp-1.1.1-py3-none-any.whl
Size 322.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41642827e50eac83273dec49b20b9e158d90c0545e0aad1564062111f61ff13a
BLAKE2b-256 checksum
How to use checksums
67867159b8b67c155c2496b69f23a282aca72f308f746d44495d2d9745b86465
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 1, 2026.

Transparency log

Security for doctor-ros-mcp 1.1.1

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.1.1.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 1, 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