WIP: ai-summary: search and read pages through degoog MCP #1
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/ai-summary-mcp"
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?
Draft for review before anything goes upstream. Upstream issue: degoog-org/degoog#367.
What it does. A new advanced setting, Degoog MCP URL (+ token), lets the AI Summary and the follow-up chat call the degoog MCP sidecar's
searchandscrapetools, up to 4 rounds per answer. OpenAI-style providers only (OpenAI compatible, OpenAI, OpenRouter, llama.cpp, vLLM, LM Studio): the change lives in the shared OpenAI chat adapter. Blank URL keeps today's single pass.src/mcp.js: small Streamable HTTP MCP client (initialize, session id, re-initialize on 404,tools/listlimited tosearchandscrape,tools/call, bearer token, redirects refused).providers/openai-chat.js: sendstools, assembles streamedtool_calls.src/tools.js: the loop. Pages found through tools get the next citation numbers after the page's results, so[N]chips and hover cards keep working.toolmessages are dropped (only system/user/assistant accepted).develop.Tested on sprite with real degoog (DuckDuckGo), real degoog-mcp 0.4.1 and a scripted mock model: search → scrape → answer, split tool-call chunks, citation numbering, cache replay with sources, chat numbering, dropped browser
toolmessages, no-URL and MCP-down fallbacks,bun buildfor both entries.Not tested yet with a real model (Bifrost CLI can't read its key on sprite). First thing to check is whether
taskactually decides to call the tools.Flow. Merge this into
pr/ai-summary-mcp; the push mirror carries that branch tojndao/official-extensions, and the upstream PR is opened fromjndao:pr/ai-summary-mcpintodegoog-org:develop.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.