diff options
Diffstat (limited to 'apps/mcp/src/lists.ts')
| -rw-r--r-- | apps/mcp/src/lists.ts | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/apps/mcp/src/lists.ts b/apps/mcp/src/lists.ts index 36eb6661..242229cb 100644 --- a/apps/mcp/src/lists.ts +++ b/apps/mcp/src/lists.ts @@ -13,10 +13,20 @@ mcpServer.tool( return toMcpToolError(res.error); } return { - content: res.data.lists.map((list) => ({ - type: "text", - text: JSON.stringify(list), - })), + content: [ + { + type: "text", + text: res.data.lists + .map( + (list) => ` +List ID: ${list.id} +Name: ${list.icon} ${list.name} +Description: ${list.description ?? ""} +Parent ID: ${list.parentId}`, + ) + .join("\n\n"), + }, + ], }; }, ); |
