プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

rekey

作者:Ezra-Blackバージョン 0.1.0i★ –iパソコンで動く
レジストリ名io.github.Ezra-Black/rekey

インストール

概要

作者による説明(英語の原文)

Rotate API keys across AWS, GitLab, Cloudflare, OpenAI & more. Secrets never reach the model.

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: 開発者ツール

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • レジストリには、入力が必要なキーは載っていません。

作者はレジストリにインストール情報を載せていません。下にある作者のREADMEをご覧ください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月8日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント Ezra-Black で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

開発者ツールのほかのサーバーとの比較i

  • このカテゴリのほかの4909件のうち0%よりスターが多い
  • このカテゴリのほかの4909件のうち66%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの4909件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

rekeyは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.1.0)がレジストリに届いたのは20 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにRustも必要です。

代わりに使えるものは?

同じカテゴリには:GitHub, Desktop Commander, Cloudflare MCP

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

GitHub

作者:github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

パソコンでもクラウドでも★ 34,245MIT4 日前更新
インストール

Desktop Commander

作者:wonderwhy-er

MCP server for terminal commands, file operations, and process management

パソコンで動く★ 10,225MIT16 日前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

rekey

Rotate API keys and tokens across providers from one CLI: mint the new key, push it to everything that uses it, verify it, retire the old one. Includes an MCP server.

Only touches accounts you administer — every provider acts with your own credential.

CLI — rotate a GitLab token straight into a .env file:

MCP — Claude rotating the same token through rekey mcp; the secret never reaches the model:

Install

Prebuilt binaries for macOS, Linux and Windows: Releases.

Or with Rust (stable):

cargo install rekey

OS keychain support (macOS Keychain, Windows Credential Manager, Linux Secret Service) is built in.

Quick start

Practice on a throwaway GitLab token first. Every command below is safe to copy; replace 28550311 with your own ids from step 3.

1. Make a throwaway token to rotate. In GitLab → *Access tokens*, create a token named kr-test (any scope).

2. Log in. Opens GitLab's token page with the name and api scope pre-filled. Click *Create token*, paste it back (input is hidden).

rekey login gitlab
Checking with GitLab…

✓ Logged in to GitLab as @you. Saved to your macOS Keychain. rekey now works from any terminal — nothing to export.

3. Find the key id.

rekey list gitlab
ID        NAME

28550267 rekey (signed in with this key) 28550311 kr-test

4. Rotate it into a .env file. rekey shows the plan and waits for you.

rekey rotate gitlab 28550311 --dotenv /tmp/kr-test.env:KR_TEST_TOKEN
Here's what will happen:
  1. GitLab replaces "kr-test" with a new token and immediately revokes the old one. This can't be undone.
  2. The new token is saved to KR_TEST_TOKEN in /tmp/kr-test.env.
  3. rekey checks that the new token works.

Go ahead? [Y/n] y

Rotating kr-test… · Rotating (provider revokes old token immediately)… · Updating 1 consumer(s)… · Verifying new token… ✓ Rotated successfully.

New key id: 28550312 Updated: KR_TEST_TOKEN in /tmp/kr-test.env Old token was revoked by the provider.

5. Check and clean up.

cat /tmp/kr-test.env      # KR_TEST_TOKEN=glpat-…

rm /tmp/kr-test.env

Then delete kr-test in GitLab.

For real keys: run rekey rotate gitlab with no arguments — it lets you pick the key and destination and can save that to rekey.toml, so the next rotation is one command. In scripts/CI:

rekey rotate gitlab 28550311 --dotenv .env --yes --no-input

Commands

Command
login [provider]Opens the provider's token page (GitLab: pre-filled), takes the pasted token, verifies it, saves it to the OS keychain. --url for self-hosted GitLab / Datadog site. No provider: show status.
logout Remove saved credentials (doesn't revoke them).
connect Check credentials and key-management access.
list List keys. Column 1 is the id other commands take.
rotate [id]Rotate one key.
rotate-all Rotate every key that has a destination. Skips the key you're signed in with.
retire [id]Deactivate (where supported) or delete an old key. --delete to delete a deactivated key.
mcpMCP server on stdio.

Global: --config , --no-input (fail instead of prompting). --yes skips confirmation. Omitted args are prompted for in a TTY. Flags go in any order. stdout carries only list output and --print-secret values; everything else is stderr.

Destinations

rotate refuses to start unless the new secret has at least one destination.

FlagDestination
--dotenv [:VAR]Set VAR in a .env file. Default VAR per provider; AWS also writes AWS_ACCESS_KEY_ID.
--gh-secret : GitHub Actions secret via gh (stdin).
--ssm : AWS SSM SecureString via aws (stdin).
--secret-file File, mode 0600.
--secret-dir rotate-all: one 0600 file per key.
--keychainOS keychain, service rekey.
--print-secretstdout.

Repeatable flags: --dotenv, --gh-secret, --ssm. --delete-old-now deletes the old key right after the new one is delivered.

Config

./rekey.toml, then ~/.config/rekey/config.toml. Contains no secrets. Interactive rotate can write entries for you.

[[keys]]

provider = "gitlab" name = "ci-deploy" # match on id, name and/or principal consumers = [ { type = "dot_env_file", path = ".env", variable = "GITLAB_TOKEN" }, { type = "github_actions_secret", repo = "me/app", secret_name = "GITLAB_TOKEN" }, ]

[[keys]] provider = "aws" principal = "ci-user" # IAM user; survives the new key id consumers = [ { type = "dot_env_file", path = ".env", variable = "AWS_SECRET_ACCESS_KEY", id_variable = "AWS_ACCESS_KEY_ID" }, { type = "aws_ssm_parameter", name = "/ci/aws", region = "us-east-1" }, ]

Consumer types: dot_env_file, github_actions_secret, aws_ssm_parameter, file, keychain. Match on name/principal for providers that issue a new id per rotation. Relative paths resolve against the config file. Full example: rekey.toml.example.

Credentials

Lookup order: environment variable → saved login (rekey login) → prompt (TTY only, offers to save). Never taken as flags. Rotating the token rekey signs in with (GitLab, Cloudflare) updates the saved login. REKEY_DISABLE_KEYCHAIN=1 disables keychain reads/writes.

Providers

ProviderStyleRotatesCredentialsNotes
awsoverlapIAM access keysaws CLI session, AWS_PROFILEMax 2 keys per user; refuses if both exist. Old key → Inactive.
gitlabatomicPersonal access tokensGITLAB_TOKEN (api scope), GITLAB_URL, GITLAB_TOKEN_EXPIRY_DAYS
cloudflareatomicUser API tokensCLOUDFLARE_API_TOKEN (API Tokens: Edit)Token id is stable.
datadogoverlapAPI keysDD_API_KEY, DD_APP_KEY, DD_SITENo disabled state.
npmoverlapClassic tokensnpm CLI session, NPM_REGISTRYParses CLI output; granular tokens unsupported.
dockerhuboverlapPersonal access tokensDOCKERHUB_USERNAME, DOCKERHUB_PASSWORDNew token gets repo:read+repo:write.
openaioverlapOrg admin keysOPENAI_ADMIN_KEY
anthropicmanual—ANTHROPIC_ADMIN_KEYNo create API; rotate prints Console steps, retire deactivates.
twiliooverlapStandard API keysTWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_API_USER
sendgridoverlapAPI keysSENDGRID_API_KEYCopies scopes from the old key.
github-appephemeralInstallation tokensGITHUB_APP_ID, GITHUB_APP_PRIVATE_KEY_PATH or GITHUB_APP_PRIVATE_KEY~1h tokens; nothing to revoke.

AWS needs the aws CLI, npm needs npm, --gh-secret needs gh.

Want another provider? Request it.

Rotation semantics

StyleSequenceFailure handling
overlapcreate → verify → deliver → deactivate old → (delete old)Verify fails or all deliveries fail: new key deleted, nothing changed. Some deliveries fail: both keys stay live, exit 1.
atomicrotate (old revoked by provider) → deliver → verifyIrreversible. All deliveries fail: secret written to rekey-rescue-*.secret (0600).
ephemeralmint → verify → deliverOld token expires on its own.
manual—Prints manual steps.

Without --delete-old-now, an old key with no disabled state stays active; the output gives the retire command. Exit code is non-zero whenever something needs attention.

MCP

rekey login gitlab

claude mcp add rekey -- rekey mcp --config ~/.config/rekey/config.toml

ToolEnabled by
list_providers, check_connection, list_keysdefaultRead-only.
rotate_key--allow-rotateDelivers only to consumers in your config. No destination args.
retire_key--allow-retireRefuses the server's own login key.

Secret values are never returned to the client. Credentials come from the environment or saved logins. On macOS, allow Keychain access once after installing a new build.

Security

  • Secrets go to subprocesses via stdin, never argv.
  • Files rekey creates are 0600; existing .env permissions are kept; writes are atomic.
  • Secret values are printed only with --print-secret.
  • Report vulnerabilities privately via the repo's Security tab.

Contributing

  • New provider or feature: open an issue.
  • Code: see CONTRIBUTING.md. A provider is one file implementing the Connector trait.

Links

  • crates.io: rekey
  • MCP Registry name — mcp-name: io.github.Ezra-Black/rekey

Credits

Built by Ezra Black — ezrablack.dev.

License

MIT

PopNxに聞く