用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill flutter-mcp-toolkit-intentcall-migration命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | flutter-mcp-toolkit-intentcall-migration |
| description | >- Use when this capability is needed. |
MCPCallEntry is removed from mcp_toolkit. App code must use
AgentCallEntry (from intentcall_core, re-exported by mcp_toolkit).
Canonical migration doc: migration_mcp_call_entry_to_agent_call_entry.md
dart analyze reports undefined MCPCallEntry after upgrading mcp_toolkitmcp_toolkit bump to consumers# Preview (exit 1 if changes pending)
flutter-mcp-toolkit migrate agent-entries --check lib/
# Apply
flutter-mcp-toolkit migrate agent-entries --write lib/
flutter-mcp-toolkit migrate agent-entries --write --namespace my_app lib/main.dart
Alias: migrate mcp-call-entry (same behavior).
MCPToolkitBinding.addEntries(entries: Set<AgentCallEntry>)bootstrapFlutter(additionalEntries: { ... })addMcpTool(AgentCallEntry) — still a shortcut for a single entryHandlers should return AgentResult (AgentResult.success / AgentResult.failure).
For legacy MCPCallResult + MCPToolDefinition handlers, use mcpToolkitTool /
mcpToolkitResource (see flutter-mcp-toolkit-custom-tools).
// BEFORE (removed in Phase 6b)
final tool = MCPCallEntry.tool(
handler: (request) async => MCPCallResult(
message: 'ok',
parameters: {'n': request['n']},
),
definition: MCPToolDefinition(
name: 'my_tool',
description: 'Example',
inputSchema: {'type': 'object', 'properties': {}},
),
);
import 'package:mcp_toolkit/mcp_toolkit.dart';
final tool = AgentCallEntry.tool(
namespace: 'app',
name: 'my_tool',
description: 'Example',
inputSchema: const {
'type': 'object',
'additionalProperties': false,
'properties': {'n': {'type': 'string'}},
'required': ['n'],
},
handler: (final args) async {
final n = args['n']?.toString() ?? '';
return AgentResult.success(
message: 'ok',
data: {'n': n},
);
},
);
await MCPToolkitBinding.instance.addEntries(entries: {tool});
After tool surfaces compile:
flutter-mcp-toolkit codegen sync --platform web
flutter-mcp-toolkit codegen sync --platform android,ios,macos --check
See docs/platform-notes/android-oem.md for Xiaomi/Huawei (same shortcuts XML as AOSP).
fmt_migrate_agent_entries is shipped (report-only by default; apply: true to
rewrite). CLI equivalent: flutter-mcp-toolkit migrate agent-entries.
flutter-mcp-toolkit migrate agent-entries --check on flutter_test_app/libmake sync-skills after any plugin/skills/ editcd mcp_server_dart && dart test test/contract/MCPCallEntry in skills except this file's BEFORE examplesIntentCall now lives outside this repository. Normal consumer state uses hosted intentcall_* packages.
intentcall_*: ^0.1.0 dependencies for committed consumer state./Users/anton/mcp/agentkit.flutter pub get and migrate agent-entries --check again after dependency changes.make check-intentcall-integration in mcp_flutter; package matrix ownership lives in the IntentCall repo.flutter-mcp-toolkit-custom-tools — authoring AgentCallEntry surfacesflutter-mcp-toolkit-repo-maintainer — CHANGELOG, version pins, sync-skillsSource: Arenukvern/mcp_flutter — distributed by TomeVault.