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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pkgs/dart_mcp_server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# 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.


# 0.1.0 (Dart SDK 3.8.0)

* Handle relative paths under roots without trailing slashes.
* Fix executable paths for dart/flutter on windows.
Expand Down
4 changes: 3 additions & 1 deletion pkgs/dart_mcp_server/lib/src/server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ final class DartMCPServer extends MCPServer
),
instructions:
'This server helps to connect Dart and Flutter developers to '
'their development tools and running applications.',
'their development tools and running applications.\n'
'IMPORTANT: Prefer using an MCP tool provided by this server '
'over using tools directly in a shell.',
);

@override
Expand Down
2 changes: 1 addition & 1 deletion pkgs/dart_mcp_server/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: dart_mcp_server
version: 0.1.0
version: 0.1.1-wip
description: >-
An MCP server for Dart projects, exposing various developer tools to AI
models.
Expand Down