aboutsummaryrefslogtreecommitdiffstats
path: root/mcp
diff options
context:
space:
mode:
authorAndrii Zakhariuk <49080+anzax@users.noreply.github.com>2025-01-04 09:05:48 +0100
committerGitHub <noreply@github.com>2025-01-04 16:05:48 +0800
commit32225dcf0f6c27d06675e73c98f62580f560cc95 (patch)
tree0fe206e3412cfcd2fe949af8f160b043183d7091 /mcp
parent0a88f22df5235306e07a33d6f8b080db9c91bb7a (diff)
downloadllm-functions-docker-32225dcf0f6c27d06675e73c98f62580f560cc95.tar.gz
fix: mcp server output msg format (#154)
* fix output msg format * improve --------- Co-authored-by: sigoden <sigoden@gmail.com>
Diffstat (limited to 'mcp')
-rwxr-xr-xmcp/server/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/mcp/server/index.js b/mcp/server/index.js
index 3f4c5b6..4cc6fce 100755
--- a/mcp/server/index.js
+++ b/mcp/server/index.js
@@ -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 }],
};
}
});