secret

secret is a command for coding agents from paiml/rust-mcp-sdk. It costs 0 tokens per session (1,358 once invoked), scanned A, original, MIT.

A command for storing and managing sensitive values, such as API keys, for MCP servers across local storage, pmcp.run, or AWS.

In plain words
What is it for?
Use it to list secret names, read, create, update, or delete secrets, check provider status, and synchronize secrets from configuration.
Why use it?
It keeps secret values separate from ordinary configuration and names them by server to avoid conflicts.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/paiml/rust-mcp-sdk/secret
Clone the repo
git clone --depth 1 https://github.com/paiml/rust-mcp-sdk

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for secret

README.md
[![agentmods](https://agentmods.dev/badge/commands/paiml/rust-mcp-sdk/secret.svg)](https://agentmods.dev/commands/paiml/rust-mcp-sdk/secret)
Your own site
<a href="https://agentmods.dev/commands/paiml/rust-mcp-sdk/secret"><img src="https://agentmods.dev/badge/commands/paiml/rust-mcp-sdk/secret.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,358 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01358
Opus 5 $0.00000 $0.00679
Sonnet 5 $0.00000 $0.00272
Haiku 4.5 $0.00000 $0.00136

Measured 4d ago against content hash 3d1df7d1e96c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

secret scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

cargo-pmcp/docs/commands/secret.md · 241 lines

How it starts

The opening of the file, as written. The whole thing — 241 lines — stays where its author put it; the contents beside it link to each section on GitHub.

cargo pmcp secret

Manage secrets for MCP servers.

Usage

cargo pmcp secret <SUBCOMMAND> [OPTIONS]

Description

Store and retrieve secrets across multiple providers (local, pmcp.run, AWS). Secrets are namespaced by server ID to avoid conflicts.

Secret names follow the format {server-id}/{SECRET_NAME}, for example: chess/ANTHROPIC_API_KEY.

Global Options

These options apply to all subcommands:

Option Default Description
--target <PROVIDER> auto-detected Target provider: pmcp, aws, local
--profile <NAME> - Profile from .pmcp/config.toml
--server <ID> - Server ID for namespacing secrets
--format <FMT> text Output format: text or json
--quiet - Suppress non-essential output

Auto-detection priority: pmcp.run auth > AWS credentials > local filesystem.

Subcommands

Subcommand Description
list List secrets (names only, never values)
get Get a secret value
set Set a secret value
delete Delete a secret
providers Show provider status
sync Sync secrets from configuration

secret list

List secrets (names only, never values).

cargo pmcp secret list [OPTIONS]

Options

Option Description
--filter <PATTERN> Filter by name pattern (glob syntax)
--metadata Include metadata (creation date, version)

Example

cargo pmcp secret list --server myserver
cargo pmcp secret list --server myserver --target pmcp --format json

secret get

Get a secret value.

cargo pmcp secret get <NAME> [OPTIONS]

Arguments

Argument Required Description
NAME Yes Secret name (format: server-id/SECRET_NAME)

Options

Option Description
--output <PATH> Write to file instead of stdout
--no-newline Omit trailing newline (for piping)

Read the full file on GitHub · 241 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 241 lines · 0 tokens per session scan A 3d1df7d1e96c

Subscribe to this mod's changes

secret is a command published in the GitHub repository paiml/rust-mcp-sdk (53 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,358 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.