mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 07:57:33 +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,
|
||||
}
|
||||
|
||||
if ctx.GetHeader(MCPProtocolVersionHeaderName) > string(ToolResultStructuredContentMinVersion) {
|
||||
if ctx.GetHeader(MCPProtocolVersionHeaderName) >= string(ToolResultStructuredContentMinVersion) {
|
||||
callToolResp.StructuredContent = structuredResponse
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user