CorefinityCorefinityDocs
Open the Control PanelControl Panel
Integrations · 9 of 39

corestack_company_magento_keys_update

Set the Magento repository keys.

Scope writeNo secrets returnedCoreCluster
On this page

When to use it

Set your company's own repo.magento.com access keys, used by its Magento 2 sites to install packages. They are checked with repo.magento.com before they are saved. For a client company your agency manages, send client_company_id.

When your agency sets a client company's keys, the client company's owners are emailed which agency and which person added or replaced them, and when; never a key. The answer's updated_by.agency names your agency.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_company_magento_keys_update with public_key 0123456789abcdef0123456789abcdef, private_key fedcba9876543210fedcba9876543210. (Set the Magento repository keys.) Tell me what it returned.

Inputs

client_company_idinteger

A client company your agency manages, by id. Omit for your own company. At least 1.

private_keystring

32 characters: 0–9 and a–f. While app_versions is on, leave both keys out to have the person add them in the Control Panel (Company settings, Magento Marketplace keys): the call asks for the page to be opened and answers the saved keys on the retry; one key without the other is invalid_arguments.

public_keystring

32 characters: 0–9 and a–f.

Example call

tools/call
{
  "name": "corestack_company_magento_keys_update",
  "arguments": {
    "public_key": "0123456789abcdef0123456789abcdef",
    "private_key": "fedcba9876543210fedcba9876543210"
  }
}

If it is refused

ReasonWhat to do
upstream_unavailableThe Control Panel answered 502: the cluster, a DNS resolver, Cloudflare, Mailgun, a Git provider, Google, Xero or Cloud Storage did not answer; details.upstream names it; retry later.
tenant_mismatchThe 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_refusedA token limited to some sites cannot act on a client company's keys.
invalid_argumentsGive both keys. Without the organisation pages, the Control Panel has no page where the person could add a client company's keys.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
rate_limitedToo many calls. Wait for the number of seconds the answer names.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT