dart-remove-roots

To remove previously registered Dart project roots, revoke tool access by removing those roots.

⭐6stars🔀3forks📁View on GitHub🕐Updated Jan 7, 2026⬇️1downloads

When & Why to Use This Skill

This Claude skill enables precise management of Dart development environments by allowing the removal of previously registered project roots. It helps optimize the performance of Dart analysis tools and ensures the AI agent maintains a clean and relevant workspace by revoking access to directories that are no longer needed.

Use Cases

  • Workspace Cleanup: Remove completed or obsolete Dart projects from the active session to reduce memory overhead and improve analysis speed.
  • Access Revocation: Securely revoke the AI agent's access to specific project directories by removing their URIs from the registered tool roots.
  • Context Management: Streamline multi-project workflows by clearing out irrelevant project roots when switching between different Dart codebases to prevent cross-project interference.
namedart-remove-roots
description"To remove previously registered Dart project roots, revoke tool access by removing those roots."

Usage

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

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

Tool Description

Removes one or more project roots previously added via the add_roots tool.

Arguments Schema

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

{
  "type": "object",
  "properties": {
    "uris": {
      "type": "array",
      "description": "All the project roots to remove from this server.",
      "items": {
        "type": "string",
        "description": "The URIs of the roots to remove."
      }
    }
  }
}

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>"}}