Skip to content

Commit 15320d2

Browse files
Make content an array to match the MCP spec
1 parent d022fa1 commit 15320d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp-sdk/src/Server/RequestHandler/ToolCallHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function createResponse(Request $message): Response|Error
6060
};
6161

6262
return new Response($message->id, [
63-
'content' => $content,
63+
'content' => [$content], // TODO: allow multiple `ToolCallResult`s in the future
6464
'isError' => $result->isError,
6565
]);
6666
}

0 commit comments

Comments
 (0)