CorefinityCorefinityDocs
Open the Control PanelControl Panel
Deployments · 47 of 65

corestack_enterprise_repositories_list

CoreStack Enterprise repositories.

Scope readNo secrets returned
On this page

When to use it

List the git repositories and branches a CoreStack Enterprise environment deploys from, as its environment page's Repositories field shows them to the person, and the git accounts they may set a repository up with (connections: use one's id as connection_id in corestack_enterprise_repository_set).

A repository set up with a git account the person cannot use (another agency's, or their agency's when they are its client) is listed with connection_hidden: true and no provider, repository, branch or root directory; connection_owner names the agency that set it up only to its client.

can_manage and can_set say what your role may do with the repositories, each {available, reason}: can_manage for corestack_enterprise_repository_remove (Manage Deployment Repositories), can_set for corestack_enterprise_repository_set (that, and Create Deployments while a push deploys on its own). When one is not available, reason is the sentence those tools refuse with, naming the permission and who can grant it.

The public API's GET /api/environments/{environment}/repositories and .../repositories/connections answer the same. The repositories answer carries can_manage and can_set beside environment_repositories; the connections answer is connections alone.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_enterprise_repositories_list with enterprise_env_id 1530. (CoreStack Enterprise repositories.) Tell me what it returned.

Inputs

enterprise_env_idintegerRequired

A CoreStack Enterprise environment's id; for CoreStack or CoreCluster use the corestack_deployment_* tools. At least 1.

Example call

tools/call
{
  "name": "corestack_enterprise_repositories_list",
  "arguments": {
    "enterprise_env_id": 1530
  }
}

If it is refused

ReasonWhat to do
invalid_argumentsA CoreStack or CoreCluster environment; use the corestack_deployments_* tools by site_id.
tenant_mismatchThe object does not exist or the token may not see it. Check the id.
pin_refusedThe grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it.
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