fix: mcp server output msg format (#154)

* fix output msg format

* improve

---------

Co-authored-by: sigoden <sigoden@gmail.com>
This commit is contained in:
Andrii Zakhariuk
2025-01-04 09:05:48 +01:00
committed by GitHub
parent 0a88f22df5
commit 32225dcf0f
+3 -3
View File
@@ -90,12 +90,12 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
output = await fs.promises.readFile(tmpFile, "utf8");
} catch { };
return {
content: [{ type: "text", value: output }],
}
content: [{ type: "text", text: output }],
};
} else {
return {
isError: true,
error: stderr,
content: [{ type: "text", text: stderr }],
};
}
});