Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f059b6f458 |
5
main.go
5
main.go
@@ -215,7 +215,10 @@ func writeResponse(resp interface{}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func writeFramed(data []byte) {
|
func writeFramed(data []byte) {
|
||||||
fmt.Fprintf(os.Stdout, "Content-Length: %d\r\n\r\n%s", len(data), data)
|
// MCP stdio transport uses newline-delimited JSON (NDJSON), not LSP-style
|
||||||
|
// Content-Length framing. Claude Code and other MCP clients reject
|
||||||
|
// Content-Length headers on stdio, so we emit one JSON object per line.
|
||||||
|
fmt.Fprintf(os.Stdout, "%s\n", data)
|
||||||
}
|
}
|
||||||
|
|
||||||
func debugLog(format string, args ...interface{}) {
|
func debugLog(format string, args ...interface{}) {
|
||||||
|
|||||||
Reference in New Issue
Block a user