File tree Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ vars = {
131
131
### /third_party/pkg dependencies
132
132
# 'tools/rev_sdk_deps.dart' will rev pkg dependencies to their latest; put an
133
133
# EOL comment after a dependency to instead pin at the current revision.
134
- "ai_rev" : "5f9c50fc93c978e059a3ab2a071faeca6f81fd68 " ,
134
+ "ai_rev" : "706d22444f2ca6123aeb8f1f4508b1d4451b6d0d " ,
135
135
"core_rev" : "b59ecf4ceebe6153e1c0166b7c9a7fdd9458a89d" ,
136
136
"dartdoc_rev" : "f1fe17752b1193ad52d69271ceb686cc3e4712b0" ,
137
137
"ecosystem_rev" : "d5233c6dd0767cffa5742e32c4bc7c230c9c4b12" ,
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ group("dart_mcp_server_aot") {
13
13
}
14
14
15
15
aot_snapshot (" dart_mcp_server_aot_snapshot" ) {
16
- main_dart = " ../../third_party/pkg/ai/pkgs/ dart_mcp_server/bin/main .dart"
16
+ main_dart = " dart_mcp_server.dart"
17
17
output = " $root_gen_dir /dart_mcp_server_aot.dart.snapshot"
18
18
}
19
19
20
20
aot_snapshot (" dart_mcp_server_aot_product_snapshot" ) {
21
- main_dart = " ../../third_party/pkg/ai/pkgs/ dart_mcp_server/bin/main .dart"
21
+ main_dart = " dart_mcp_server.dart"
22
22
output = " $root_gen_dir /dart_mcp_server_aot_product.dart.snapshot"
23
23
24
24
# dartaotruntime has dart_product_config applied to it,
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2
+ // for details. All rights reserved. Use of this source code is governed by a
3
+ // BSD-style license that can be found in the LICENSE file.
4
+
5
+ /// A custom entrypoint used by `dart mcp-server` . Injects an analytics instance
6
+ /// using the [DashTool.dartTool] tool.
7
+ library ;
8
+
9
+ import 'dart:io' ;
10
+
11
+ import 'package:dart_mcp_server/dart_mcp_server.dart' ;
12
+ import 'package:unified_analytics/unified_analytics.dart' ;
13
+
14
+ void main (List <String > args) async {
15
+ exitCode = await DartMCPServer .run (
16
+ args,
17
+ analytics: Analytics (
18
+ tool: DashTool .dartTool,
19
+ // The actual version is part up to the first space.
20
+ dartVersion: Platform .version.split (' ' ).first,
21
+ ),
22
+ );
23
+ }
You can’t perform that action at this time.
0 commit comments