# API Key Case [Health: Active]

**Category:** 🔒 Security  
**Repository:** https://github.com/melavern/api-key-case  
**GitHub Stars:** 0  
**npm Downloads (last month):** 1332  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/api-key-case

## Description
Local MCP tools for secret status and guarded deployment. Values never reach the agent.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "api-key-case": {
    "command": "npx",
    "args": ["-y","api-key-case","mcp"]
  }
}
```

## Documentation

## What API Key Case does

API Key Case lets an AI coding agent work with registered API keys while keeping the values outside agent messages, reports, and status responses. It stores secrets through a local OS secret store and exposes metadata such as registration state, project setup, readiness, and operation results.

The server covers two related workflows. The basic commands scan a project, produce redacted agent context, save a named secret, and check whether that secret is registered. The agent-first workflow can initialize project instructions, identify missing registrations, request human input, prepare a destination, and summarize results. Supported deployment destinations include Cloudflare, Vercel, and GitHub.

## How it works

A person enters a value through a hidden terminal prompt or, for agent-first requests, a separate Human Plane dialog. The agent can request actions such as `save <NAME> --ask`, but the value is entered outside the agent-facing channel. Responses contain names, statuses, readiness information, and next actions rather than secret values, partial values, hashes derived from values, or value lengths.

Project scanning can inspect `.env.example` and common JavaScript or TypeScript references without reading real `.env` contents. Existing `.env` values can be registered manually, but the original file is not deleted, synchronized, replaced, or otherwise modified. The workflow keeps registration separate from remote deployment and rechecks deployment boundaries before execution.

## Setup and configuration

Node.js 20 or later is required on Windows, macOS, or Linux. Basic commands can be run with `npx`:

```sh
npx -y api-key-case@latest scan .
npx -y api-key-case@latest scan . --agent-report
npx -y api-key-case@latest save OPENAI_API_KEY
npx -y api-key-case@latest check OPENAI_API_KEY
```

For an agent-first project workflow, initialize the repository and inspect the next action:

```sh
api-key-case agent-init .
api-key-case next --json .
api-key-case save OPENAI_API_KEY --ask
api-key-case history --json .
```

`agent-init` writes only within its managed project block, preserves other content, rejects symlinks and junctions, and does not change global or MCP configuration. It can target project instructions for Agents, Claude, or Cursor.

## Tools and capabilities

- Scan a project and generate redacted agent context.
- Save and check one registered value per project and secret name in the legacy workflow.
- Initialize project-specific agent instructions and check for drift without writing.
- Report setup counts, readiness, host requirements, and closed next-action states.
- Open sequential human-controlled input prompts for missing registrations.
- Check deployment history without exposing current secret values.
- Prepare and execute supported provider deployment when the required plan and approvals are available.

## Limitations and notes

Deployment is a Pro feature. Provider login, key issuance, license activation, and operating-system verification remain human prerequisites. On Windows, high-risk approval, removal, and trust-forgetting require Windows 11 build 22000 or later with Windows Hello configured; otherwise those decisions fail closed while scanning, vault operations, and secret input remain available.

The Windows 11 and Windows Hello workflow is the normal Agent-first baseline. macOS has implementation and Keychain evidence, but native GUI approval, Intel hardware, and real-Mac provider deployment remain under verification. Linux supports local diagnosis, status and history, and human-owned-terminal storage when an OS store is available; agent-first input, approval, executing deployment, and approval-required removal are not provided.

Cloudflare Agent-first deployment stops under the tool's safety conditions when a Wrangler project contains a real `.env`, `.env.*`, `.dev.vars`, or `.dev.vars.*` file. `.env.example` is excluded from that check. API Key Case does not alter these files, and local registration remains available.

Never place a real secret in a command argument, issue, chat message, or generated report. Review generated files before sharing them; the tool reduces accidental exposure risk but does not guarantee complete secret protection.

_Full upstream README: https://allmcps.com/mcp/api-key-case/readme_

