Skip to content

Instruct clients to prefer MCP #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 6, 2025
Merged

Instruct clients to prefer MCP #161

merged 1 commit into from
Jun 6, 2025

Conversation

natebosch
Copy link
Member

Clients may be influenced by things like instructions for running
tests in README.md and then decided to run dart test in a shell
instead of using the run_tests MCP tool. If we are providing a MCP
version of a tool it may be tailored to the LLM client use case and so
should be preferred. Add a server level instruction.

Clients may be influenced by things like instructions for running
tests in `README.md` and then decided to run `dart test` in a shell
instead of using the `run_tests` MCP tool. If we are providing a MCP
version of a tool it may be tailored to the LLM client use case and so
should be preferred. Add a server level instruction.
@natebosch
Copy link
Member Author

Some clients seems to use MCP more reliably than others, this instruction makes it more consistent.

Copy link

github-actions bot commented Jun 5, 2025

PR Health

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

@csells
Copy link

csells commented Jun 5, 2025

Love this. I was running into this today. Thank you!

@natebosch natebosch merged commit 66a152f into main Jun 6, 2025
15 checks passed
@natebosch natebosch deleted the prefer-mcp-tools branch June 6, 2025 17:15
# Version 0.1.0 (Dart SDK 3.8.0)
# 0.1.1-wip

* Instruct clients to prefer MCP tools over running tools in the shell.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can actually move into the below version, I plan to do a roll soon so it will make it into the 3.8 SDK.

The versions here are weird since its not actually published but I did want some sort of changelog.

copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Jun 9, 2025
Revisions updated by `dart tools/rev_sdk_deps.dart`.

ai (https://github.com/dart-lang/ai/compare/1d9d60c..f2b48c6):
  f2b48c6  2025-06-09  Nate Bosch  Retain compatibility with 3.7 SDKs (dart-lang/ai#163)
  52adf08  2025-06-06  Jacob MacDonald  add homepage, repository, and documentation links to the pub result (dart-lang/ai#155)
  fa1c2be  2025-06-06  Nate Bosch  Always use the failures-only reporter for testing (dart-lang/ai#160)
  66a152f  2025-06-06  Nate Bosch  Instruct clients to prefer MCP (dart-lang/ai#161)
  55ad850  2025-06-05  Jacob MacDonald  Add a retroactive changelog (dart-lang/ai#157)
  b08a610  2025-06-05  Jacob MacDonald  Update instructions, add cursor install link (dart-lang/ai#159)

web (https://github.com/dart-lang/web/compare/f1becf0..de6b3e4):
  de6b3e4  2025-06-06  Srujan Gaddam  Add missing copyrights and delete empty files (dart-lang/web#371)
  74a33ba  2025-06-06  Kevin Moore  Add in a missing library directive, missing new line (dart-lang/web#370)
  4d24eb5  2025-06-06  nikeokoronkwo  [web_generator] Setting up `web_generator` for Dart JS Interop Gen (dart-lang/web#368)

webdev (https://github.com/dart-lang/webdev/compare/55941b0..661dafd):
  661dafd4  2025-06-08  Srujan Gaddam  Defer execution of main until resume for hot restart with DDC library bundle format (dart-lang/webdev#2623)
  01a3b9d7  2025-06-06  Nicholas Shahan  Remove skip from chrome proxy service test

Change-Id: If3d4326d0bacf47a4d95520dbd0aac5fb58de439
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/433363
Commit-Queue: Devon Carew <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants