todo-app/mcp/todo_mcp.dart
Krzysztof kuhy Rudnicki 2a9332094a
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
file-length / file length <= 250 lines (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
MCP: Dart task server replaces Python todo_mcp
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-02 09:36:44 +01:00

16 lines
341 B
Dart

import 'dart:async';
import 'dart:io';
import 'package:todo/mcp/mcp_main.dart';
Future<void> main() async {
final stop = await startTodoMcp(Platform.environment, stderr);
if (stop == null) exit(1);
await Future.any([
ProcessSignal.sigterm.watch().first,
ProcessSignal.sigint.watch().first,
]);
await stop();
exit(0);
}