mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 12:36:27 -05:00
[GH-ISSUE #24413] issue: Azure AI Search Knowledge Base MCP returns uri: null in EmbeddedResource, causing Pydantic validation failure (v0.9.2)
#107287
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cryptomonkey2020 on GitHub (May 6, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24413
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
0.9.2
Ollama Version (if applicable)
N/A
Operating System
Linux (Azure Container Apps)
Browser (if applicable)
Chrome 136.0
Confirmation
README.md.Expected Behavior
When an Azure AI Search Knowledge Base MCP endpoint returns tool results with
type: "resource"content blocks, OpenWebUI should extract theresource.textfield and pass the data to the LLM. The v0.9.2 changelog states this is fixed: "MCP resource content handling. MCP tool results with the resource content type are now correctly detected and their resource.text payload is extracted."Actual Behavior
OpenWebUI v0.9.2 throws 84 Pydantic validation errors when calling
knowledge_base_retrieveon an Azure AI Search Knowledge Base MCP endpoint. The error occurs because Azure returns"uri": nullin theEmbeddedResource.resourceobject, and the MCP SDK (mcp==1.26.0) requiresurito be a valid URL string (typeAnyUrl).Error:
84 validation errors for CallToolResult
content.0.EmbeddedResource.resource.TextResourceContents.uri
URL input should be a string or URL type=url_type, input_value=None, input_type=NoneType
content.0.EmbeddedResource.resource.BlobResourceContents.uri
URL input should be a string or URL type=url_type, input_value=None, input_type=NoneType
content.0.EmbeddedResource.resource.BlobResourceContents.blob
Field required type=missing, ...
This is related to #24038 but is a different failure mode. Issue #24038 reported that
resourcecontent was silently dropped (v0.9.1). The v0.9.2 fix now recognizes theresourcetype but fails at Pydantic validation because Azure sends a spec-violating"uri": null.Root cause: Azure AI Search Knowledge Base MCP endpoint returns:
@owui-terminator[bot] commented on GitHub (May 6, 2026):
🔍 Related Issues Found
I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:
🟢 #24038 issue: MCP tool results with resource content type are silently dropped
This is the closest prior report of MCP
resourcecontent handling in Open WebUI. It describes the same tool-result shape (type: resource) and shows the v0.9.1 behavior that likely led to the v0.9.2 change, making it directly related as the predecessor issue.by jojays ·
bug🟣 #20629 Issue #20629
This closed issue is about MCP server response failures in Open WebUI. While not the same validation error, it is another MCP response-handling bug and may provide context on how Open WebUI parses or surfaces malformed MCP results.
by unknown
💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.
This comment was generated automatically. React with 👍 if helpful, 👎 if not.
@tjbck commented on GitHub (May 8, 2026):
This is an Azure bug, they send uri: null which violates the MCP spec; the MCP SDK correctly rejects it, so please report this to Azure or the MCP SDK to add a lenient parsing mode.