dew/packages
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
..
cli Implement MCP tool registry and kanban tool provider 2026-04-23 15:29:46 -04:00
core Implement MCP tool registry and kanban tool provider 2026-04-23 15:29:46 -04:00
kanban Implement MCP tool registry and kanban tool provider 2026-04-23 15:29:46 -04:00
mcp Fix MCP serve: remove stdin conflict and premature ProjectContext call 2026-04-23 16:09:30 -04:00