ROS 2 Workspace Inspector MCP

ROS 2 Workspace Inspector MCP

ros2-workspace-inspector-mcp•bydoer0312

A local-first, read-only MCP server that provides structured static analysis of ROS 2 workspaces without requiring ROS 2.

License: Apache License 2.0•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Discovers ROS 2 packages, workspace layout, build types and basic manifest metadata.
  • •Analyzes package dependencies, internal dependency edges, topological order and dependency cycles.
  • •Statically analyzes Python, XML or YAML launch files without executing them, and inspects URDF structure or summarizes unexpanded Xacro.
  • •Runs a bounded, deduplicated workspace-wide diagnosis and exposes read-only resources and a guided review prompt.

BEST FOR

  • •Reviewing ROS 2 workspace structure, dependencies and interfaces from an MCP client.
  • •Analyzing launch files and robot descriptions without executing them.
  • •Guided quick, standard or deep review of a configured workspace.

ABOUT ROS2-WORKSPACE-INSPECTOR-MCP

ROS 2 Workspace Inspector MCP is cataloged as an MCP server attributed to doer0312. A local-first, read-only MCP server that provides structured static analysis of ROS 2 workspaces without requiring ROS 2. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Apache License 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for ROS 2 Workspace Inspector MCP are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the server execute ROS code, launch files or builds?

No; it inspects files only and does not control robots, run ROS nodes, build workspaces, execute launch or Xacro files, execute setup.py, or publish, call services or modify files.

How is access confined to a workspace?

The server is bound to one validated, canonical workspace directory, checks path containment rather than string prefixes, never traverses directory symlinks, and reads UTF-8 text with size limits.

What transport does the server support?

Only stdio is supported, and the process communicates via stdout using the MCP protocol.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 8f76be08f6e7 · 采集于 2026-11-13 13:20:04 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

ROS 2 Workspace Inspector MCP

License: Apache-2.0 Python 3.10+ CI

English | 简体中文

ROS 2 Workspace Inspector MCP is a local-first, read-only static-analysis MCP server that gives Codex, Claude Code, Cursor, and other MCP clients structured information about ROS 2 workspaces. Seven static-analysis tools cover discovery, package structure, dependencies, interfaces, launch files, robot descriptions, and bounded workspace diagnosis without requiring ROS 2. It also provides two compact read-only resources and one guided review prompt.

7 analysis tools · 2 read-only resource forms · 1 guided review prompt

The project inspects files only. It does not control robots, run ROS nodes, build workspaces, execute launch or Xacro files, execute setup.py, publish topics, call services or actions, or modify user files. All access stays inside the configured root sandbox. Only stdio is supported.

Tools

  • scan_workspace — Discover ROS 2 packages, workspace layout, build types, and basic manifest metadata.
  • inspect_package — Inspect a package's manifest, build configuration, executables, launch files, interfaces, robot descriptions, and tests.
  • analyze_dependencies — Analyze package dependencies, internal dependency edges, topological order, and dependency cycles.
  • inspect_interfaces — Parse and inspect ROS 2 Msg, Srv, and Action interface definitions.
  • analyze_launch_file — Statically analyze a Python, XML, or YAML ROS 2 launch file without executing it.
  • inspect_robot_description — Inspect URDF structure and statically summarize Xacro files without expanding or executing them.
  • diagnose_workspace — Run a consolidated, bounded diagnosis of the configured ROS 2 workspace.

Requirements and installation

  • Python 3.10 or newer
  • uv

Clone the repository, enter it, and create the locked environment:

git clone https://github.com/doer0312/ros2-workspace-mcp.git
cd ros2-workspace-mcp
uv sync --locked

Run against a local workspace:

uv run ros2-workspace-mcp --root /absolute/path/to/your/ros2_ws

The equivalent module entry point is:

uv run python -m ros2_workspace_mcp --root /absolute/path/to/your/ros2_ws

The process communicates via stdout using the MCP protocol. Do not redirect ordinary logs to stdout. Invalid CLI input is reported on stderr with a non-zero exit status.

Client configuration

Codex TOML:

[mcp_servers.ros2-workspace-inspector]
command = "uv"
args = ["--directory", "/absolute/path/to/ros2-workspace-mcp", "run", "ros2-workspace-mcp", "--root", "/absolute/path/to/your/ros2_ws"]

Claude Desktop JSON:

{
  "mcpServers": {
    "ros2-workspace-inspector": {
      "command": "uv",
      "args": ["--directory", "/absolute/path/to/ros2-workspace-mcp", "run", "ros2-workspace-mcp", "--root", "/absolute/path/to/your/ros2_ws"]
    }
  }
}

Copyable versions are available under examples/client-configs/. Both examples run the checked-out repository environment and do not assume a PyPI release.

Try the included static demo without installing ROS:

uv run ros2-workspace-mcp --root ./examples/demo_ws

Minimal request:

Scan the configured ROS 2 workspace and summarize its packages.

Guided review example:

Use review_ros2_workspace with depth="standard".

Available tools

The server exposes exactly seven tools:

  1. scan_workspace — discover packages and basic metadata.
  2. inspect_package — inspect one package's manifest, build files, executables, and file layout.
  3. analyze_dependencies — parse declarations and build a workspace dependency graph.
  4. inspect_interfaces — parse one package's .msg, .srv, and .action files.
  5. analyze_launch_file — statically analyze one Python, XML, or YAML launch file.
  6. inspect_robot_description — validate URDF or summarize unexpanded Xacro.
  7. diagnose_workspace — run a bounded, deduplicated workspace-wide diagnosis.

Example requests:

Use scan_workspace to inspect the configured ROS 2 workspace.
Inspect the package named demo_robot.
Analyze src/demo_robot/launch/demo.launch.py without running it.
Diagnose the configured workspace.

scan_workspace takes no arguments and scans only the workspace supplied with --root. A compact result looks like this:

{
  "layout": "colcon_workspace",
  "package_count": 1,
  "packages": [
    {
      "name": "demo_pkg",
      "relative_path": "src/demo_pkg",
      "build_type": "ament_python",
      "build_type_source": "inferred",
      "valid": true
    }
  ],
  "issues": []
}

The full result also includes server identity, canonical root and scan paths, package metadata, valid/invalid counts, duplicate names, and structured issues. See docs/tools.md.

Resources and prompt

  • ros2-workspace://summary is a fixed compact workspace summary.
  • ros2-workspace://package/{package_name} is a package context template with strict name validation and ambiguity errors.
  • review_ros2_workspace(focus="", depth="standard") guides quick, standard, or deep review using the seven tools without reading the workspace while the prompt is generated.

Resources are generated on read, have application/json MIME type, and never return raw project files. The server intentionally does not expose an arbitrary file resource, subscriptions, notifications, or filesystem watching. Client applications may display resources and prompts in different ways. See docs/resources.md and docs/prompts.md.

Security boundary

The server is bound to one validated, canonical workspace directory. Every file selected for reading is resolved and checked with path containment rather than string prefixes. Directory symlinks are never traversed; readable file symlinks must resolve inside the root. Text reads are UTF-8, size-limited, and centralized. Python is parsed with AST, XML with ElementTree, and YAML with safe_load; setup, launch, Xacro, CMake, and process declarations are never executed. See docs/security.md for the complete boundary.

Development

uv run ruff check .
uv run ruff format --check .
uv run pytest

Further documentation:

License

Licensed under the Apache License 2.0. See LICENSE.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for ROS 2 Workspace Inspector MCP from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/ros2-workspace-inspector-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools