Skip to content

Commit 1fced92

Browse files
committed
Reword roots schema description
1 parent 62234f7 commit 1fced92

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pkgs/dart_mcp_server/lib/src/mixins/dash_cli.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ base mixin DashCliSupport on ToolsSupport, LoggingSupport, RootsTrackingSupport
162162
description: 'Runs `dart fix --apply` for the given project roots.',
163163
annotations: ToolAnnotations(title: 'Dart fix', destructiveHint: true),
164164
inputSchema: Schema.object(
165-
properties: {ParameterNames.roots: rootsSchema()},
165+
properties: {ParameterNames.roots: rootsSchema(knownRoots: knownRoots)},
166166
),
167167
);
168168

pkgs/dart_mcp_server/lib/src/utils/cli_utils.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,11 @@ ListSchema rootsSchema({bool supportsPaths = false}) => Schema.list(
285285
);
286286

287287
final rootSchema = Schema.string(
288-
title: 'The URI of the project root to run this tool in.',
288+
title: 'The file URI of the project root to run this tool in.',
289289
description:
290290
'This must be equal to or a subdirectory of one of the roots '
291-
'returned by a call to "listRoots".',
291+
'allowed by the client. Must be a URI with a `file:` '
292+
'scheme (e.g. file:///absolute/path/to/root) ',
292293
);
293294

294295
/// Very thin extension type for a pubspec just containing what we need.

0 commit comments

Comments
 (0)