Skip to content

Commit 0c89a0a

Browse files
authored
Returning textual result from MCP - for outdated clients like Cursor … (#18)
* Returning textual result from MCP - for outdated clients like Cursor and Claude * Bump version
1 parent e32beaa commit 0c89a0a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@deco/mcp",
3-
"version": "0.6.0",
3+
"version": "0.6.1",
44
"exports": {
55
".": "./mod.ts",
66
"./http": "./mcp/http.ts"

mcp/server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ function registerTools<TManifest extends AppManifest>(
277277
undefined,
278278
state,
279279
);
280+
280281
return {
282+
content: [{ type: "text" as const, text: JSON.stringify(result) }],
281283
isError: false,
282284
// deno-lint-ignore no-explicit-any
283285
structuredContent: result as any,

0 commit comments

Comments
 (0)