@grainulation/wheat 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/serve-mcp.js +3 -2
- package/package.json +1 -1
package/lib/serve-mcp.js
CHANGED
|
@@ -796,7 +796,6 @@ async function handleRequest(dir, method, params, id) {
|
|
|
796
796
|
function startServer(dir) {
|
|
797
797
|
const rl = readline.createInterface({
|
|
798
798
|
input: process.stdin,
|
|
799
|
-
output: process.stdout,
|
|
800
799
|
terminal: false,
|
|
801
800
|
});
|
|
802
801
|
|
|
@@ -830,7 +829,9 @@ function startServer(dir) {
|
|
|
830
829
|
}
|
|
831
830
|
});
|
|
832
831
|
|
|
833
|
-
|
|
832
|
+
// Keep the server alive — don't exit on stdin close.
|
|
833
|
+
// Claude Code's plugin transport may briefly close/reopen stdin.
|
|
834
|
+
process.stdin.on("end", () => {
|
|
834
835
|
process.exit(0);
|
|
835
836
|
});
|
|
836
837
|
|
package/package.json
CHANGED