Repository navigation
feat(attention): Spec 108 warnings as attention kinds, profile scope on Servers and row links (Spec 109-l) - #1457
Merged
Merged
Conversation
…ed allow-list (Spec 109-l)
…ked token holders (#1437, Spec 109-l)
…pec 108 attention fixes (Spec 109-l)
…abel (Spec 109-l)
… and decisions D33
Deploying mcpproxy-docs with
|
| Latest commit: |
1dc4cf2
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://49507766.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://109-l-profiles-integration.mcpproxy-docs.pages.dev |
F1.1: the attention subscriber starts before the management service is wired, so a quiet instance never recomputed and never armed the 30s client-warning refresh or the expiry wake-up. loop() now arms an initial recompute timer. Test-first: TestAttention108QuietBootSurfacesWarningWithoutAnyEvent. Also stops the final timer values on exit (the deferred stop captured nil). F4.1: Clients view now remembers a clientDetail route (pendingExpandID) and expands the row once load()/adopt() delivers it, so the profile picker is visible for profile_missing items routed from Home or the tray. The view state has no unit seam; covered by existing swift suite and review.
|
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 36958466079 --repo smart-mcp-proxy/mcpproxy-go
|
2 tasks
… event wiring (F1.2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Spec 109-l (specs/109-ux-navigation-consistency, Phase 14, T151 to T159) integrates Spec 108 into the needs-attention list and renders the three link-map rows that 109-k registered but never showed. It also fixes two items of #1437.
Spec 108 warnings now appear as needs-attention items, ranked 4 to 9 so they sit above every server item. They come from the same function that fills the Clients page banner, so the two cannot disagree, and they never read a client config file.
Closes #1437 (items 2, 3 and 4 landed with 108-j in #1448; this PR owns items 1 and 5).
User-visible changes
Core, REST, SSE
anonymous_denied_by_binding_guard(4),client_holds_admin_key(5),client_token_name_conflict(6),profile_missing(7),client_rotation_pending(8),client_credential_expiring(9). The binding guard is a single item with the new subject typesetting; every other item is one per client. Each carries a fix verb equal to the Spec 108 warning action and a target the Web UI already serves.client.binding_changed,profiles.changed,config.reloadedandconfig.saved, re-reads the client warnings every 30 seconds (rotations, forgets and token creation emit no event), and wakes when an active credential enters its 14-day window.sincefor the expiring kind is the start of that window.client_holds_admin_keyappears once a client's credential state has been observed (an on-demand read persists it). There is deliberately no background config read, which would trigger the macOS privacy prompt. Recorded in FR-093.GET /servers?profile=<viewed>from a caller pinned to a narrower profile now counts only tools both profiles admit and drops servers outside the caller's own pin, so it agrees withGET /tools. Administrator output is unchanged.POST /tokens(andmcpproxy token create) now say so:A revoked token named "x" still holds this name for activity history; choose another name.Web UI
GET /servers?profile=. The list is page-local, so the shared servers store (sidebar, header, Dashboard) is untouched. It shows the spinner instead of the unfiltered list while/statusfeatures are pending, "Profile not found" with Clear on a 404, a disabled chip for-, and "No servers in this profile" with Clear.client=<id>.features.scope_filterslists the parameter, and the URL keeps the parameter untouched meanwhile.useScopeQuery.ts,navModel.tsandSidebarNav.vueare not touched.contracts.tsgains the six kinds and thesettingsubject.macOS
AttentionWarningActionmapper feeds 108-k's warning dispatcher, so each opens Settings (scrolled torequire_mcp_auth), the Clients page, the upgrade sheet, the connect sheet or the Agent Tokens tab filtered by the token. The tray never mutates config or a credential.ScopeFilterTestsadditions for the un-hide, the URL round trip and the profile links.CLI
mcpproxy attention,statusanddoctorrender the new items generically; a golden pins the table with a setting subject and an admin-key client.Audit findings
No audit finding carries a dedicated id for this PR. It implements FR-093, FR-002 (kinds), FR-007 (scoped filtering), FR-082 (the deep links 109-k registered) and parity row 30 of Spec 109.
Spec documents
specs/109 tasks (T151 to T156 plus T152a, T154a, T157, T158, T159; 185 tasks), spec FR-002, FR-007, FR-082, FR-093, contracts/rest-api.md#attention (the kind table), data-model section 4, quickstart recipe 109-l, research D33 (P1 to P15). Spec 108 FR-043 and the Tokens contract gain the revoked-name sentence. docs/features/needs-attention.md lists the new kinds and docs/development/web-ui-verification.md the new sweep spec. ROADMAP regenerated.
Tests added
internal/runtimeattention_108_kinds_test.go(table, ordering, truncation, no secrets, name equality with the Spec 108 codes),attention_108_source_test.go(the set equalsClientsService.Warnings, zero config reads, no clients service),attention_108_subscriber_test.go(events, periodic tick, expiry threshold,firstSeen),attention_108_contract_test.go(exact TypeScript lines),attention_108_bench_test.go(cost at the 100-token deployment cap, about 1 ms);internal/httpapiattention_108_scope_test.go(REST and SSE allow-list),servers_profile_caller_pin_test.go(both list branches),tokens_revoked_name_test.go;cmd/mcpproxyattention_108_cmd_test.gowith a golden.profiles-unhide.spec.ts(features x/profilesroute table),servers-profile-scope.spec.ts,attention-108-targets.spec.ts(each target resolves in the real router).e2e/web-ui-sweep/profiles-unhide.spec.ts(sidebar and Add menu, Viewing chip, Clients and Token links, Servers scope, an expiring credential becoming the first attention item within seconds, 1440/900/390 layout, keyboard order). The 108-i sweep step that clicked a link named "Tools" now clicks the renamed "Tools it sees" link by its test id.Attention108KindsTests, threeScopeFilterTestscases.Deviations from the plan, recorded
helpers/profile-seed.tsise2e/web-ui-sweep/profiles-seed.tson main.AttentionClientWarningalso carriesBindingNames(display names for the guard detail) next toBindingCount, andSince.AttentionList.vuegets noaria-describedby: item ids can contain spaces (custom client ids), which are invalid id references; the summary sits directly above the fix button.Follow-ups