Token导航 LogoToken导航TokenDH.com
Devdash MCP logo
开发工具stdio官方级别未说明来源级核验

Devdash MCP

MCP Server

DevDash MCP Server 是一个为Claude Code提供开发和调试工具支持的Model Context Protocol (MCP)服务器,适用于QML Gauges和DevDash的开发和调试。

工具数

15

提示词数

0

GitHub Stars

0

资源数

0
开发工具调试工具PythonClaudeClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

devdash-project

提供方

devdash-project

最后核验

2026/5/17 20:22

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install -e .

详细介绍

DevDash MCP服务器

模型上下文协议(MCP)服务器为Claude Code提供DevDash开发和调试工具。

建筑

Claude Code CLI
      │
      │ MCP Protocol (stdio)
      ▼
┌─────────────────────────────────────────┐
│         devdash-mcp (Python)            │
│                                         │
│  ┌─────────────┐  ┌─────────────────┐   │
│  │ qml-gauges  │  │   Screenshot    │   │
│  │ (WebSocket) │  │     (X11)       │   │
│  └──────┬──────┘  └────────┬────────┘   │
│         │                  │            │
│  ┌──────┴──────┐  ┌────────┴────────┐   │
│  │   devdash   │  │    devdash      │   │
│  │ (Telemetry) │  │    (Logs)       │   │
│  └─────────────┘  └─────────────────┘   │
└─────────────────────────────────────────┘
         │                    │
         ▼                    ▼
┌─────────────────┐  ┌─────────────────┐
│  QML Gauges     │  │    DevDash      │
│   Explorer      │  │  (DevTools)     │
│  (port 9876)    │  │  (port 18080)   │
└─────────────────┘  └─────────────────┘

安装

# Install in development mode
pip install -e .

# Or install normally
pip install .

系统要求

通过X11进行屏幕截图:

# Ubuntu/Debian
sudo apt install wmctrl imagemagick scrot

配置

1.创建本地.env文件

复制示例配置并为您的设置进行自定义:

cd devdash-mcp
cp .env.example .env
# Edit .env with your paths

2.将MCP服务器添加到Claude Code

添加到 .mcp.json 在项目根目录中:

{
  "mcpServers": {
    "devdash": {
      "command": "python",
      "args": ["-m", "src.server"],
      "cwd": "/path/to/devdash-mcp"
    }
  }
}

环境变量

配置可以在中设置 .env 或作为环境变量:

变量默认值描述
DEVDASH_EXPLORER_WS_PORT9876浏览器WebSocket端口
DEVDASH_EXPLORER_WS_HOSTlocalhost资源管理器WebSocket主机
DEVDASH_DEVTOOLS_PORT18080DevTools HTTP API端口
DEVDASH_DEVTOOLS_HOST127.0.0.1DevTools HTTP API主机
DEVDASH_QML_GAUGES_PATH(必填)qml仪表库的绝对路径

可用工具

qml仪表库(qml仪表资源管理器)

工具说明
qml_explorer_build构建资源管理器(cmake-config+Build)
qml_explorer_launch使用正确的库路径启动资源管理器
qml_explorer_kill终止正在运行的资源管理器进程
qml_explorer_get_state获取当前页面和属性值
qml_explorer_navigate导航到组件页面
qml_explorer_get_property获取单个属性值
qml_explorer_set_property设置属性值
qml_explorer_list_properties列出带有元数据的可用属性

devdash-repo(通过HTTP API运行devdash)

工具说明
devdash_telemetry_get_state获取当前车辆遥测数据(RPM、temps等)
devdash_telemetry_get_warnings获取活动警告和警报
devdash_telemetry_list_windows通过DevTools列出DevDash窗口
devdash_telemetry_screenshot通过DevTools API截取截图
devdash_logs_get通过过滤(级别、类别、计数)检索日志

系统(X11窗口捕获-适用于任何窗口)

工具说明
screenshot_list_windows列出可用窗口
screenshot_capture将窗口捕获为PNG格式

用法示例

User: What QML Gauges windows are open?
Claude: [uses screenshot_list_windows] The DevDash Gauges Explorer is running.

User: Show me the explorer window
Claude: [uses screenshot_capture with window="explorer"] Here's the current view...

User: Navigate to the GaugeTick page
Claude: [uses qml_explorer_navigate with page="GaugeTick"] Navigated to GaugeTick.

User: What properties are available?
Claude: [uses qml_explorer_list_properties] Here are the available properties...

User: Set the tick color to red
Claude: [uses qml_explorer_set_property with name="color", value="#ff0000"] Done.

User: What's the current RPM?
Claude: [uses devdash_telemetry_get_state] Current RPM is 3500...

发展

项目结构

devdash-mcp/
├── src/
│   ├── __init__.py
│   ├── server.py           # FastMCP entry point
│   ├── config.py           # Configuration management
│   └── tools/
│       ├── __init__.py
│       ├── explorer.py     # qml-gauges: QML Gauges Explorer (WebSocket)
│       ├── screenshot.py   # System: X11 window capture
│       ├── telemetry.py    # devdash: Runtime telemetry (HTTP)
│       └── logs.py         # devdash: Application logs (HTTP)
├── pyproject.toml
└── README.md

添加新工具

  1. 在中创建新文件 src/tools/ 或添加到现有类别
  2. 创建 register_*_tools(mcp: FastMCP) 功能
  3. 在中添加导入和注册 src/tools/__init__.py
  4. 注册于 src/server.py

例子:

from mcp.server.fastmcp import FastMCP

def register_my_tools(mcp: FastMCP) -> None:
    @mcp.tool()
    def my_tool(param: str) -> dict:
        """Tool description."""
        return {"result": param}

故障排除

“无法连接到QML仪表资源管理器”

  • 确保QML仪表资源管理器正在运行: cd qml-gauges && ./build/explorer/qml-gauges-explorer
  • 检查WebSocket端口(默认值:9876)

“无法连接到DevDash”

  • 确保DevDash正在运行: cd devdash && ./build/dev/devdash --profile profiles/haltech-vcan.json
  • 检查HTTP端口(默认值:18080)

“找不到窗口”

  • 使用 screenshot_list_windows 查看可用窗口
  • 窗口匹配是不区分大小写的子字符串搜索

“未能捕获屏幕截图”

  • 安装 imagemagickscrot
  • 确保窗口未最小化

目录标签

目录标签

开发工具调试工具PythonClaude本地部署QMLGaugesDevDashMCP协议

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

15

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP