You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/server/mcp.ts
+14-12Lines changed: 14 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1163,25 +1163,27 @@ export class ResourceTemplate {
1163
1163
* Parameters will include tool arguments, if applicable, as well as other request handler context.
1164
1164
*
1165
1165
* The callback should return:
1166
-
* - `structuredContent` if the tool has an outputSchema defined
1167
-
* - `content` if the tool does not have an outputSchema
1166
+
* - `structuredContent` if the tool has an outputSchema defined.
1167
+
* - `content` if the tool does not have an outputSchema OR if an outputSchema is defined, content *SHOULD* have the serialized JSON structuredContent in a text content for backwards compatibility
1168
1168
* - Both fields are optional but typically one should be provided
0 commit comments