You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(tokens): permanently delete agent tokens to free the name for reuse (#820) (#821)
Revoking an agent token is a soft delete: the record is kept so the token
name stays reserved, which blocks creating a new token with the same name
(issue #820). This adds a permanent delete that removes the token record and
its name->hash mapping, freeing the name for reuse.
- storage: DeleteAgentToken(name) removes both the agent_tokens record and the
agent_token_names mapping in one tx.
- REST: DELETE /api/v1/tokens/{name}/permanent (distinct from the existing
revoke DELETE /api/v1/tokens/{name}). Admin-only, 204/404.
- server edition: parallel DELETE /api/v1/user/tokens/{name}/permanent, scoped
to the authenticated user.
- CLI: `mcpproxy token delete <name>` (aliases: rm, remove).
- Web UI: a Delete button on revoked/expired tokens (active tokens must be
revoked first) with a confirm dialog.
- docs + agent-tokens API contract updated.
Tests: storage/API delete + name-reuse-after-delete, CLI subcommand wiring.
0 commit comments