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> |
||
|---|---|---|
| .. | ||
| src | ||
| dew_mcp.dart | ||