Repository navigation
fix: keep the git autocommit notice off stdout in the stdio transport - #44
Conversation
On the stdio transport stdout is the MCP protocol stream. With GIT_AUTOCOMMIT=true the startup notice was written with console.log and landed on that stream ahead of the first protocol message.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to The Git autocommit confirmation now goes to stderr, leaving stdout available for MCP protocol traffic. Pre-merge checks ·
|
Follow-up to #26. On the stdio transport stdout carries the MCP protocol, and the "git autocommit: enabled" startup notice was written with
console.log, so withGIT_AUTOCOMMIT=truea plain-text line went out on the protocol stream before the first message.It now goes to stderr like every other log line in
stdio.ts.Checked by running the stdio server with
GIT_AUTOCOMMIT=trueand capturing stdout: one stray line before the change, nothing after, and a client handshake lists the tools as usual.🤖 Generated with Claude Code
Summary by CodeRabbit