Repository navigation
Description
Problem & intent
The doperpowers web plugin (SSFSKIM/doperpowers PR #370) adds the MCP tool mcp__web__fetch, which replaces Claude Code's built-in WebFetch in the person's sessions (input: url, optional prompt; it saves the page as markdown in a shared cache and replies with the page, an outline, or an answer). MAWS draws a WebFetch call as a first-class web cell (category web, the host as its label, the URL and fetched text in a detail view, "Fetching host" / "Fetched host" copy) but treats mcp__web__fetch as a generic MCP call (category mcp, label from the tool name). Once the person's sessions use the new tool, every page fetch loses its web-cell treatment.
Intent: a mcp__web__fetch call renders in MAWS exactly as a WebFetch call does (same category, host label, copy, detail view, and any "URL used" listing in the turn's summary).
Where WebFetch is special-cased in MAWS (as of 2026-10-25, branch sminos-hub)
src/renderer/src/transcript/model/classify.ts(~L72): theTABLErowWebFetch: grouped('web').tableRowOffalls through toMCP_TOOL(/^mcp__([^_].*?)__(.+)$/) and classgrouped('mcp')for any othermcp__name; add amcp__web__fetchrow asgrouped('web').src/renderer/src/transcript/model/cells.ts(~L200, ~L237):case 'WebFetch': case 'WebSearch':builds thewebcell detail (urlfrominput.url, the output text), and the label usesrec.use.toolName === 'WebFetch' ? hostOf(detail.url) : detail.query.src/renderer/src/transcript/model/copy.ts(~L144 live copy "Fetching ", ~L197 settled copy "Fetched ").src/renderer/src/transcript/model/derive.ts(~L848): the turn summary'susedlist recordsurlonly fortoolName === 'WebFetch'.src/renderer/src/request-card/tools.ts(~L20):WebFetch: 'fetch'tool class (otherwisetoolClassgivesmcpformcp__names).src/main/sessions/digest.ts(~L47): the session digest's "Fetching " line.src/shared/attention/read-only-tools.ts(~L5):READ_ONLY_TOOLSlistsWebFetch; decide whethermcp__web__fetchbelongs there (it writes only to the shared cache folder, never the project, so it is read-only in effect; confirm with how the list is used before adding it).- Detail view:
src/renderer/src/transcript/view/cells/WebDetail.tsx(needs no change if the cell kind isweb).
What the result looks like: mcp__web__fetch replies in text (the page, or its path plus an outline of line ranges, or an answer with line-number citations); when the page is long, the reply names a file path under the cache rather than inlining the page. Show the reply text as the cell's output as for WebFetch, bounded the same way.
Constraints
- Follow MAWS conventions (its
CLAUDE.md); tests live beside the model code (classify,cells,copy,derivetests;test/support/synth-transcript.tsbuilds fixture transcripts that already knowWebFetch). Add a case withmcp__web__fetch. - A shared helper for "is this a web-fetch tool" (
WebFetchormcp__web__fetch) is better than seven separate string comparisons. - Keep
WebFetchworking unchanged (older transcripts and sessions without the plugin).
Success criteria
- A transcript containing a
mcp__web__fetchcall with{url}(and one with{url, prompt}) renders a web-category cell labelled with the URL's host, with the URL openable in the detail view and the reply as output, and the turn summary lists the URL as it does forWebFetch. - Existing
WebFetchtests still pass; new tests cover the new name.
Decision log
- Filed from SSFSKIM/doperpowers PR ci: shard the hosted packaged gate across two Macs #370 residue (2026-10-25); the fix lives here, in MAWS.
Sminos-Session: web-fetch-replacement#700c5e84 (doperpowers on macbook)
Activity