mcpproxy-go icon indicating copy to clipboard operation
mcpproxy-go copied to clipboard

Follow-ups from Spec 108-c2 client credentials review (#1430)

Open Dumbris opened this issue 2 months ago • 0 comments

Low-severity findings left open after the review and live QA of #1430 (Spec 108-c2).

  • [ ] internal/runtime/clients_service.go setBindingLocked checks that the requested profile exists before it checks whether the client has an active credential. A binding request for a client with no active credential that also names an unknown profile therefore returns 400 unknown profile. The contract says it should return 409 no_client_credential. Fix: do the credential-state check first.
  • [ ] internal/server/profile_resolver.go:338-341 resolveEffectiveProfileForJustSetSlug treats ac.ProfilePin as authoritative without checking ProfileMode. Example: a switchable client bound to ro calls set_profile("full") and gets back servers:["github"], which is ro's list, although full's tools are reachable. The reported list understates reach (it errs toward closed), and enforcement is not affected. The T029 rows do not assert servers.
  • [ ] CLI: refusal Error: lines print twice for connect errors. connect <existing entry> without --force prints "Failed" but exits 0. These predate this PR.
  • [ ] PATCH /config answers "No configuration changes detected" even though the change is persisted. This predates this PR.
  • [ ] disconnect leaves the client credential active; only undo or the 108-f forget route revoke it. Decide whether disconnect should revoke it, and document the choice.

Dumbris avatar Sep 30 '26 13:09 Dumbris