- Flesh out docs/index.md, docs/config.md, docs/features/mcp.md, docs/features/kanban.md with full content and aligned tables - Fix .markdownlint-cli2.mjs config (rules were outside 'config' key) - Add packages/mcp as a standalone MCP server package - Update all pubspec descriptions - Implement DewCommand + CommandRegistry in core - Implement KanbanCommand and McpCommand stubs with registerCommands() - Wire CLI entry point using CommandRunner + CommandRegistry - Add 'melos run dew' script for running the CLI from workspace root - Update tests across core, kanban, mcp packages Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
19 lines
544 B
Dart
19 lines
544 B
Dart
import 'package:dew_mcp/dew_mcp.dart';
|
|
import 'package:dew_core/dew_core.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
void main() {
|
|
group('McpCommand', () {
|
|
test('has correct name and description', () {
|
|
final cmd = McpCommand();
|
|
expect(cmd.name, 'mcp');
|
|
expect(cmd.description, isNotEmpty);
|
|
});
|
|
|
|
test('registerCommands adds mcp command to registry', () {
|
|
final registry = CommandRegistry();
|
|
registerCommands(registry);
|
|
expect(registry.commands.map((c) => c.name), contains('mcp'));
|
|
});
|
|
});
|
|
}
|