From flutter-mcp-toolkit
Migrates Flutter app code from removed MCPCallEntry to AgentCallEntry after mcp_toolkit hard cut. Use when upgrading mcp_toolkit, fixing compile errors, or running flutter-mcp-toolkit migrate agent-entries.
How this skill is triggered — by the user, by Claude, or both
Slash command
/flutter-mcp-toolkit:flutter-mcp-toolkit-intentcall-migrationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- @FMT_MODE_PRELUDE -->
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.6.0 dependencies for committed consumer state.flutter pub get and migrate agent-entries --check again after dependency changes.make check-intentcall-hosted-consumer for hosted mcp_flutter proof; use make check-intentcall-sibling-matrix only for deliberate local IntentCall checkout matrix proof. The historical make check-intentcall-integration target is a compatibility alias for the sibling-matrix lane, not a fresh-adopter hosted gate.flutter-mcp-toolkit-custom-tools — authoring AgentCallEntry surfacesflutter-mcp-toolkit-repo-maintainer — CHANGELOG, version pins, sync-skillsnpx claudepluginhub arenukvern/mcp_flutter --plugin flutter-mcp-toolkitMaintains mcp_flutter releases, CHANGELOG, version pins, and CI. Use when cutting a release, bumping VERSION, or updating install/docs.
Migrates Flutter applications using flutter_monaco from version 2.x to 3.x, handling API changes, persisted options, and platform-specific wrappers. Also supports 1.7.1 after prerequisite verification.
Provides Flutter 3.44.0 compatibility references and migration guidance for Flutter and Dart codebases, covering platform embedding, tooling, widgets, and breaking changes.