dart-connect-dart-tooling-daemon

要连接到 Dart 工具守护程序以获取编辑器/运行时数据,请在使用相关 Dart 工具之前使用用户提供的 DTD URI 进行连接。

📖 中文导读:要连接到 Dart 工具守护程序以获取编辑器/运行时数据,请在使用相关 Dart 工具之前使用用户提供的 DTD URI 进行连接。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: dart-connect-dart-tooling-daemon description: "To connect to the Dart Tooling Daemon for editor/runtime data, connect using a user-provided DTD URI before using related Dart tools."

Usage

Use the MCP tool dev-swarm.request to send the payload as a JSON string:

{"server_id":"dart","tool_name":"connect_dart_tooling_daemon","arguments":{}}

Tool Description

Connects to the Dart Tooling Daemon. You should get the uri either from available tools or the user, do not just make up a random URI to pass. When asking the user for the uri, you should suggest the "Copy DTD Uri to clipboard" action. When reconnecting after losing a connection, always request a new uri first.

Arguments Schema

The schema below describes the arguments object in the request payload.

{
  "type": "object",
  "properties": {
    "uri": {
      "type": "string"
    }
  },
  "required": [
    "uri"
  ]
}

Background Tasks

If the tool returns a task id, poll the task status via the MCP request tool:

{"server_id":"dart","method":"tasks/status","params":{"task_id":"<task_id>"}}