Home / Servers / Stripe API / post_apps_secrets

Set a Secret

An MCP tool from the Stripe API server, hosted on mcp.hjlabs.in.

Set a Secret Create or replace a secret in the secret store. [POST /v1/apps/secrets]

Name on the gateway: stripe_api__post_apps_secrets · may change things.

Parameters

NameTypeDescription
expandarraySpecifies which fields in the response should be expanded.
expires_atintegerThe Unix timestamp for the expiry time of the secret, after which the secret…
name requiredstringA name for the secret that's unique within the scope.
payload requiredstringThe plaintext secret value to be stored.
scope requiredobjectSpecifies the scoping of the secret. Requests originating from UI extensions…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "stripe_api__post_apps_secrets",
  "arguments": {
    "name": "…",
    "payload": "…",
    "scope": "…"
  }
}

Or connect the Stripe API server directly, which lists 606 tools including this one:

Run in your terminal
claude mcp add --transport http hj-stripe-api https://mcp.hjlabs.in/mcp/stripe-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the set a secret tool with expand set to ….

More from Stripe API