Repository navigation
Closed
Description
Summary
Rename the web client's "History" tab/feature to "Protocol" throughout the codebase. This is a terminology change covering the user-facing tab name, component names, folders, tests, and Storybook stories, so the feature reads as the MCP "Protocol" view rather than "History".
Scope
User-facing tab name
clients/web/src/utils/inspectorTabs.ts—"History"in theINSPECTOR_TAB_IDStuple (drives the displayed tab name and theInspectorTabIdunion).clients/web/src/components/views/InspectorView/InspectorView.tsx—HISTORY_TABlabel constant (line ~153) and theMonitorTabunion member"History"(line ~175). TheTAB_UI_REGISTRYkeys,INSPECTOR_TAB_IDS, and theScreenStage/panel-map keys are string-matched to this label, so they must change together.clients/web/src/components/screens/screenUiState.ts—TAB_UI_REGISTRY.Historykey andEMPTY_HISTORY_UIconst.
Component files / folders (rename component + directory)
clients/web/src/components/screens/HistoryScreen/HistoryScreen.tsx(+ exportedHistoryUiStatetype)clients/web/src/components/groups/HistoryListPanel/HistoryListPanel.tsx(+HistorySectionNametype)clients/web/src/components/groups/HistoryEntry/HistoryEntry.tsxclients/web/src/components/groups/HistoryControls/HistoryControls.tsxclients/web/src/components/groups/historyUtils.ts
Tests
HistoryScreen.test.tsx,HistoryListPanel.test.tsx,HistoryEntry.test.tsx,HistoryControls.test.tsx,historyUtils.test.tsclients/web/src/utils/inspectorTabs.test.tsclients/web/src/test/lib/downloadFile.test.ts(assertsbuildExportFilename("history", …))
Storybook stories (rename file + meta.title)
HistoryScreen.stories.tsx,HistoryListPanel.stories.tsx,HistoryEntry.stories.tsx,HistoryControls.stories.tsxclients/web/src/components/groups/ViewHeader/ViewHeader.stories.tsx—"History"fixture in a sample tab-list
Types / props / constants / store keys (App + InspectorView plumbing)
clients/web/src/types/navigation.ts—InspectorTabunion"history"id →"protocol"clients/web/src/App.tsx— pervasive internal identifiers:historyUi/setHistoryUi,pinnedHistoryIds,onClearHistory,onExportHistory,onClearHistorySection,onExportHistorySection,onReplayHistory,onTogglePinHistory,replayHistoryRequest,isReplayableHistoryMethod,buildExportFilename("history", …)→buildExportFilename("protocol", …)clients/web/src/components/views/InspectorView/InspectorView.tsx— prop names (history,historyUi,pinnedHistoryIds,onHistoryUiChange, and theon*History*handlers), localhistorySort/historyCompact, and the"history"scope strings.
Decisions (settled)
- Export-filename slug: ✅ changes —
buildExportFilename("history", …)→buildExportFilename("protocol", …). Exported filenames will use the "protocol" slug. UpdatedownloadFile.test.tsassertions accordingly. navigation.tsinternal id: ✅ changes —InspectorTabunion"history"→"protocol".- List section discriminator stays as-is: ❌ do not rename. The
HistoryListPanelsection discriminator keeps its"pinned" | "history"values and the sections remain labeled Pinned / History. (These are the two sub-sections within the panel — "History" here names the un-pinned entries, not the tab.) core/message-log/replay concepts (messageLogState.ts, etc.) are out of scope.
Acceptance criteria
- Tab renders as "Protocol" in the UI.
- Components, folders, tests, and stories renamed consistently; no stale "History" naming in the web client for the tab/feature (excluding build artifacts).
- Export filenames and the
navigation.tstab id use"protocol". - The in-panel section discriminator/labels remain Pinned / History.
npm run cipasses (format, lint, build, unit tests, ≥90 per-file coverage gate, smoke, Storybook).
Activity
refactor(web): rename Protocol list header "Requests" to "Messages" (#…
refactor(web): unify message-direction arrows and rename Pinned secti…
fix(web): keep wide network-entry URLs from overflowing the column (#…
docs(web): note the intentionally-preserved History section labels (#…
Merge pull request #1634 from modelcontextprotocol/1623-rename-histor…
cliffhall commentedon Jul 10, 2026
Merged via #1634 into v2/main. (Closing manually since v2/main is a non-default branch, so the PR's
Closes #1623cross-reference doesn't auto-close.)refactor(web): rename "History" tab/feature to "Protocol" (modelconte…