Route MCP tool results through the existing citation pipeline - #50
Open
cableman wants to merge 1 commit into
Open
Route MCP tool results through the existing citation pipeline#50cableman wants to merge 1 commit into
cableman wants to merge 1 commit into
Conversation
jekuaitk
reviewed
Apr 9, 2026
jekuaitk
approved these changes
Apr 9, 2026
cableman
force-pushed
the
feature/agentic-search
branch
from
May 27, 2026 13:27
e7113e7 to
a84f698
Compare
cableman
force-pushed
the
feature/agentic-search
branch
from
June 3, 2026 14:32
a84f698 to
d076460
Compare
cableman
force-pushed
the
feature/agentic-search
branch
from
July 28, 2026 13:31
d076460 to
f660a12
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.