add_mcp_feature
Installation
SKILL.md
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
Related skills
More from dart-lang/ai
update mcp spec version
Instructions for updating the supported Model Context Protocol (MCP) specification version in the `dart_mcp` package.
3update dart_mcp_server readme.md file
Instructions for updating the README.md file in the `dart_mcp_server` package.
3closing-obsolete-issues
Find and close obsolete, stale, or not reproducible issues in the dart-lang/ai repository.
2