Ir al contenido

Sitios Geo

Geo replica una instancia de GitLab en otros sitios. Estas acciones gestionan los sitios (listar, leer, crear, editar y borrar), reparan la aplicación OAuth de un sitio y leen el estado de replicación de un sitio o de todos. Son acciones de administrador.

  • “Lista los sitios Geo”
  • “¿Cuál es el estado de replicación del sitio Geo 2?”
  • “Repara la aplicación OAuth del sitio secundario”
  • Dinámica, la superficie predeterminada: llama a gitlab_execute_action con action igual al ID de la acción, como geo.create, y sus parámetros en params. gitlab_find_action encuentra un ID a partir de una descripción de la tarea.
  • Meta (GITLAB_MCP_TOOL_SURFACE=meta): llama a gitlab_geo con action igual al nombre de la acción, como create, y sus parámetros en params.
  • Individual (GITLAB_MCP_TOOL_SURFACE=individual): llama a la herramienta propia de la acción, como gitlab_create_geo_site, pasándole directamente sus parámetros.

Cuántas de estas acciones sirve una instancia en cada nivel, de un total de 8:

  • Free: 0
  • Premium: 8
  • Ultimate: 8

Solo se lista para un token que tenga admin_mode: el servidor quita el grupo de todas las superficies a un token cuyos ámbitos conoce y que no lo tiene.

Acciones de solo lectura: 4 de 8, las que conserva un despliegue en modo de solo lectura.

La descripción de cada acción, y la de cada uno de sus parámetros, es el texto que sirve el servidor para ella en la superficie predeterminada, citado tal cual; por eso está en inglés. Una acción destructiva solo se ejecuta una vez confirmada, salvo que GITLAB_MCP_YOLO_MODE (o AUTOPILOT) se salte ese paso: la superficie dinámica necesita confirm: true en gitlab_execute_action, y las otras dos aceptan un parámetro confirm o la pregunta del cliente (Acciones destructivas).

AcciónIndividual
geo.creategitlab_create_geo_site
geo.deletegitlab_delete_geo_site
geo.editgitlab_edit_geo_site
geo.getgitlab_get_geo_site
geo.get_statusgitlab_get_status_geo_site
geo.listgitlab_list_geo_sites
geo.list_statusgitlab_list_status_all_geo_sites
geo.repairgitlab_repair_geo_site

Create a new Geo site. Returns: the site with id, name, url, primary/enabled flags, capacities, selective-sync settings, and navigation links. See also: geo.list, geo.get, geo.edit.

  • Meta-herramienta: gitlab_geo, acción create
  • Herramienta individual: gitlab_create_geo_site
  • Nivel: Premium
  • Comportamiento: escribe, no idempotente
ParámetroTipoRequeridoDescripción
container_repositories_max_capacityintegernoMax number of concurrent container repository syncs
enabledbooleannoWhether the site is enabled
files_max_capacityintegernoMax number of LFS/attachment backfill downloads
internal_urlstringnoInternal URL of the Geo site
minimum_reverification_intervalintegernoMinimum interval (days) before re-verification
namestringnoUnique name of the Geo site
primarybooleannoWhether this is a primary site
repos_max_capacityintegernoMax number of concurrent repository backfill syncs
selective_sync_namespace_idsinteger[]noNamespace IDs to sync (when selective_sync_type=namespaces)
selective_sync_shardsstring[]noStorage shards to sync (when selective_sync_type=shards)
selective_sync_typestringnoSelective sync type: namespaces or shards
sync_object_storagebooleannoWhether to sync object-stored data
urlstringnoExternal URL of the Geo site
verification_max_capacityintegernoMax number of concurrent verification jobs

Delete a Geo site permanently. Returns: a success confirmation naming the site. See also: geo.get, geo.list.

  • Meta-herramienta: gitlab_geo, acción delete
  • Herramienta individual: gitlab_delete_geo_site
  • Nivel: Premium
  • Comportamiento: escribe, destructiva (necesita confirmación), idempotente
ParámetroTipoRequeridoDescripción
idintegersíNumeric ID of the Geo site

Edit a Geo site’s settings. Returns: the updated site with its capacities and selective-sync configuration. See also: geo.get, geo.list, geo.repair.

  • Meta-herramienta: gitlab_geo, acción edit
  • Herramienta individual: gitlab_edit_geo_site
  • Nivel: Premium
  • Comportamiento: escribe, idempotente
ParámetroTipoRequeridoDescripción
idintegersíNumeric ID of the Geo site
container_repositories_max_capacityintegernoMax number of concurrent container repository syncs
enabledbooleannoWhether the site is enabled
files_max_capacityintegernoMax number of LFS/attachment backfill downloads
internal_urlstringnoInternal URL of the Geo site
minimum_reverification_intervalintegernoMinimum interval (days) before re-verification
namestringnoUnique name of the Geo site
repos_max_capacityintegernoMax number of concurrent repository backfill syncs
selective_sync_namespace_idsinteger[]noNamespace IDs to sync
selective_sync_shardsstring[]noStorage shards to sync
selective_sync_typestringnoSelective sync type: namespaces or shards
urlstringnoExternal URL of the Geo site
verification_max_capacityintegernoMax number of concurrent verification jobs

Get a single Geo site by id. Returns: the site with name, url, primary/enabled flags, capacities, selective-sync settings, and navigation links. See also: geo.list, geo.edit, geo.get_status.

  • Meta-herramienta: gitlab_geo, acción get
  • Herramienta individual: gitlab_get_geo_site
  • Nivel: Premium
  • Comportamiento: solo lectura, idempotente
ParámetroTipoRequeridoDescripción
idintegersíNumeric ID of the Geo site

Get replication status for one Geo site. Returns: health, replication lag, and detailed sync/verification/checksum counts and percentages plus navigation links. See also: geo.list_status, geo.get.

  • Meta-herramienta: gitlab_geo, acción get_status
  • Herramienta individual: gitlab_get_status_geo_site
  • Nivel: Premium
  • Comportamiento: solo lectura, idempotente
ParámetroTipoRequeridoDescripción
idintegersíNumeric ID of the Geo site

List all Geo sites. Returns: each site with id, name, url, primary/enabled flags, capacities, and pagination metadata. See also: geo.get, geo.list_status, geo.create.

  • Meta-herramienta: gitlab_geo, acción list
  • Herramienta individual: gitlab_list_geo_sites
  • Nivel: Premium
  • Comportamiento: solo lectura, idempotente
ParámetroTipoRequeridoDescripción
order_bystringnoColumn to order results by (keyset pagination)
pageintegernoPage number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
page_tokenstringnoKeyset pagination cursor: record id at which to fetch the next page, taken from the previous keyset response. Only used when pagination=‘keyset’.
paginationstringnoPagination method: ‘keyset’ for keyset-based pagination on large ordered result sets, or ‘offset’ (the default). Keyset avoids deep-offset cost.
per_pageintegernoItems per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sortstring (asc, desc)noSort direction (asc, desc)

List replication status for all Geo sites. Returns: per-site health, replication lag, and detailed sync/verification/checksum counts and percentages, with pagination metadata. See also: geo.get_status, geo.list.

  • Meta-herramienta: gitlab_geo, acción list_status
  • Herramienta individual: gitlab_list_status_all_geo_sites
  • Nivel: Premium
  • Comportamiento: solo lectura, idempotente
ParámetroTipoRequeridoDescripción
order_bystringnoColumn to order results by (keyset pagination)
pageintegernoPage number to fetch, 1-based. Defaults to 1. Use the next_page field from the previous response to paginate forward.
page_tokenstringnoKeyset pagination cursor: record id at which to fetch the next page, taken from the previous keyset response. Only used when pagination=‘keyset’.
paginationstringnoPagination method: ‘keyset’ for keyset-based pagination on large ordered result sets, or ‘offset’ (the default). Keyset avoids deep-offset cost.
per_pageintegernoItems per page. Defaults to 20, minimum 1, maximum 100. Use 100 to minimize round trips when the result set is large.
sortstring (asc, desc)noSort direction (asc, desc)

Repair a Geo site’s OAuth application. Returns: the repaired site (or a hint to refresh via get when GitLab returns no body). See also: geo.get, geo.get_status.

  • Meta-herramienta: gitlab_geo, acción repair
  • Herramienta individual: gitlab_repair_geo_site
  • Nivel: Premium
  • Comportamiento: escribe, idempotente
ParámetroTipoRequeridoDescripción
idintegersíNumeric ID of the Geo site