dew/packages/mcp
Chris Hendrickson bb93f7570e Fix MCP serve: remove stdin conflict and premature ProjectContext call
Two bugs caused immediate connection close:
1. ProjectContext.find() at startup crashed if cwd wasn't a project root;
   it's not needed here — each tool handler calls it on demand.
2. io.stdin.drain() added a second listener to stdin after stdioChannel
   already subscribed, throwing StateError and killing the process.

The Dart event loop keeps the process alive while stdin has a listener.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-23 16:09:30 -04:00
..
lib Fix MCP serve: remove stdin conflict and premature ProjectContext call 2026-04-23 16:09:30 -04:00
test Implement MCP tool registry and kanban tool provider 2026-04-23 15:29:46 -04:00
.gitignore Scaffold docs, packages, and command registration 2026-04-23 14:29:09 -04:00
pubspec.yaml Implement MCP tool registry and kanban tool provider 2026-04-23 15:29:46 -04:00