An assistant editing Dart source and an application calling an AI model are different systems. Development tooling can expose analyzer and test operations; a shipped backend still needs its own model provider, data validation and authorization design.
Verify the local SDK tool
dart --version
dart mcp-server --help
dart analyze
dart test
Configure a compatible client through its supported local MCP configuration. The Dart/Flutter MCP setup shows the command and client-schema distinction. Open the correct project root and verify a real diagnostic before assuming the assistant has project-aware access.
Add knowledge without hiding the verification step
Project rules describe persistent conventions. Skills describe task-specific procedures. Package skills can supply package-version-specific guidance. MCP tools inspect or act on live project state. None of these makes an unrun test a passing test.
Use a bounded prompt such as “Fix this parser’s handling of a missing ID, preserve accepted valid responses and run its focused test.” Review the diff and the actual command result. Avoid asking an assistant to rewrite an entire package just to resolve one diagnostic.
Keep runtime AI separate
For a Dart agent backend, Genkit is an option for flows and tools. A production model call still needs credentials kept server-side, input/output validation, quotas and an evaluation plan. The Genkit architecture lesson connects that runtime boundary to Flutter clients.
Exercise
Use an assistant to diagnose one controlled type error in a disposable branch. Verify the fix with the analyzer and a behavioral test. Record what was inspected, changed and actually executed. Then explain which responsibilities would still be needed to add an AI feature to the running task API.