---
title: "corestack_company_magento_keys_get"
url: https://docs.corefinity.com/mcp/tools/corestack_company_magento_keys_get
type: tool
last_updated: 2026-11-13
feature: magento
related:
  - https://docs.corefinity.com/api/reference/organisation/get-company-magento-keys.md
  - https://docs.corefinity.com/guides/platforms/magento-2.md
---
# corestack_company_magento_keys_get

**Read the Magento repository keys.** Read which repo.magento.com keys your company's Magento 2 sites install packages with: your own (the public key's last four characters and when they were checked) or Corefinity's. For a client company your agency manages, send client_company_id. Scope: read.

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

## When to use it

Read which repo.magento.com keys your company's Magento 2 sites install packages with: your own (the public key's last four characters and when they were checked) or Corefinity's. For a client company your agency manages, send `client_company_id`.

`updated_by` names who set the keys in force (`id`, `name`) and `agency`: the agency (`id`, `name`) they set them for when a managing agency set a client company's keys, otherwise null.

## Inputs

- `client_company_id` (integer, at least 1): A client company your agency manages, by id. Omit for your own company.

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "client_company_id": {
      "description": "A client company your agency manages, by id. Omit for your own company.",
      "minimum": 1,
      "type": "integer"
    }
  },
  "type": "object"
}
```

## Refusals

- `tenant_mismatch` (with `client_company_id`): the company is not one your agency manages, or it does not exist; the same answer for both. Being attached to your agency is not enough: one of its live CoreStack sites must name your agency as its managing agency.
- `pin_refused` (with `client_company_id`): a token limited to some sites cannot act on a client company's keys.
- 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_company_magento_keys_get",
  "arguments": {}
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_company_magento_keys_get. (Read the Magento repository keys.) Tell me what it returned.
```

## The same task elsewhere

- Endpoint: [GET /api/companies/{company}/magento-keys](https://docs.corefinity.com/api/reference/organisation/get-company-magento-keys.md)
- Guide: [Magento 2](https://docs.corefinity.com/guides/platforms/magento-2.md)
