Fixes from review: setup's memory check, MCP secrets, VS Code, bandwidth
CI / test (push) Successful in 9m47s

- server init run again on a machine already set up is not refused its
  memory (the docs fix a certificate with --host so), and judges count
  only when one will be installed (judgeComes: not without a mirror, nor
  from a bundle without it).
- A server's sealed secrets that it no longer reads are removed when it is
  put or deleted; replacing a credential replaces every header it was
  sent, rather than adding one beside the old.
- llmgw.gatewayUrl is a machine setting and restricted in untrusted
  workspaces: a cloned repository's settings cannot send a sign-in to
  another gateway.
- The bandwidth buffer is at least eight times the CPU's last cache and at
  most a quarter of free memory, else nothing is measured until there is
  room; a registration carries the figure measured so far.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-10-29 08:23:00 +01:00
1 parent 54c6b66cb9
commit b986ea180d
12 files changed
+197 -20

No files matched your search

+4 -1
View File
@@ -210,7 +210,10 @@ func (p *AccountPages) RegisterAdminMCP(mux *http.ServeMux, s MCPAdmin, local fu
err = errors.New(l.T("mcp.err.no_secret"))
}
if err == nil {
err = put(r, admin, name, adminapi.MCPServerRequest{Secrets: secrets})
// In place of every credential it was sent, not beside them: a
// bearer token given where an X-Api-Key was must not leave the
// key still sent.
err = put(r, admin, name, adminapi.MCPServerRequest{Secrets: secrets, HeaderRefs: map[string]string{}})
}
done(w, r, admin, "mcp server "+name, l.T("mcp.credential_replaced", name), err)
}))