MCP Servers: regenerate-token + client config snippets at disclosure#75
Open
lezama wants to merge 1 commit into
Open
MCP Servers: regenerate-token + client config snippets at disclosure#75lezama wants to merge 1 commit into
lezama wants to merge 1 commit into
Conversation
Fixes the token-recovery footgun found in UX review #5: - Add `OpenclaWP_Mcp_Server_Store::regenerate_token( $slug )` and an `admin-post.php` handler so each row in the list view exposes a Regenerate token link. - Bump the flash transient TTL from 60 s to 15 min and switch the disclosure render to a non-destructive `peek_flashed_token()`. An explicit acknowledge handler (or transient expiry) is now what purges the plaintext, so an accidental refresh isn't terminal. - Render Claude Code / Cursor / VS Code config snippets (stacked cards, inline `navigator.clipboard.writeText` Copy buttons) below the disclosed token so admins can paste straight into their config. - Update the page subtitle to describe the recoverable-for-15-minutes contract. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the MCP Server token-recovery footgun found during the UX review (finding #5):
Why
Previously, a user who closed the disclosure page lost access and had to delete + recreate the server. The named clients in the subtitle (Claude Code / Cursor / VS Code) also got no help formatting the config — every user paid the same lookup cost.
Test plan
🤖 Generated with Claude Code