Skip to content

Transcript: draw mcp__web__fetch calls as web cells, as WebFetch is drawn #146

Open

Description

@SSFSKIM

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): the TABLE row WebFetch: grouped('web'). tableRowOf falls through to MCP_TOOL (/^mcp__([^_].*?)__(.+)$/) and class grouped('mcp') for any other mcp__ name; add a mcp__web__fetch row as grouped('web').
  • src/renderer/src/transcript/model/cells.ts (~L200, ~L237): case 'WebFetch': case 'WebSearch': builds the web cell detail (url from input.url, the output text), and the label uses rec.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's used list records url only for toolName === 'WebFetch'.
  • src/renderer/src/request-card/tools.ts (~L20): WebFetch: 'fetch' tool class (otherwise toolClass gives mcp for mcp__ names).
  • src/main/sessions/digest.ts (~L47): the session digest's "Fetching " line.
  • src/shared/attention/read-only-tools.ts (~L5): READ_ONLY_TOOLS lists WebFetch; decide whether mcp__web__fetch belongs 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 is web).

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, derive tests; test/support/synth-transcript.ts builds fixture transcripts that already know WebFetch). Add a case with mcp__web__fetch.
  • A shared helper for "is this a web-fetch tool" (WebFetch or mcp__web__fetch) is better than seven separate string comparisons.
  • Keep WebFetch working unchanged (older transcripts and sessions without the plugin).

Success criteria

  • A transcript containing a mcp__web__fetch call 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 for WebFetch.
  • Existing WebFetch tests still pass; new tests cover the new name.

Decision log

Sminos-Session: web-fetch-replacement#700c5e84 (doperpowers on macbook)

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P3
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P3status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions