基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/dart-lang/ai --skill add-mcp-feature命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | add_mcp_feature |
| description | Instructions for adding new features (tools, prompts, etc.) to the dart_mcp_server package. |
Follow these instructions when adding new tools, prompts, or other capabilities
to the dart_mcp_server.
All server features are implemented as mixins on the DartMCPServer at
pkgs/dart_mcp_server/lib/src/server.dart.
pkgs/dart_mcp_server/lib/src/mixins/
to see if your feature fits into an existing category (e.g., analyzer.dart,
pub.dart).initialize
method of the mixin, which is an override and must call super.initialize().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.Always add tests for any new features.
TestHarness class located in
pkgs/dart_mcp_server/test/test_harness.dart.pkgs/dart_mcp_server/test/tools/ for examples of
how to test specific tools.TestHarness lacks functionality needed
for your test, feel free to add it.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.README.md file as needed.CHANGELOG.md file to include any user facing updates.SKILL.md file if that would be helpful for future features.Find and close obsolete, stale, or not reproducible issues in the dart-lang/ai repository.
Instructions for updating the README.md file in the `dart_mcp_server` package.
Instructions for updating the supported Model Context Protocol (MCP) specification version in the `dart_mcp` package.