- Add McpTool + McpToolProvider interface to core - Add McpToolRegistry to mcp package (aggregates providers) - Add DewMcpServer (MCPServer + ToolsSupport via dart_mcp 0.5.0) - Add 'mcp serve' subcommand — starts a real stdio MCP server - Implement KanbanToolProvider with 5 tools: kanban_create_ticket, kanban_list_tickets, kanban_get_ticket, kanban_update_ticket, kanban_delete_ticket - Wire McpToolRegistry + KanbanToolProvider in CLI - 26 tests passing, dart analyze clean Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
19 lines
563 B
Dart
19 lines
563 B
Dart
library;
|
|
|
|
export 'src/dew_mcp_base.dart';
|
|
export 'src/mcp_tool_registry.dart';
|
|
|
|
import 'package:dew_core/dew_core.dart';
|
|
import 'package:dew_mcp/src/dew_mcp_base.dart';
|
|
import 'package:dew_mcp/src/mcp_tool_registry.dart';
|
|
|
|
/// Registers the MCP command into [commandRegistry].
|
|
///
|
|
/// [toolRegistry] is passed to [McpCommand] so the `serve` subcommand can
|
|
/// start the server with all registered tool providers.
|
|
void registerCommands(
|
|
CommandRegistry commandRegistry,
|
|
McpToolRegistry toolRegistry,
|
|
) {
|
|
commandRegistry.register(McpCommand(toolRegistry));
|
|
}
|