Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
2306fb8
feat(oauth): opt-in switch and default-off gate for browser login (Sp…
Dumbris Nov 22, 2026
e0dc9b9
fix(oauth): refuse browser login in every server-edition build (Spec …
Dumbris Nov 22, 2026
bfcc550
feat(oauth): protocol logic for browser login (Spec 132 PR-1b)
Dumbris Nov 22, 2026
1251d0a
fix(oauth): tighten redirect matching and bound in-memory state (Spec…
Dumbris Nov 22, 2026
fb7d861
fix(oauth): align code and request expiry, make limiter admission ato…
Dumbris Nov 22, 2026
8f51f22
feat(oauth): storage for browser logins and one binding writer (Spec …
Dumbris Nov 22, 2026
6d74c98
test(oauth): scope the no-storage check to browser-login state (Spec …
Dumbris Nov 22, 2026
143494c
fix(oauth): harden browser-login storage after review (Spec 132 PR-1c)
Dumbris Nov 22, 2026
8ecda0a
fix(oauth): validate bindings only where a browser-login copy exists …
Dumbris Nov 22, 2026
5716d19
fix(oauth): restore pins by binding incarnation, keep connect snapsho…
Dumbris Nov 22, 2026
3bd6cdd
Merge remote-tracking branch 'origin/feat/client-oauth-login-switch' …
Dumbris Nov 22, 2026
f51b746
feat(oauth): browser-login service, client views and guard (Spec 132 …
Dumbris Nov 22, 2026
a592315
fix(oauth): close cancellation, token-endpoint and client-view gaps (…
Dumbris Nov 22, 2026
4981623
fix(oauth): close exchange/approve races and rollback guard gap (Spec…
Dumbris Nov 22, 2026
17c9397
fix(oauth): fence the exchange with config commits, atomic key creati…
Dumbris Nov 22, 2026
0761328
fix(oauth): fence refresh with config commits, complete key-file fall…
Dumbris Nov 22, 2026
dc01d1a
feat(oauth): browser-login endpoints and access-token auth (Spec 132 …
Dumbris Nov 22, 2026
6c66382
fix(oauth): close stream, cross-site and contract gaps after review (…
Dumbris Nov 23, 2026
f08df21
fix(oauth): end blocked streams on revoke, cancel across quick off/on…
Dumbris Nov 23, 2026
b89b95d
fix(oauth): order the disable epoch, per-run stream tracking (Spec 13…
Dumbris Nov 23, 2026
3f8eacb
fix(oauth): bump the disable epoch only on publish, bind streams to a…
Dumbris Nov 23, 2026
ff2b6e7
test(oauth): end-to-end script, docs and real-client record for brows…
Dumbris Nov 23, 2026
b62f508
test(oauth): harden the browser-login e2e script, correct docs (Spec …
Dumbris Nov 23, 2026
133210d
test(oauth): real-shaped forged tokens, isolate the manual check (Spe…
Dumbris Nov 23, 2026
44ac406
docs(oauth): qualify the server-edition 404 (Spec 132 PR-1f)
Dumbris Nov 23, 2026
5c0b698
docs(oauth): record the Claude Code real-client check (Spec 132 PR-1f)
Dumbris Nov 23, 2026
f118305
feat(oauth): consent page for browser login (Spec 132 PR-2a)
Dumbris Nov 23, 2026
60723ab
fix(oauth): consent page review round 1, backend (Spec 132 PR-2a)
Dumbris Nov 23, 2026
94fb487
fix(oauth): consent page review round 1, page and replace ownership (…
Dumbris Nov 23, 2026
db9a666
fix(oauth): consent page review round 2 (Spec 132 PR-2a)
Dumbris Nov 23, 2026
313f261
fix(oauth): consent page review round 3 (Spec 132 PR-2a)
Dumbris Nov 23, 2026
fef8406
fix(oauth): consent page review round 4 (Spec 132 PR-2a)
Dumbris Nov 23, 2026
0a0cd93
fix(oauth): consent page review round 5 (Spec 132 PR-2a)
Dumbris Nov 23, 2026
09b8281
test(oauth): Playwright spec for the consent page (Spec 132 PR-2a, T061)
Dumbris Nov 23, 2026
a0a84a8
fix(oauth): consent page security review fixes (Spec 132 PR-2a)
Dumbris Nov 23, 2026
4a2f24e
fix(oauth): normalise the initialize name like the registered name (S…
Dumbris Nov 23, 2026
5bba11c
Merge origin/main into feat/client-oauth-login-storage
Dumbris Nov 23, 2026
2f17cd2
Merge storage slice and main into feat/client-oauth-login-runtime
Dumbris Nov 23, 2026
7c19092
test(oauth): fixture credential expiry follows the real clock (Spec 1…
Dumbris Nov 23, 2026
5b20ad1
Merge origin/main into feat/client-oauth-login-runtime
Dumbris Nov 23, 2026
a133327
Merge runtime slice and main into feat/client-oauth-login-http
Dumbris Nov 23, 2026
05e5080
test(auth): skip the key-file mode check on Windows (Spec 132 PR-1d)
Dumbris Nov 23, 2026
b90a6f8
test(storage): repin order test no longer depends on hash luck (Spec …
Dumbris Nov 23, 2026
54653b3
Merge runtime slice into feat/client-oauth-login-http
Dumbris Nov 23, 2026
41a51a6
Merge origin/main into feat/client-oauth-login-http
Dumbris Nov 23, 2026
fed24cd
Merge http slice into feat/client-oauth-login-e2e
Dumbris Nov 23, 2026
db811ed
Merge e2e slice into feat/client-oauth-login-consent
Dumbris Nov 23, 2026
1c10156
fix(server): a stopped run no longer stops or unmarks the next run (S…
Dumbris Nov 23, 2026
bc5ae6f
fix(server): a stop in progress leaves a newly started run alone (Spe…
Dumbris Nov 23, 2026
c247595
Merge remote-tracking branch 'origin/feat/client-oauth-login-http' in…
Dumbris Nov 23, 2026
82da502
Merge remote-tracking branch 'origin/main' into feat/client-oauth-log…
Dumbris Nov 23, 2026
88bb54d
Merge remote-tracking branch 'origin/feat/client-oauth-login-e2e' int…
Dumbris Nov 23, 2026
34994a6
docs: trim the oldest Recent Changes entries from CLAUDE.md
Dumbris Nov 23, 2026
9811711
Merge remote-tracking branch 'origin/feat/client-oauth-login-e2e' int…
Dumbris Nov 23, 2026
6abbf43
Merge remote-tracking branch 'origin/main' into feat/client-oauth-log…
Dumbris Nov 23, 2026
6d31703
test(oauth): run the consent spec in the Web UI sweep (Spec 132 PR-2a)
Dumbris Nov 23, 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
19 changes: 17 additions & 2 deletions docs/api/rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1697,11 +1697,26 @@ reference: the Spec 132 contracts.

- `GET /api/v1/oauth/authorizations`, `GET /api/v1/oauth/authorizations/{id}`:
pending sign-in requests and the data the consent view needs. One uniform `404`
for an unknown, expired, decided or cancelled id.
for an unknown, expired, decided or cancelled id. On the generic address the view
may carry `suggested_client` (`{id, matched}`, `matched` is `id`, `display_name` or
`known_name`): present only when the sanitised reported name (trimmed, any case; a
trailing parenthesised suffix is also tried without it) equals exactly one existing
client's id, display name or known client name, absent otherwise and never on a
per-client address. It is advice for the page, computed on read and never stored: preview
without a `client` answers `200 {"complete": false}` (no `access`, no `guard`) and
approve without one answers `422 client_required`. `previous_login` is
`{grant_id, client_id, approved_at}`: `client_id` is the client that owns that
login (the newest live login of this registration overall). `previous_logins` lists
the newest live login of this registration under each client, so the page can offer
replacement for whichever client is selected on the generic address. Names a client
reports are stripped of Unicode format characters (bidi controls, zero-width
characters) at registration and in a new client's display name. Preview and approve refuse (`422`, field `replace_grant`) a `replace_grant`
that is a live login of this registration owned by another client than the one
chosen; the page offers replacement only for the owning client.
- `POST /api/v1/oauth/authorizations/{id}/preview`: read-only verdict for a
proposed client, profile and mode. `POST .../approve` and `POST .../deny` answer
`{redirect_url}`; approve refuses with `409 already_decided`, `409 binding_changed`,
`409 binding_bypassable_without_auth`, `422 profile_required`, `client_fixed`,
`409 binding_bypassable_without_auth`, `422 client_required`, `profile_required`, `client_fixed`,
`identity_exists`, `reserved_identity` and `404 profile_not_found`.
- `GET /api/v1/clients` and `GET /api/v1/clients/{client}` gain `credentials[]`
(the API key and each browser login: `kind`, `prefix`, `grant_id`, `state`,
Expand Down
5 changes: 5 additions & 0 deletions docs/development/release-gate.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ page disagree):
900 px: the header status pill names servers awaiting review, a secret-like
Manual-add value is masked with a Show toggle, and profile Try it is readable
and labels unsaved edits.
- `client-oauth-consent.spec.ts` (spec 132): the browser-login consent page.
The sweep core runs with `MCPPROXY_MCP_OAUTH_ENABLED=true`; a scripted public
client registers and authorizes, then the page is approved on the per-client
and generic addresses (name suggestion, new client), denied, opened without
an API key, shown a markup-shaped client name, and checked for frame headers.
- `skills-tab.spec.ts` (spec 125): the Skills tab of Server Detail, run by its
own launcher [`scripts/run-skills-tab-sweep.sh`](https://github.com/smart-mcp-proxy/mcpproxy-go/blob/main/scripts/run-skills-tab-sweep.sh)
as a second step of the same job (it needs `enable_skills` and a
Expand Down
2 changes: 2 additions & 0 deletions docs/development/web-ui-verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Alongside it, [`e2e/web-ui-sweep/visual-a11y-sweep.spec.ts`](https://github.com/

[`e2e/web-ui-sweep/usertest-web-fixes.spec.ts`](https://github.com/smart-mcp-proxy/mcpproxy-go/blob/main/e2e/web-ui-sweep/usertest-web-fixes.spec.ts) guards three findings of the first-run user test (Spec 109 T202 and T201, Spec 108 T169) at 1440x900 and 900x900: the header status pill says "awaiting review" for the sweep's quarantined server (compact form keeps the text in its title, no sideways scroll), a secret-like Manual-add env value is a password input with a Show toggle (never submitted), and profile Try it shows no `[object Object]`, says it uses unsaved edits, and the tool counts read "Saved profile:" while a Deny toggle is unsaved. The wizard import flow is covered by vitest and live QA, because the smoke core uses the real HOME for client paths.

[`e2e/web-ui-sweep/client-oauth-consent.spec.ts`](https://github.com/smart-mcp-proxy/mcpproxy-go/blob/main/e2e/web-ui-sweep/client-oauth-consent.spec.ts) guards the browser-login consent page (`specs/132-client-oauth-login`, PR-2a). The launcher starts the sweep core with `MCPPROXY_MCP_OAUTH_ENABLED=true`; against a core with browser login off the spec skips with a reason. A scripted public client registers, authorizes with PKCE and follows the redirect to `/ui/authorize?request=<id>`; the API key reaches the page through localStorage, never a URL. It checks the per-client address (fixed client, "All servers", approve, code and state returned, `tools/list` with the token), the generic address (a reported name of "Cursor" pre-selects the existing `cursor` client, switching to "New client" pre-fills id and name and leaves `cursor` unchanged, an unknown name selects "New client"), deny returning `access_denied` with the original state, the page without an API key (no detail request until a key is set), a markup-shaped client name shown as text, and that the page is never framed.

[`e2e/web-ui-sweep/skills-tab.spec.ts`](https://github.com/smart-mcp-proxy/mcpproxy-go/blob/main/e2e/web-ui-sweep/skills-tab.spec.ts) guards the Skills tab of Server Detail (`specs/125-skills-over-mcp`, PR-4a). It needs `enable_skills` and a skills-capable upstream, so it has its own launcher, [`scripts/run-skills-tab-sweep.sh`](https://github.com/smart-mcp-proxy/mcpproxy-go/blob/main/scripts/run-skills-tab-sweep.sh):

```bash
Expand Down
23 changes: 23 additions & 0 deletions docs/features/client-oauth-login.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,29 @@ are checked again. (The client's registration was already stored when it registe
request with `access_denied`; `.../preview` shows the guard verdict without writing.
Full contract: [REST API](../api/rest-api.md).

### The consent page

The request opens in the Web UI at `/ui/authorize?request=<id>` (the page is never framed:
`frame-ancestors 'none'` and `X-Frame-Options: DENY`). It shows the name the app reports,
labelled as unverified, where the browser returns to, and one sentence on whose access is being
handed over. Everything the app reports is shown as plain text.

- **Per-client address**: the client is fixed. A client that has a profile binding shows it,
without asking; a client with none and configured profiles needs a profile chosen before
Approve is enabled. "Replace the previous browser login" appears only when this same
registration signed in before.
- **Generic address**: the page opens with a client selected and you can change it. When the
reported name equals exactly one existing client's id, display name or known client name
(`Claude Code (my-server)` is also tried as `Claude Code`), that client is pre-selected with
the note `Suggested because the app calls itself "<name>". MCPProxy cannot verify that.`
Otherwise "New client" is selected, with an editable id and name filled from the reported name.
The suggestion decides nothing: approval carries the client the page sent, and a request with
no client is refused (`client_required`).
- The binding guard's verdict is fetched through the preview call whenever the choice is
complete or changes; a refusal is shown with its fixes and Approve stays disabled.
- Without the admin API key in this browser the page asks you to open the request from the
MCPProxy tray or paste the key, and makes no request until then.

## Seeing and revoking logins

`GET /api/v1/clients` and `GET /api/v1/clients/<id>` list each login under `credentials`
Expand Down
Loading
Loading