Invoke dart/flutter in a more robust way (#143)

Closes https://github.com/dart-lang/ai/issues/33

Adds --dart-sdk and --flutter-sdk arguments to the CLI, falling back on DART_SDK and FLUTTER_SDK environment variables, and finally `Platform.resolvedExecutable`.

The flutter SDK will also be looked up relative to the Dart SDK, if a location is not given by command line arg or environment.
12 files changed
tree: 18c8bdfe3c8ab65edcc57d6f0eabcb7bc2132f76
  1. .github/
  2. .vscode/
  3. mcp_examples/
  4. pkgs/
  5. .gitignore
  6. CONTRIBUTING.md
  7. LICENSE
  8. README.md
README.md

Overview

A general repository for AI / GenAI packages and explorations.

Packages

PackageDescriptionIssuesVersion
dart_mcpA package for making MCP servers and clients.issuespub package
dart_mcp_serverAn MCP server for Dart projects, exposing various developer tools to AI models.issuesn/a