mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-22 02:34:26 +08:00
fix MCP protocol version requirement
This commit is contained in:
@@ -122,7 +122,7 @@ func handleTool[T MCPTextContent | MCPImageContent | MCPAudioContent | MCPResour
|
|||||||
IsError: false,
|
IsError: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
if ctx.GetHeader(MCPProtocolVersionHeaderName) > string(ToolResultStructuredContentMinVersion) {
|
if ctx.GetHeader(MCPProtocolVersionHeaderName) >= string(ToolResultStructuredContentMinVersion) {
|
||||||
callToolResp.StructuredContent = structuredResponse
|
callToolResp.StructuredContent = structuredResponse
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user