---
title: "corestack_deployments_secrets_list"
url: https://docs.corefinity.com/mcp/tools/corestack_deployments_secrets_list
type: tool
last_updated: 2026-11-13
feature: deployment-variables
related:
  - https://docs.corefinity.com/api/reference/deployments/list-site-deployment-secrets.md
  - https://docs.corefinity.com/guides/sites/code-and-deployments/variables-and-secrets.md
---
# corestack_deployments_secrets_list

**Registry secrets.** The environment's npm and Composer registry secrets for builds: registry, scope, last four characters and when each was verified and last used. Never the token. Scope: read.

- Scope: `read`
- Runs as a task: no

## When to use it

The environment's npm and Composer registry secrets for builds: registry, scope, last four characters and when each was verified and last used. Never the token.

The same action in the public REST API, with the same checks, refusals and scope: `GET /api/corestack/sites/{site}/deployments/secrets`.

## Inputs

- `site_id` (integer, ≥ 1, required)

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "site_id": {
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "site_id"
  ],
  "type": "object"
}
```

## Refusals

- The refusals every tool can answer: `invalid_arguments`, `tenant_mismatch`, `scope_required`, `pin_refused`, `rate_limited`, `temporarily_unavailable`, `internal_error` (corestack://guides/how-this-server-works).

## Example

```json
{
  "name": "corestack_deployments_secrets_list",
  "arguments": {
    "site_id": 4211
  }
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_deployments_secrets_list with site_id 4211. (Registry secrets.) Tell me what it returned.
```

## The same task elsewhere

- Endpoint: [GET /api/corestack/sites/{site}/deployments/secrets](https://docs.corefinity.com/api/reference/deployments/list-site-deployment-secrets.md)
- Guide: [Variables](https://docs.corefinity.com/guides/sites/code-and-deployments/variables-and-secrets.md)
