Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
fa5e0ea
feat(skills): held skills in the review queue and attention list, adm…
Dumbris Nov 20, 2026
681473e
feat(web): held skills in the review queue rows
Dumbris Nov 20, 2026
fc23935
feat(macos): label skills activity and review held skills in the Web UI
Dumbris Nov 20, 2026
8db4095
fix(skills): review round 1 for the held-skill review rows
Dumbris Nov 20, 2026
1ebfd60
Open the server Skills tab from tray attention items
Dumbris Nov 20, 2026
eb2e425
Preserve active tool review on unrelated native review events
Dumbris Nov 20, 2026
2a56dbf
Deliver scoped attention baseline before suppressing duplicate events
Dumbris Nov 20, 2026
e3278c8
Revalidate the initial attention frame and preserve REST ordering
Dumbris Nov 20, 2026
9cd48b0
Scope held-skill queue reads and refresh affected Skills tabs
Dumbris Nov 20, 2026
fc73514
Refresh retained Skills tabs when exposure settings change
Dumbris Nov 20, 2026
8885b24
fix(skills): review round 3 for the held-skill review rows
Dumbris Nov 20, 2026
756ccea
fix(skills): batch configuration notifications across servers
Dumbris Nov 20, 2026
f4f6187
Merge remote-tracking branch 'origin/main' into 125-skills-pr4b-revie…
Dumbris Nov 21, 2026
a81efaf
fix(skills): batch review notifications for bulk commits
Dumbris Nov 21, 2026
00a0b31
test: copy live config before E2E server updates
Dumbris Nov 21, 2026
13a9db0
test: keep E2E updates off published config snapshots
Dumbris Nov 21, 2026
5ded887
Merge remote-tracking branch 'origin/main' into 125-skills-pr4b-revie…
Dumbris Nov 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ graph LR
| Spec 108 profiles v3: scoped profiles, client binding, scope-aware observability | In progress | P1 | 194/195 (99%) | [108-profiles-v3](./specs/108-profiles-v3/) | |
| Spec 109 navigation, scope filters and cross-surface UX consistency | In progress | P1 | 257/258 (100%) | [109-ux-navigation-consistency](./specs/109-ux-navigation-consistency/) | |
| Spec 124 work sessions and the failure timeline | In progress | P1 | 0/74 (0%) | [124-session-failure-timeline](./specs/124-session-failure-timeline/) | |
| Spec 125 Skills over MCP: catalog, approval gate, read-only agent tools | In progress | P1 | 49/51 (96%) | [125-skills-over-mcp](./specs/125-skills-over-mcp/) | |
| Spec 125 Skills over MCP: catalog, approval gate, read-only agent tools | In progress | P1 | 51/51 (100%) | [125-skills-over-mcp](./specs/125-skills-over-mcp/) | |
| Planning/docs truth automation | In progress | P2 | — | | |
| Discovery-quality eval harness (Spec 065 second half) | In progress | P3 | — | [065-evaluation-foundation](./specs/065-evaluation-foundation/) | |
| Spec 114 typed pending-call outcome + call correlation for long-running stdio tool calls | In review | P2 | — | | #1536 |
Expand Down Expand Up @@ -1439,7 +1439,7 @@ Legend: `shipped` ≥95% checked · `in-flight` 1–94% · `drafted` 0% · `—`
| [122-scanner-skillspector-checks](./specs/122-scanner-skillspector-checks/) | `shipped` | 31/31 (100%) |
| [123-oauth-token-encryption](./specs/123-oauth-token-encryption/) | `drafted` | 0/56 (0%) |
| [124-session-failure-timeline](./specs/124-session-failure-timeline/) | `drafted` | 0/74 (0%) |
| [125-skills-over-mcp](./specs/125-skills-over-mcp/) | `shipped` | 49/51 (96%) |
| [125-skills-over-mcp](./specs/125-skills-over-mcp/) | `shipped` | 51/51 (100%) |
| [127-profile-argument-rules](./specs/127-profile-argument-rules/) | — | — |
| [128-server-list-outcomes](./specs/128-server-list-outcomes/) | — | — |
| [129-per-user-upstream-credentials](./specs/129-per-user-upstream-credentials/) | — | — |
2 changes: 2 additions & 0 deletions cmd/generate-types/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export const AttentionKindConfigError = 'config_error' as const;
export const AttentionKindServerError = 'server_error' as const;
export const AttentionKindServerReview = 'server_review' as const;
export const AttentionKindToolReview = 'tool_review' as const;
export const AttentionKindSkillReview = 'skill_review' as const;
export const AttentionKindClientNeverSeen = 'client_never_seen' as const;

export type AttentionKind =
Expand All @@ -179,6 +180,7 @@ export type AttentionKind =
| typeof AttentionKindServerError
| typeof AttentionKindServerReview
| typeof AttentionKindToolReview
| typeof AttentionKindSkillReview
| typeof AttentionKindClientNeverSeen;

export interface AttentionSubject {
Expand Down
16 changes: 14 additions & 2 deletions cmd/mcpproxy/review_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,9 @@ func formatReviewResponse(format string, raw []byte, full bool) error {
if v, ok := row["enabled"].(bool); ok {
enabled = fmt.Sprint(v)
}
rows = append(rows, []string{fmt.Sprint(row["server"]), fmt.Sprint(row["kind"]), fmt.Sprint(row["quarantined"]), enabled, fmt.Sprint(row["pending"]), fmt.Sprint(row["changed"]), fmt.Sprint(row["tier_counts"]), fmt.Sprint(row["scan"])})
rows = append(rows, []string{fmt.Sprint(row["server"]), fmt.Sprint(row["kind"]), fmt.Sprint(row["quarantined"]), enabled, fmt.Sprint(row["pending"]), fmt.Sprint(row["changed"]), reviewQueueSkillsCell(row), fmt.Sprint(row["tier_counts"]), fmt.Sprint(row["scan"])})
}
out, err := table.FormatTable([]string{"SERVER", "KIND", "QUARANTINED", "ENABLED", "PENDING", "CHANGED", "TIERS", "SCAN"}, rows)
out, err := table.FormatTable([]string{"SERVER", "KIND", "QUARANTINED", "ENABLED", "PENDING", "CHANGED", "SKILLS", "TIERS", "SCAN"}, rows)
if err != nil {
return err
}
Expand Down Expand Up @@ -670,6 +670,18 @@ func formatReviewResponse(format string, raw []byte, full bool) error {
return nil
}

// reviewQueueSkillsCell renders a queue row's held skills (Spec 125) as
// "P pending, C changed", or "-" when it has none (the counts are
// administrator-only, so a scoped caller always sees "-").
func reviewQueueSkillsCell(row map[string]interface{}) string {
pending, _ := row["skills_pending"].(float64)
changed, _ := row["skills_changed"].(float64)
if pending+changed == 0 {
return "-"
}
return fmt.Sprintf("%d pending, %d changed", int(pending), int(changed))
}

// reviewDiffSections is the order and heading of the sections of a changed tool's diff.
var reviewDiffSections = []struct{ key, heading string }{
{"description", "Description"},
Expand Down
22 changes: 22 additions & 0 deletions cmd/mcpproxy/review_cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,28 @@ func TestFormatReviewResponseTableQueueColumns(t *testing.T) {
}
}

// Spec 125 T031: held skills show in their own column; a skill-only row
// (kind skill_review) says how many are pending and changed.
func TestFormatReviewResponseTableQueueShowsHeldSkills(t *testing.T) {
raw := []byte(`{"data":{"servers":[` +
`{"server":"both","kind":"tool_review","enabled":true,"pending":1,"skills_changed":1},` +
`{"server":"hf","kind":"skill_review","enabled":true,"skills_pending":3,"skills_changed":2},` +
`{"server":"plain","kind":"tool_review","enabled":true,"changed":1}]}}`)
output := captureReviewOutput(t, func() error { return formatReviewResponse("table", raw, false) })
require.Contains(t, output, "SKILLS")
for _, line := range strings.Split(output, "\n") {
switch {
case strings.HasPrefix(line, "hf"):
require.Contains(t, line, "skill_review")
require.Contains(t, line, "3 pending, 2 changed")
case strings.HasPrefix(line, "both"):
require.Contains(t, line, "0 pending, 1 changed")
case strings.HasPrefix(line, "plain"):
require.NotContains(t, line, "pending,")
}
}
}

func TestFormatReviewResponseTableQueueShowsEnabledState(t *testing.T) {
raw := []byte(`{"data":{"servers":[{"server":"live","kind":"server_review","quarantined":true,"enabled":true},{"server":"parked","kind":"server_review","quarantined":true,"enabled":false},{"server":"legacy","kind":"server_review","quarantined":true}]}}`)
output := captureReviewOutput(t, func() error { return formatReviewResponse("table", raw, false) })
Expand Down
4 changes: 2 additions & 2 deletions cmd/mcpproxy/testdata/cli109/review-list.golden
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SERVER KIND QUARANTINED ENABLED PENDING CHANGED TIERS SCAN
filesystem server_review true true 0 0 map[destructive:1] map[verdict:clean]
SERVER KIND QUARANTINED ENABLED PENDING CHANGED SKILLS TIERS SCAN
filesystem server_review true true 0 0 - map[destructive:1] map[verdict:clean]
10 changes: 6 additions & 4 deletions docs/api/rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ listings above.

The one needs-attention list every surface renders (the Web UI Home page, header pill and sidebar badge, the macOS tray and Home section, `mcpproxy attention`, the first line of `mcpproxy status` and the first section of `mcpproxy doctor`). Both editions. See [Needs Attention](../features/needs-attention.md) for the kinds, ranks and fixes.

Administrators see every item. A scoped caller (an agent token, or a non-admin user session) sees only the items whose server it may enumerate, never a client or setting item, with `count` recomputed from the narrowed list.
Administrators see every item. A scoped caller (an agent token, or a non-admin user session) sees only the items whose server it may enumerate, never a client or setting item and never a `skill_review` item (held skills, Spec 125), with `count` recomputed from the narrowed list.

```json
{
Expand Down Expand Up @@ -1055,13 +1055,13 @@ Administrators see every item. A scoped caller (an agent token, or a non-admin u
}
```

Items are sorted by `rank` ascending, then by `subject.name`; `id` (`kind:type:subject[:state]`) is stable, so a client can diff successive lists. `fix.target` is a Web UI route, and a fix never approves anything by itself. The SSE event `attention.changed` (`{count, ids}`) is emitted when the set of ids changes; see [Real-time Updates](#real-time-updates).
Items are sorted by `rank` ascending, then by `subject.name`; `id` (`kind:type:subject[:state]`) is stable, so a client can diff successive lists. `fix.target` is a Web UI route, and a fix never approves anything by itself. The SSE event `attention.changed` (`{count, ids}`) sends the current visible ids at connection time and when that set changes. Administrators also receive an update when item details change with the same ids, for example when a held-skill count decreases; see [Real-time Updates](#real-time-updates).

### Review

#### GET /api/v1/review

The review queue: one row per server awaiting review, either a quarantined server (`kind: server_review`) or a trusted server with new or changed tools (`kind: tool_review`, with `pending` and `changed` counts). `count` is the number of rows, the number the Review queue badge shows. For a scoped caller (an agent token or a non-admin user session) the queue lists only the servers that caller may see.
The review queue: one row per server awaiting review, either a quarantined server (`kind: server_review`), a trusted server with new or changed tools (`kind: tool_review`, with `pending` and `changed` counts), or, with [Skills over MCP](../features/skills.md#held-skills-in-review) on, a server whose only owed review is held skills (`kind: skill_review`). Any row except a quarantined server's may carry `skills_pending` and `skills_changed` (omitted when zero). `count` is the number of rows, the number the Review queue badge shows. For a scoped caller (an agent token or a non-admin user session) the queue lists only the servers that caller may see, and held skills are administrator-only: the skill counts are removed, `skill_review` rows are dropped and `count` excludes them.

```json
{
Expand All @@ -1073,7 +1073,9 @@ The review queue: one row per server awaiting review, either a quarantined serve
"tier_counts": {"read": 9, "write": 3, "destructive": 2, "unannotated": 0, "unknown": 0},
"scan": {"verdict": "clean", "risk_score": 0}, "since": "2026-09-25T06:01:40Z"},
{"server": "github", "kind": "tool_review", "quarantined": false, "pending": 0, "changed": 1,
"since": "2026-09-25T06:10:00Z"}
"since": "2026-09-25T06:10:00Z"},
{"server": "hf", "kind": "skill_review", "quarantined": false, "skills_pending": 3, "skills_changed": 1,
"since": "2026-11-16T19:20:00Z"}
]
}
}
Expand Down
1 change: 1 addition & 0 deletions docs/features/needs-attention.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ lists instead of re-rendering the whole thing on every change.
| `server_error` | 40 | Not quarantined, and `health.status` has been `error` or `connecting` for ≥ 60 seconds | `restart` → the server menu action; logs are one click away |
| `server_review` | 50 | `admin_state == quarantined` (and enabled) | `review` → opens the review location — never a one-click approve |
| `tool_review` | 60 (changed) / 61 (pending) | A trusted server with ≥ 1 tool in that approval state; one item per state, so a server with both is two items | `review` → opens the review location, filtered to that state |
| `skill_review` | 62 (changed) / 63 (pending) | With [Skills over MCP](./skills.md) on: an enabled, not quarantined, not excluded server with ≥ 1 held skill (pending or changed, not blocked, listed) in that state; one item per state. **Administrators only**: a scoped caller never sees it | `review` → the server's Skills tab in the Web UI (`/servers/<name>?tab=skills`); the macOS app opens that page in the browser |
| `client_never_seen` | 70 | A client MCPProxy recorded as connected ≥ 5 minutes ago, with no MCP session observed since | `reload_hint` → shows how to restart the client |

The first six kinds are the [profiles](https://docs.mcpproxy.app/features/profiles)
Expand Down
11 changes: 11 additions & 0 deletions docs/features/skills.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,17 @@ version you opened: a new version that arrives while you review is shown as a
stale review with Approve off until you open it, and a skill that changed on the
server before the page knew is refused with a notice and the list reloads. See [Server Detail page](../web-ui/server-detail.md#skills-tab).

### Where held skills show up {#held-skills-in-review}

A skill that is pending or changed (not blocked, still listed, on an enabled server that is not quarantined and not excluded) is owed a review, and it shows up next to the tool reviews:

- **Review queue** (`GET /api/v1/review`, the Web UI Review queue, `mcpproxy review list`, the macOS Review Queue). A server with held tools keeps its row and gains `skills_pending` / `skills_changed`; a server with only held skills gets a row of kind `skill_review`, and `count` (the sidebar badge) includes it. In the Web UI that row's **Review** opens the server's Skills tab; a tool row with held skills also offers **Skills**. The macOS app has no Skills tab, so its row says "Review in the Web UI" and opens that page in the browser.
- **Needs attention** (Home, the header pill, `mcpproxy attention`): one `skill_review` item per state, ranked right after the tool reviews (62 changed, 63 pending), fixed on the server's Skills tab.

A quarantined server is only a server review: its skills are not read until it is approved.

These entries are for **administrators only**. A scoped caller (an agent token, pinned or not, or a non-admin user session) gets no skill counts, no `skill_review` row or attention item, a queue `count` without them, and no `review.changed` frame caused by a skills change, even for a server it may see.

### Reasons a skill is unusable

| Reason | Meaning |
Expand Down
2 changes: 1 addition & 1 deletion docs/web-ui/dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Env values and headers whose names look like secrets default to **Secret**, whic

### Review before approval

Quarantined servers wait on the [Review queue](/features/security-quarantine). The review screen lists every tool read-only with its tier, annotations and scan verdict before you approve, and lets you leave tools out. Approving always goes through the scan gate. The queue lists every server that is owed a review, including disabled ones (marked **Disabled**). It opens on **Active blockers** (enabled servers and tool changes that hold a live agent) when there are any, with **All reviews** one click away, plus a search box and a sort menu. The Home attention list covers enabled servers only, so its number can be smaller than the full queue.
Quarantined servers wait on the [Review queue](/features/security-quarantine). The review screen lists every tool read-only with its tier, annotations and scan verdict before you approve, and lets you leave tools out. Approving always goes through the scan gate. The queue lists every server that is owed a review, including disabled ones (marked **Disabled**). It opens on **Active blockers** (enabled servers and tool changes that hold a live agent) when there are any, with **All reviews** one click away, plus a search box and a sort menu. The Home attention list covers enabled servers only, so its number can be smaller than the full queue. With [Skills over MCP](/features/skills#held-skills-in-review) on, held skills appear here too (administrators only): a row reads "N skills awaiting review · M changed", and a server whose only owed review is skills links to its Skills tab.

## Tool Search

Expand Down
7 changes: 5 additions & 2 deletions frontend/src/components/ReviewQueueList.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
<template>
<ul class="divide-y divide-base-300 border border-base-300 rounded-lg" data-test="review-queue-list">
<li v-for="row in rows" :key="row.server" class="flex items-center justify-between gap-3 px-4 py-3" :data-test="`servers-review-row-${row.server}`">
<span class="min-w-0 flex-1"><span class="block font-medium truncate">{{ row.server }}</span><span class="block text-xs text-base-content/60">{{ row.kind === 'server_review' ? 'Server awaiting review' : `${row.pending ?? 0} new · ${row.changed ?? 0} changed` }}</span></span>
<span class="min-w-0 flex-1"><span class="block font-medium truncate">{{ row.server }}</span><span class="block text-xs text-base-content/60">{{ reviewQueueRowSubtitle(row) }}</span></span>
<span v-if="row.enabled === false" class="badge badge-ghost badge-sm" title="This server is disabled, so no live agent is waiting on this review" :data-test="`servers-review-disabled-${row.server}`">Disabled</span>
<span v-if="row.quarantined" class="badge badge-warning badge-sm">Quarantined</span>
<router-link :to="{ path: `/review/${encodeURIComponent(row.server)}`, query: { ...(change ? { change } : {}) } }" class="btn btn-primary btn-xs shrink-0" :data-test="`servers-review-link-${row.server}`" @click="$emit('review', $event, row.server)">Review</router-link>
<!-- Spec 125: a tool row that also has held skills offers the Skills tab too. -->
<router-link v-if="row.kind !== REVIEW_KIND_SKILL_REVIEW && heldSkillCount(row) > 0" :to="serverSkillsLink(row.server)" class="btn btn-ghost btn-xs shrink-0" :data-test="`servers-review-skills-link-${row.server}`">Skills</router-link>
<router-link :to="reviewQueueRowLink(row, change)" class="btn btn-primary btn-xs shrink-0" :data-test="`servers-review-link-${row.server}`" @click="$emit('review', $event, row.server)">Review</router-link>
</li>
</ul>
</template>
<script setup lang="ts">
import type { ReviewQueueRow } from '@/types'
import { REVIEW_KIND_SKILL_REVIEW, heldSkillCount, reviewQueueRowLink, reviewQueueRowSubtitle, serverSkillsLink } from '@/utils/reviewQueue'
defineProps<{ rows: ReviewQueueRow[]; change?: string }>()
defineEmits<{ review: [event: MouseEvent, server: string] }>()
</script>
12 changes: 11 additions & 1 deletion frontend/src/components/ReviewScreen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,17 @@ async function reloadAfterStaleReview(server: string, visit: number, message: st
if (isCurrent(server, visit)) notice.value = message
}
async function blockTool(name: string) { const server = props.serverName; const visit = visitGeneration; toolNotice.value = ''; const res = await api.blockTools(server, [name], ...incarnationArgs(review.value?.server.incarnation)); if (!isCurrent(server, visit)) return; await load(); if (!res.success && isCurrent(server, visit)) toolNotice.value = res.error || 'Block failed' }
function refreshAfterReviewChange() { scanning.value = false; rescanning.value = false; void load() }
// Spec 125: only a review change about this server's tools reloads the open
// review. A frame for another server, or one a skills change caused (marked
// `skills`), leaves the review and its scanning state alone. A frame with no
// detail (an older core, a local dispatch) still reloads.
function refreshAfterReviewChange(event: Event) {
const payload = (event as CustomEvent<{ payload?: { server?: string; servers?: string[]; skills?: boolean } }>).detail?.payload
if (payload?.skills) return
if (payload?.servers && !payload.servers.includes(props.serverName)) return
if (payload?.server && payload.server !== props.serverName) return
scanning.value = false; rescanning.value = false; void load()
}
function refreshAfterServersChange() {
if (readinessEventTimer) clearTimeout(readinessEventTimer)
readinessEventTimer = setTimeout(() => {
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/types/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1463,14 +1463,18 @@ export interface ReviewScan {

export interface ReviewQueueRow {
server: string
kind: 'server_review' | 'tool_review' | string
/** skill_review (Spec 125): the server's only owed review is held skills. */
kind: 'server_review' | 'tool_review' | 'skill_review' | string
quarantined: boolean
/** Configured enabled state; absent on an older core (treat as enabled). */
enabled?: boolean
tools_captured?: number
tier_counts?: Record<string, number>
pending?: number
changed?: number
/** Held skills (Spec 125). Administrator-only: absent for a scoped caller. */
skills_pending?: number
skills_changed?: number
scan?: ReviewScan
since?: string
}
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/types/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export const AttentionKindConfigError = 'config_error' as const;
export const AttentionKindServerError = 'server_error' as const;
export const AttentionKindServerReview = 'server_review' as const;
export const AttentionKindToolReview = 'tool_review' as const;
export const AttentionKindSkillReview = 'skill_review' as const;
export const AttentionKindClientNeverSeen = 'client_never_seen' as const;

export type AttentionKind =
Expand All @@ -132,6 +133,7 @@ export type AttentionKind =
| typeof AttentionKindServerError
| typeof AttentionKindServerReview
| typeof AttentionKindToolReview
| typeof AttentionKindSkillReview
| typeof AttentionKindClientNeverSeen;

export interface AttentionSubject {
Expand Down
Loading
Loading