Grafo de conocimiento Orbit
Orbit es el grafo de conocimiento experimental de GitLab.com sobre el código y los datos de los proyectos. Sus quince acciones solo se sirven a una sesión conectada a GitLab.com con Premium o Ultimate, y todas leen: orbit.status comprueba el servicio, orbit.schema describe el grafo, orbit.dsl sirve el lenguaje de consulta, orbit.query ejecuta una consulta y orbit.named_query una de las consultas con nombre de GitLab, orbit.grep busca en un grupo o proyecto, orbit.context resuelve una referencia a su resumen, orbit.graph_status informa de la indexación de un espacio de nombres o de un proyecto, y orbit.tools, orbit.command_list, orbit.response_format, orbit.query_templates y las tres lecturas de skills describen lo que sirve Orbit. GitLab.com solo sirve el índice de un grupo y sus consultas bajo el acceso a Orbit del grupo de nivel superior. La página de Orbit explica el flujo de trabajo.
Preguntas de ejemplo
Sección titulada «Preguntas de ejemplo»- “¿Está disponible Orbit para este token de GitLab.com?”
- “Muestra el esquema del grafo de conocimiento”
- “¿Ha terminado de indexarse gitlab-org/gitlab?”
- “Busca en gitlab-org/gitlab los merge requests sobre límites de peticiones”
- “Resume este merge request con sus archivos cambiados y sus jobs fallidos”
- “Ejecuta la plantilla de consulta recent_merges”
Cómo llamarlo
Sección titulada «Cómo llamarlo»- Dinámica, la superficie predeterminada: llama a
gitlab_execute_actionconactionigual al ID de la acción, comoorbit.command_list, y sus parámetros enparams.gitlab_find_actionencuentra un ID a partir de una descripción de la tarea. - Meta (
GITLAB_MCP_TOOL_SURFACE=meta): llama agitlab_orbitconactionigual al nombre de la acción, comocommand_list, y sus parámetros enparams. - Individual (
GITLAB_MCP_TOOL_SURFACE=individual): llama a la herramienta propia de la acción, comogitlab_orbit_command_list, pasándole directamente sus parámetros.
Disponibilidad
Sección titulada «Disponibilidad»Cuántas de estas acciones sirve una instancia en cada nivel, de un total de 15:
- Free: 0
- Premium: 0 en una instancia autogestionada, 15 en GitLab.com
- Ultimate: 0 en una instancia autogestionada, 15 en GitLab.com
Acciones de solo lectura: 15 de 15, las que conserva un despliegue en modo de solo lectura. A un token con read_api y sin api se le sirven 15 de las 15.
Acciones
Sección titulada «Acciones»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. Las líneas de token dicen lo que exige GitLab 19.6.1 a un token para las peticiones que envía cada acción; en una instancia con Admin Mode activado, una acción que solo puede ejecutar un administrador necesita además admin_mode.
| Acción | Individual |
|---|---|
orbit.command_list |
gitlab_orbit_command_list |
orbit.context |
gitlab_orbit_context |
orbit.dsl |
gitlab_orbit_dsl |
orbit.graph_status |
gitlab_orbit_graph_status |
orbit.grep |
gitlab_orbit_grep |
orbit.named_query |
gitlab_orbit_named_query |
orbit.query |
gitlab_orbit_query |
orbit.query_templates |
gitlab_orbit_query_templates |
orbit.response_format |
gitlab_orbit_response_format |
orbit.schema |
gitlab_orbit_schema |
orbit.skill_file |
gitlab_orbit_skill_file |
orbit.skill_get |
gitlab_orbit_skill_get |
orbit.skill_list |
gitlab_orbit_skill_list |
orbit.status |
gitlab_orbit_status |
orbit.tools |
gitlab_orbit_tools |
orbit.command_list
Sección titulada «orbit.command_list»List the commands GitLab’s Orbit (Knowledge Graph) MCP endpoint runs, with the description and input schema of each and the action of this server that runs it: query_graph is orbit.query, get_graph_schema is orbit.schema and get_response_format is orbit.response_format.
- Meta-herramienta:
gitlab_orbit, accióncommand_list - Herramienta individual:
gitlab_orbit_command_list - Nivel: Premium, solo GitLab.com
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Orbit: Read en usuario (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
command_names |
string[] |
no | Names of the Orbit commands to describe (query_graph, get_graph_schema, get_response_format). Empty describes every command. |
response_format |
string |
no | Response format: raw or llm (json is read as raw). When omitted, raw. |
orbit.context
Sección titulada «orbit.context»Resolve one reference to a work item, merge request, job, pipeline, branch or commit through GitLab Orbit (Knowledge Graph) and read its summary, discussions, changed files and failed jobs’ logs, and with expand the graph neighborhood of one of the first three, one billable query. A reference it cannot resolve is found false with the reason, not_found also for an object the user or token may not read: a fine-grained token needs, beside read_orbit, permission to read on the object’s own project or group. Summary parts it may not read are left out, and a failed expansion carries its reason.
- Meta-herramienta:
gitlab_orbit, accióncontext - Herramienta individual:
gitlab_orbit_context - Nivel: Premium, solo GitLab.com
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Orbit: Read en usuario (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
tokens |
string[] |
sí | Exactly one reference to a GitLab object: Type[id] (WorkItem[1], Job[2]), a GID, an instance URL, path!iid (merge request), path#iid (work item), path&iid (epic) or path@ref (branch or commit). orbit.grep returns the token of a work item, merge request, commit or branch it finds |
expand |
boolean |
no | Attach the graph neighborhood of a work item, merge request or job, which GitLab reads with one graph query billed like orbit.query; false reads the summary alone |
response_format |
string |
no | Response format: raw (structured JSON, the default) or llm (compact text). json is read as raw. |
orbit.dsl
Sección titulada «orbit.dsl»Read the GitLab Orbit (Knowledge Graph) query language GitLab.com compiles queries in, GQL, as Orbit’s query command describes it: its grammar and the JSON Schema of its input, or the same as compact text.
- Meta-herramienta:
gitlab_orbit, accióndsl - Herramienta individual:
gitlab_orbit_dsl - Nivel: Premium, solo GitLab.com
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Orbit: Read en usuario (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
response_format |
string |
no | Response format: raw or llm (json is read as raw). When omitted, raw. |
orbit.graph_status
Sección titulada «orbit.graph_status»Inspect GitLab Orbit (Knowledge Graph) indexing status for one group or project, by namespace_id, project_id or full_path: whether Orbit is on, the indexing state of each area, the project counts and the indexed items of each domain, and for a top-level group its Orbit access and trial, which decide whether GitLab.com serves the index at all.
- Meta-herramienta:
gitlab_orbit, accióngraph_status - Herramienta individual:
gitlab_orbit_graph_status - Nivel: Premium, solo GitLab.com
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: una de: Group: Read en grupo; Orbit: Read en usuario o Project: Read en proyecto; Orbit: Read en usuario o Group: Read en grupo; Orbit: Read en usuario; Project: Read en proyecto (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
full_path |
string |
no | Full path of a group or project to inspect, for example gitlab-org/gitlab. Set exactly one scope field. |
namespace_id |
integer |
no | Group ID to inspect. Set exactly one of namespace_id, project_id, or full_path. |
project_id |
integer |
no | Project ID to inspect. Set exactly one of namespace_id, project_id, or full_path. |
response_format |
string |
no | Accepted for compatibility: raw, llm or json. GitLab answers this through GraphQL, which has one structured shape, so every value returns the same output. |
orbit.grep
Sección titulada «orbit.grep»Search what one group or project holds through GitLab Orbit (Knowledge Graph): work items, merge requests, code, commits, notes, milestones, users, projects, groups and branches, by namespace_id, project_id or full_path. Every hit but a file carries its token, which orbit.context reads for a work item, merge request, commit or branch, a note also the token of what it is on, and most carry the id orbit.query filters on.
- Meta-herramienta:
gitlab_orbit, accióngrep - Herramienta individual:
gitlab_orbit_grep - Nivel: Premium, solo GitLab.com
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Orbit: Read, Global Search: Use en usuario (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
search |
string |
sí | What to search for, 2 to 256 bytes once trimmed |
full_path |
string |
no | Full path of the group or project to search. Give exactly one of namespace_id, project_id and full_path |
limit |
integer |
no | Most results to answer, 1 to 50. GitLab answers 20 when omitted |
namespace_id |
integer |
no | ID of the group to search. Give exactly one of namespace_id, project_id and full_path |
per_scope |
integer |
no | Most results of one scope, 1 to 10 and never above limit. When omitted, 5, or limit when that is lower |
project_id |
integer |
no | ID of the project to search. Give exactly one of namespace_id, project_id and full_path |
response_format |
string |
no | Response format: raw (structured JSON, the default) or llm (compact text). json is read as raw. |
scopes |
string[] |
no | What to search: work_items, merge_requests, blobs, commits, notes, milestones, users, projects, groups, branches, an alias (mr, issue, code, comment, branch) or a node name (MergeRequest, File). Every scope but branches when omitted. branches is a project’s alone, for a user who can read its code, and a fine-grained access token needs read_branch there; otherwise it is answered unavailable, not_available_for_target |
Además necesita exactamente uno de estos: namespace_id; project_id; full_path.
orbit.named_query
Sección titulada «orbit.named_query»Run one of GitLab Orbit’s (Knowledge Graph) named queries by name: a template orbit.query_templates lists, which takes no parameters, or one of the queries that take node ids, an entity, a file path or search text, which the description of parameters lists with what each takes. The answer is the envelope orbit.query returns.
- Meta-herramienta:
gitlab_orbit, acciónnamed_query - Herramienta individual:
gitlab_orbit_named_query - Nivel: Premium, solo GitLab.com
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Orbit: Read en usuario (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
name |
string |
sí | Named query to run: a template orbit.query_templates lists (recent_merges) or a query that takes parameters (context_for_job) |
parameters |
object |
no | The named query’s parameters by name, an object. A template takes none (empty or omitted). The others: context_for_issue, context_for_job, context_for_review, expand_merge_request and expand_work_item take node_ids (a list of ids) and limit, both required; expand_neighbors takes entity, node_ids and limit; definition_callees and definition_references take node_id, a string; file_definitions and file_definition_callers take project_id and file_path; list_nodes takes entity; search_nodes takes entity, field and text. Give an id of 2^53 or beyond, such as a definition’s or a file’s, as a decimal string: as a number it is refused. |
response_format |
string |
no | Response format: raw (structured JSON, the default), llm (compact text) or gql (a graph pattern table). json is read as raw. |
orbit.query
Sección titulada «orbit.query»Execute a read-only GitLab Orbit (Knowledge Graph) query in GQL, the language orbit.dsl describes, naming what orbit.schema lists. A query is one MATCH … RETURN statement sent as text, with at least one node bounded by its id or a literal property, and a refused query is corrected from the message GitLab answers with.
- Meta-herramienta:
gitlab_orbit, acciónquery - Herramienta individual:
gitlab_orbit_query - Nivel: Premium, solo GitLab.com
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Orbit: Read en usuario (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
query |
string |
sí | Orbit query as GQL text, the read-only openCypher 9 based language GitLab.com compiles (orbit.dsl describes it). One statement: MATCH pattern [WHERE predicates] RETURN projections [ORDER BY key [ASC or DESC]] [SKIP n] [LIMIT n]. Label every node and anchor at least one by its id or a literal property, as in MATCH (p:Project {full_path: ‘gitlab-org/gitlab’}) RETURN p.id, p.full_path LIMIT 1; LIMIT is not a filter. A relationship type follows a colon, -[:IN_PROJECT]->, several types are joined by |, -[:IN_PROJECT|CONTAINS*1..3]->, and a repeat is bounded, *1..3 at most. A shortest path, MATCH path = ANY SHORTEST (mr:MergeRequest {id: 1})-[:IN_PROJECT*1..3]->(p:Project {id: 2}) RETURN path, labels and anchors both ends and names its relationship types: GitLab.com refuses the wildcard -[*1..3]-> there. WHERE takes AND and NOT, never OR. count, sum, avg, min and max aggregate, and every other RETURN item groups; alias an aggregate and sort by the alias: RETURN p, count(mr) AS mr_count ORDER BY mr_count DESC. SKIP takes 0 to 10000 and LIMIT 1 to 1000. orbit.schema lists the entities, properties and relationship types a query names. The JSON query DSL GitLab.com read before is gone. GitLab refuses a query it cannot compile with a message naming the fault. |
response_format |
string |
no | Response format: raw (structured JSON, the default here), llm (compact text) or gql (the result as a graph pattern table). json is read as raw. |
orbit.query_templates
Sección titulada «orbit.query_templates»List the GitLab Orbit (Knowledge Graph) query templates GitLab.com renders for the token’s user: the name, description and GQL text of each. The text binds the user’s own id where a template asks about the user, so it is that user’s alone. The named queries that take parameters are not listed.
- Meta-herramienta:
gitlab_orbit, acciónquery_templates - Herramienta individual:
gitlab_orbit_query_templates - Nivel: Premium, solo GitLab.com
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Orbit: Read en usuario (página de permisos)
- Comportamiento: solo lectura, idempotente
Sin parámetros.
orbit.response_format
Sección titulada «orbit.response_format»Read the JSON Schema of the raw answer a GitLab Orbit (Knowledge Graph) query returns, with its version, or the same schema as compact text.
- Meta-herramienta:
gitlab_orbit, acciónresponse_format - Herramienta individual:
gitlab_orbit_response_format - Nivel: Premium, solo GitLab.com
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Orbit: Read en usuario (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
response_format |
string |
no | Response format: raw or llm (json is read as raw). When omitted, raw. |
orbit.schema
Sección titulada «orbit.schema»Inspect the GitLab Orbit (Knowledge Graph) schema: domains, node kinds and edge kinds, with the properties of the node kinds named in expand, or the schema as compact text.
- Meta-herramienta:
gitlab_orbit, acciónschema - Herramienta individual:
gitlab_orbit_schema - Nivel: Premium, solo GitLab.com
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Orbit: Read en usuario (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
expand |
string[] |
no | Node names whose properties to include, for example Project or MergeRequest. Without it, nodes are listed without properties. |
format |
string |
no | Schema response format: raw (structured, the default) or llm (compact text; json is read as raw). |
response_format |
string |
no | Alias for format. Must match format when both are set. |
orbit.skill_file
Sección titulada «orbit.skill_file»Read one file of a deployed GitLab Orbit (Knowledge Graph) skill, by skill name and the file’s path relative to the skill root, as GitLab.com serves it.
- Meta-herramienta:
gitlab_orbit, acciónskill_file - Herramienta individual:
gitlab_orbit_skill_file - Nivel: Premium, solo GitLab.com
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Orbit: Read en usuario (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
name |
string |
sí | Skill name as orbit.skill_list lists it |
path |
string |
sí | File path relative to the skill root, as orbit.skill_get lists it (SKILL.md, references/gql.md) |
orbit.skill_get
Sección titulada «orbit.skill_get»Inspect one deployed GitLab Orbit (Knowledge Graph) skill by name: its version, compatibility and the files it holds, with the path, digest and size of each. File content is read one file at a time.
- Meta-herramienta:
gitlab_orbit, acciónskill_get - Herramienta individual:
gitlab_orbit_skill_get - Nivel: Premium, solo GitLab.com
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Orbit: Read en usuario (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
name |
string |
sí | Skill name as orbit.skill_list lists it: lowercase letters, digits and dashes, starting with a letter or digit (orbit, orbit-start) |
orbit.skill_list
Sección titulada «orbit.skill_list»List the GitLab Orbit (Knowledge Graph) skills GitLab.com has deployed: the name, version, compatibility and description of each.
- Meta-herramienta:
gitlab_orbit, acciónskill_list - Herramienta individual:
gitlab_orbit_skill_list - Nivel: Premium, solo GitLab.com
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Orbit: Read en usuario (página de permisos)
- Comportamiento: solo lectura, idempotente
Sin parámetros.
orbit.status
Sección titulada «orbit.status»Inspect the health of the GitLab Orbit (Knowledge Graph) service on GitLab.com: its state, version and the state of each component.
- Meta-herramienta:
gitlab_orbit, acciónstatus - Herramienta individual:
gitlab_orbit_status - Nivel: Premium, solo GitLab.com
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Orbit: Read en usuario (página de permisos)
- Comportamiento: solo lectura, idempotente
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
response_format |
string |
no | Accepted for compatibility: raw, llm or json. GitLab answers this through GraphQL, which has one structured shape, so every value returns the same output. |
orbit.tools
Sección titulada «orbit.tools»List the tools GitLab’s Orbit (Knowledge Graph) MCP endpoint serves and the input schema of each: list_commands and invoke_command, whose commands orbit.command_list describes with the action of this server that runs each.
- Meta-herramienta:
gitlab_orbit, accióntools - Herramienta individual:
gitlab_orbit_tools - Nivel: Premium, solo GitLab.com
- Token clásico u OAuth:
read_api(oapi) - Token de grano fino: Orbit: Read en usuario (página de permisos)
- Comportamiento: solo lectura, idempotente
Sin parámetros.