{{define "content"}}{{template "settings-start" .}}{{with .Data}}

← {{.Agent.Name}}

{{if eq .Why "rotated"}}{{.Agent.Name}}'s new key{{else}}{{.Agent.Name}}'s key{{end}}

Copy it now: it isn't shown again. Only a hash of it is kept.

{{.Key}}
{{if eq .Why "rotated"}}

The old key keeps working for another day; switch whatever uses it to this one.

{{end}} {{if .Hermes}}

It's also in mcp-token in the data folder now. Hermes itself uses the socket and needs nothing; Claude Code's setup needs the new key: claude mcp remove supermarket, then add it again as below.

{{end}}

Using it

An MCP client reaches {{.MCPURL}} (streamable HTTP) with the header Authorization: Bearer <key>. For Claude Code:

claude mcp add --transport http supermarket {{.MCPURL}} --header "Authorization: Bearer {{.Key}}"
{{end}}{{template "settings-end"}}{{end}}