Skip to content

Route MCP tool results through the existing citation pipeline - #50

Open
cableman wants to merge 1 commit into
upstream/v0.11.0from
feature/agentic-search
Open

Route MCP tool results through the existing citation pipeline#50
cableman wants to merge 1 commit into
upstream/v0.11.0from
feature/agentic-search

Conversation

@cableman

@cableman cableman commented Apr 9, 2026

Copy link
Copy Markdown

When an MCP-provided tool (e.g. websearch_search_web) performs a web search, its results were previously treated as generic tool output — dumped as a raw string into a single citation block. This commit makes MCP tools go through the same structured citation extraction path (get_citation_source_from_tool_result) that built-in tools already use, producing proper per-result citations with URLs, titles, and snippets.

Comment thread backend/open_webui/utils/middleware.py
@cableman
cableman requested a review from jekuaitk April 9, 2026 21:20
Comment thread backend/open_webui/utils/middleware.py
@cableman
cableman force-pushed the feature/agentic-search branch from e7113e7 to a84f698 Compare May 27, 2026 13:27
@cableman
cableman changed the base branch from upstream/v0.8.12 to upstream/v0.9.5 May 27, 2026 13:29
@cableman
cableman force-pushed the feature/agentic-search branch from a84f698 to d076460 Compare June 3, 2026 14:32
@cableman
cableman changed the base branch from upstream/v0.9.5 to upstream/v0.9.6 June 3, 2026 14:38
@cableman
cableman force-pushed the feature/agentic-search branch from d076460 to f660a12 Compare July 28, 2026 13:31
@cableman
cableman changed the base branch from upstream/v0.9.6 to upstream/v0.11.0 July 28, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants