Agent skill

Add Dart MCP Server Feature

by dart-lang in dart-lang/ai

Instructions for adding new features (tools, prompts, etc.) to the dartmcpserver package.

BSD-3-ClauseAuto-check passedAgent Workflows

Install Add Dart MCP Server Feature

skills CLI
$ npx skills add dart-lang/ai --skill add-dart-mcp-server-feature -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dart-lang/ai add-dart-mcp-server-feature --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dart-lang/ai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/add-dart-mcp-server-feature .claude/skills/add-dart-mcp-server-feature && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
add-dart-mcp-server-feature
GitHub stars
286
Token cost
~687 tokens
SKILL.md length
336 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Instructions for adding new features (tools, prompts, etc.) to the dartmcpserver package.

  • Works in 6 steps: Locate or Create a Mixin → Implementation Details → Testing → …
  • Tasks that involve MCP servers
  • SKILL.md covers 1. Locate or Create a Mixin, 2. Implementation Details, 3. Testing and 4. Verification, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Add Dart MCP Server Feature is an agent skill from dart-lang/ai. Instructions for adding new features (tools, prompts, etc.) to the dartmcpserver package.

Its SKILL.md is about 690 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering MCP servers. It works with Model Context Protocol and Dart. The repository describes itself as: A general repository for AI / GenAI packages and explorations. The licence is BSD-3-Clause.

When your agent uses it

  • Tasks that involve MCP servers

Example prompts

  • “Use the add-dart-mcp-server-feature skill to instruction for adding new features (tools, prompts, etc.) to the dartmcpserver package”
  • “/add-dart-mcp-server-feature”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Locate or Create a Mixin
  2. Implementation Details
  3. Testing
  4. Verification
  5. Documentation
  6. Update this skill

What it can do on your machine

Read from SKILL.md and the folder at commit 60a4b18. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Add Dart MCP Server Feature loads about 687 tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 336 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~687

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from dart-lang/ai at commit 60a4b18, republished under its BSD-3-Clause licence (© dart-lang). 336 words, ~687 tokens.

Download SKILL.mdSave it as .claude/skills/add-dart-mcp-server-feature/SKILL.md (or your agent's skills folder).
name
add-dart-mcp-server-feature
description
Instructions for adding new features (tools, prompts, etc.) to the dart_mcp_server package.
internal
true

Adding Features to dart_mcp_server

Follow these instructions when adding new tools, prompts, or other capabilities to the dart_mcp_server.

1. Locate or Create a Mixin

All server features are implemented as mixins on the DartMCPServer at pkgs/dart_mcp_server/lib/src/server.dart.

  • Check existing mixins: Look under pkgs/dart_mcp_server/lib/src/mixins/ to see if your feature fits into an existing category (e.g., analyzer.dart, pub.dart).
  • Create a new mixin: If your feature is distinct, create a new file in that directory, following the patterns in existing mixins. Make sure to include a copyright header at the top of the file, with the current year.

2. Implementation Details

  • Registration: Tools, prompts, etc should be registered in the initialize method of the mixin, which is an override and must call super.initialize().
  • Parameter Names: When adding new arguments to tools or prompts, always add a constant to the ParameterNames extension in pkgs/dart_mcp_server/lib/src/utils/names.dart and use that constant instead of hardcoding string literals in your tool parsing and schema.
  • Analytics: Never send raw strings from the client to analytics. Tools with a command parameter must declare its values with an enum (for example EnumSchema.untitledSingleSelect), because only those values are included in the logged tool name. Similarly, new prompts must be added to the PromptNames enum, because only those prompt names are logged. Create analytics events with createDartMCPEvent from pkgs/dart_mcp_server/lib/src/utils/analytics.dart, which sanitizes the client info.

3. Testing

Always add tests for any new features.

  • Test Harness: Use the TestHarness class located in pkgs/dart_mcp_server/test/test_harness.dart.
  • Existing Tests: Look at pkgs/dart_mcp_server/test/tools/ for examples of how to test specific tools.
  • Enhance Harness: If the current TestHarness lacks functionality needed for your test, feel free to add it.

4. Verification

  • Run tests
  • Run analysis
  • Format the code

5. Documentation

  • Run the pkgs/dart_mcp_server/tool/update_readme.dart script to update the README.md file with any new features, it must be ran from the pkgs/dart_mcp_server directory.
  • Apply any other manual edits to the README.md file as needed.
  • Update the CHANGELOG.md file to include any user facing updates.

6. Update this skill

  • Update this SKILL.md file if that would be helpful for future features.

© dart-lang, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/add-dart-mcp-server-feature of dart-lang/ai.

Open the folder on GitHubat commit 60a4b18

Compare with similar skills

Add Dart MCP Server Feature next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Add Dart MCP Server Feature compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Dart MCP Server Feature this skilldart-lang/ai286—~687Automated safety check: PassBSD-3-Clause
MCP Dart Clientleehack/mcp_dart116—~1.8kAutomated safety check: PassMIT
MCP Dart Serverleehack/mcp_dart116—~4.1kAutomated safety check: PassMIT
MCP Developerleehack/mcp_dart116—~770Automated safety check: PassMIT
MCP Debuggerdebugmcp/mcp-debugger174—~4.2kAutomated safety check: PassMIT
MCP Dart Streamable HTTPleehack/mcp_dart116—~2kAutomated safety check: PassMIT

Similar skills

  • MCP Dart Client

    leehack/mcp_dart

    A skill your agent uses when connecting a Dart or Flutter app to a Model Context Protocol (MCP) server with mcpdart: creating an McpClient, launching a local server over stdio or reaching a remote…

    116 GitHub stars~1.8k tokensUpdated 5 days ago
    Agent WorkflowsAuto-check passed
  • MCP Dart Server

    leehack/mcp_dart

    A skill your agent uses when building or extending a Model Context Protocol (MCP) server in Dart with mcpdart: structuring the project, creating an McpServer, adding tools, resources, resource…

    116 GitHub stars~4.1k tokensUpdated 5 days ago
    Agent WorkflowsAuto-check passed
  • MCP Developer

    leehack/mcp_dart

    A skill your agent uses when building, testing, debugging, or reviewing Model Context Protocol servers, clients, transports, tools, resources, prompts, and agent host configuration.

    116 GitHub stars~770 tokensUpdated 5 days ago
    Agent WorkflowsAuto-check passed
  • MCP Debugger

    debugmcp/mcp-debugger

    A skill your agent uses when investigating a bug, failing test, or unexpected runtime behavior and the mcp-debugger MCP server is available — drives real step-through debuggers (breakpoints, stack…

    174 GitHub stars~4.2k tokensUpdated today
    DevelopmentAuto-check passed
  • MCP Dart Streamable HTTP

    leehack/mcp_dart

    A skill your agent uses when serving an MCP server over HTTP with mcpdart or connecting to a remote one: StreamableMcpServer setup, Host and Origin allowlists (DNS rebinding protection), CORS for…

    116 GitHub stars~2k tokensUpdated 5 days ago
    Backend & APIsAuto-check passed
  • Flutter MCP E2E Harness

    Arenukvern/mcp_flutter

    A skill your agent uses when writing or running repeatable E2E scenarios for Flutter apps as checked-in Dart with the fluttermcpharness package (packages/harness) — build/launch the app, attach to…

    387 GitHub stars~2.2k tokensUpdated 8 days ago
    MobileAuto-check passed

More from dart-lang/ai

  • Find and close obsolete, stale, or not reproducible issues in the dart-lang/ai repository.

    286 GitHub stars~794 tokensUpdated 3 days ago
    Auto-check passed
  • Instructions for updating the supported Model Context Protocol (MCP) specification version in the dartmcp package.

    286 GitHub stars~1.1k tokensUpdated 3 days ago
    Auto-check passed

Categories

Questions about Add Dart MCP Server Feature

What does Add Dart MCP Server Feature do?

Instructions for adding new features (tools, prompts, etc.) to the dartmcpserver package. Add Dart MCP Server Feature is an agent skill from dart-lang/ai.) to the dartmcpserver package.

When should I use Add Dart MCP Server Feature?

Add Dart MCP Server Feature fits situations like: tasks that involve MCP servers.

How do I install Add Dart MCP Server Feature in Claude Code?

Run `npx skills add dart-lang/ai --skill add-dart-mcp-server-feature -a claude-code`. Or copy the skill folder (.agents/skills/add-dart-mcp-server-feature in dart-lang/ai) into .claude/skills/add-dart-mcp-server-feature in your project. Claude Code loads it when a task matches its description.

How do I install Add Dart MCP Server Feature in Codex?

Run `npx skills add dart-lang/ai --skill add-dart-mcp-server-feature -a codex`. Or copy the skill folder (.agents/skills/add-dart-mcp-server-feature in dart-lang/ai) into .agents/skills/add-dart-mcp-server-feature in your project. Codex loads it when a task matches its description.

Can I use Add Dart MCP Server Feature in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dart-lang/ai --skill add-dart-mcp-server-feature -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-dart-mcp-server-feature, .gemini/skills/add-dart-mcp-server-feature, .github/skills/add-dart-mcp-server-feature and .opencode/skills/add-dart-mcp-server-feature in your project.

What does Add Dart MCP Server Feature need to run?

SKILL.md names no scripts, command-line tools or credentials: Add Dart MCP Server Feature is instructions for the agent only.

Does Add Dart MCP Server Feature access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Add Dart MCP Server Feature safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Add Dart MCP Server Feature use?

Add Dart MCP Server Feature is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Add Dart MCP Server Feature use?

About 687 tokens (SKILL.md is roughly 2.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Add Dart MCP Server Feature?

Skills that share tags, products or a category with Add Dart MCP Server Feature: MCP Dart Client (leehack/mcp_dart, 116 stars), MCP Dart Server (leehack/mcp_dart, 116 stars), MCP Developer (leehack/mcp_dart, 116 stars) and MCP Debugger (debugmcp/mcp-debugger, 174 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Dart MCP Server Feature?

dart-lang (a GitHub organization) maintains it in dart-lang/ai, which has 286 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 7, 2026.

Source: dart-lang/ai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.