Servidor MCP - Archyl Docs

Conecta asistentes de IA como Claude, Cursor y VS Code a tu arquitectura — 189 herramientas que cubren el modelo C4, ADRs, contratos, conformidad, deriva, DORA y mucho más

Servidor MCP

Archyl proporciona un servidor Model Context Protocol (MCP) que permite que los asistentes de IA interactúen con tu documentación de arquitectura. Esto habilita una exploración y documentación de arquitectura potentes impulsadas por IA.

¿Qué es MCP?

El Model Context Protocol (MCP) es un protocolo abierto que permite que los asistentes de IA accedan de forma segura a herramientas y fuentes de datos externos. Con el servidor MCP de Archyl, tu asistente de IA puede:

  • Navegar y consultar tus proyectos y todo su modelo C4
  • Crear y modificar elementos de arquitectura, relaciones y diagramas
  • Leer y escribir ADRs, documentación, contratos de API y canales de eventos
  • Comprobar reglas de conformidad, puntuaciones de deriva, métricas DORA y propiedad antes de escribir código
  • Hacer seguimiento de releases, solicitudes de cambio, comentarios e historial

Clientes compatibles

El servidor MCP de Archyl funciona con:

  • Antigravity - El IDE impulsado por IA de Google
  • Claude Code - La herramienta CLI de Anthropic
  • Claude Desktop - La aplicación de escritorio de Claude
  • Cursor - Editor de código orientado a IA
  • OpenAI Codex - El asistente de codificación IA de OpenAI
  • VS Code - Con GitHub Copilot Chat
  • Warp - Terminal moderno con integración de IA
  • Windsurf - El IDE impulsado por IA de Codeium

Autenticación

Clave API (recomendado)

La mayoría de los clientes se autentican con una clave API. Dependiendo de la herramienta que uses:

  • Herramientas con soporte de headers (Claude Code, Cursor, Warp, Windsurf, Antigravity): Usa el header X-API-Key
  • Herramientas sin soporte de headers (Claude Desktop, VS Code, OpenAI Codex): Usa el parámetro ?apiKey=TU_CLAVE_API en la URL

Genera una clave API desde tu página Perfil → Claves API.

Los permisos de la clave deciden lo que puede hacer el asistente: una clave de solo lectura puede llamar a todas las herramientas list_* y get_*, mientras que create_*, update_*, delete_* e import_dsl requieren una clave con permiso de escritura. Darle a tu agente una clave de solo lectura es la forma más sencilla de dejar que explore tu arquitectura sin que pueda modificarla.

OAuth 2.1

El servidor también implementa OAuth 2.1 con registro dinámico de clientes, para clientes que se conectan mediante un inicio de sesión en el navegador en lugar de una clave pegada (los permisos mcp:read y mcp:write reflejan los permisos de clave API descritos arriba). Apunta ese cliente al mismo endpoint y descubrirá el flujo automáticamente a través de:

https://api.archyl.com/.well-known/oauth-authorization-server
https://api.archyl.com/.well-known/oauth-protected-resource

Configuración

Antigravity

  1. Abre Antigravity y haz clic en el menú "..." en el panel Agent
  2. Selecciona "MCP Servers" > "Manage MCP Servers" > "View raw config"
  3. Añade a ~/.gemini/antigravity/mcp_config.json:
{
  "mcpServers": {
    "archyl": {
      "serverUrl": "https://api.archyl.com/mcp",
      "headers": {
        "X-API-Key": "TU_CLAVE_API"
      }
    }
  }
}
  1. Reinicia Antigravity para aplicar los cambios

Nota: Antigravity usa serverUrl en lugar de url para servidores MCP basados en HTTP.

Claude Code

Crea un archivo .mcp.json en la raíz de tu proyecto:

{
  "mcpServers": {
    "archyl": {
      "type": "http",
      "url": "https://api.archyl.com/mcp",
      "headers": {
        "X-API-Key": "TU_CLAVE_API"
      }
    }
  }
}

Ejecuta Claude Code - detectará automáticamente el servidor MCP.

Claude Desktop

  1. Abre la configuración de Claude Desktop
  2. Navega a Desarrollador → Servidores MCP
  3. Haz clic en "Agregar Servidor" y añade:
{
  "mcpServers": {
    "archyl": {
      "url": "https://api.archyl.com/mcp?apiKey=TU_CLAVE_API"
    }
  }
}
  1. Reinicia Claude Desktop

Nota: Los conectores remotos de Claude Desktop no soportan headers personalizados, por lo que la clave API debe pasarse como parámetro de URL.

Cursor

Crea un archivo .cursor/mcp.json en tu proyecto:

{
  "mcpServers": {
    "archyl": {
      "url": "https://api.archyl.com/mcp",
      "headers": {
        "X-API-Key": "TU_CLAVE_API"
      }
    }
  }
}

Reinicia Cursor para cargar el servidor MCP.

OpenAI Codex

Abre o crea ~/.codex/config.toml y añade:

[mcp_servers.archyl]
url = "https://api.archyl.com/mcp?apiKey=TU_CLAVE_API"

Reinicia Codex CLI o IDE para aplicar los cambios.

VS Code

  1. Abre la configuración de VS Code (Cmd/Ctrl + ,)
  2. Busca "MCP" y haz clic en "Editar en settings.json"
  3. Añade:
{
  "mcp": {
    "servers": {
      "archyl": {
        "url": "https://api.archyl.com/mcp?apiKey=TU_CLAVE_API"
      }
    }
  }
}

Warp

  1. Abre Warp y ve a Configuración > Servidores MCP
  2. Haz clic en "Añadir servidor" y pega la configuración:
{
  "archyl": {
    "url": "https://api.archyl.com/mcp",
    "headers": {
      "X-API-Key": "TU_CLAVE_API"
    }
  }
}
  1. Reinicia Warp para aplicar los cambios

Windsurf

Abre el archivo de configuración MCP en ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "archyl": {
      "serverUrl": "https://api.archyl.com/mcp",
      "headers": {
        "X-API-Key": "TU_CLAVE_API"
      }
    }
  }
}

Reinicia Windsurf para aplicar los cambios.

Referencia de herramientas

El servidor expone 189 herramientas. Siguen un esquema de nombres predecible, así que un asistente casi siempre puede adivinar la correcta:

Prefijo Qué hace Permiso necesario
list_* Lista los elementos de un tipo, normalmente dentro de un proyecto lectura
get_* Obtiene un elemento completo, con sus vínculos lectura
create_* Crea un nuevo elemento escritura
update_* Modifica un elemento existente escritura
delete_* Elimina un elemento (y sus dependientes) escritura
link_* / unlink_* Vincula o desvincula un artefacto a un elemento C4 escritura

La mayoría de las herramientas con ámbito de proyecto reciben un projectId; las herramientas con ámbito de elemento reciben un elementId más un elementType (el nivel C4: 1 = sistema, 2 = contenedor, 3 = componente, 4 = código). Pide a tu asistente que llame primero a list_projects — de ahí obtendrá los IDs que necesite.

Tu cliente descubre esta lista automáticamente vía tools/list, así que siempre está sincronizada con el servidor. Las tablas siguientes son para que las personas decidan qué pedir.

Perfiles de herramientas

189 herramientas es más de lo que necesita un agente de código para una tarea acotada — anunciarlas todas cuesta contexto. Añade ?profile=coding a la URL del MCP (o envía la cabecera X-Archyl-Tool-Profile: coding) para reducir la superficie a 16 herramientas: contexto por tarea, el ciclo de sesiones de trabajo del harness y las comprobaciones de conformidad/diff. Omite el parámetro (o usa profile=full) para el catálogo completo.

Contexto de agente (4)

Empieza por aquí: estas dan al asistente el panorama de la arquitectura en una sola llamada, en lugar de muchas.

Tool Description
get_agent_context Get the complete architectural context for a project: C4 model, ADRs, tech stack, guardrails, API contracts, and event channels
find_relevant_context Given a natural-language task, return ONLY the architecture elements relevant to it (ranked), their connected neighbours, the decisions (ADRs) and…
get_project_c4_model Get the complete C4 model for a project including all systems, containers, components, code elements, and relationships
impact_of Compute the blast radius of changing a C4 element: the dependents that are AFFECTED if it changes, the dependencies it relies on, and the distinct…

Sesiones de trabajo del Harness (8)

El ciclo de trabajo gobernado para agentes de código: declara una unidad de trabajo para obtener contexto enfocado y bloqueos consultivos, envía latidos mientras trabajas y termina con un resultado que puede abrir una solicitud de cambio de arquitectura. Además, memoria de proyecto: recuerda hechos para futuros trabajadores y recupera lo que aprendieron las sesiones anteriores.

Tool Description
plan_work Produce an architecture-aware implementation plan for a task: ordered steps grounded in the documented C4 model, with the ADRs and guardrails that…
start_work_session Declare a unit of work BEFORE starting it
heartbeat_work_session Mark an active work session as still alive
finish_work_session Close a work session with what actually happened: a summary, the decisions worth recording, and follow-ups
list_work_sessions List a project's harness work sessions — who is (or was) working on what, with the elements each session holds leases on
remember Store a memory for future workers: a convention, a pitfall, or a fact worth knowing about an element or the project
recall Search the project's memory: session outcomes, notes, conventions and pitfalls left by previous agents and humans
confirm_memory Re-attest a memory you just verified in the code or at runtime: bumps its confirmation count and resets its freshness, so it keeps outranking stale…

Proyectos (7)

Tool Description
list_projects List all architecture projects the user has access to
get_project Get detailed information about a specific project including its C4 model overview
create_project Create a new architecture project
update_project Update an existing project's details
delete_project Delete a project and all its associated data (systems, containers, components, relationships)
get_project_settings Get the settings for a project (discovery config, PR settings, layout preferences, etc.)
update_project_settings Update project settings such as diagram layout, code level visibility, request mode, etc

Organizaciones y equipos (5)

Tool Description
list_organizations List organizations the user belongs to
get_organization Get detailed information about an organization
list_teams List teams in an organization
get_team Get detailed information about a team
create_team Create a new team in an organization

Elementos C4 (15)

Sistemas (nivel 1), contenedores (nivel 2), componentes (nivel 3) y elementos de código (nivel 4).

Tool Description
list_systems List all C4 Systems in a project
create_system Create a new C4 System (Level 1) in a project
update_system Update an existing C4 System
delete_system Delete a C4 System and all its containers, components, and code elements
list_containers List all C4 Containers in a system
create_container Create a new C4 Container (Level 2) in a system
update_container Update an existing C4 Container
delete_container Delete a C4 Container and all its components and code elements
list_components List all C4 Components in a container
create_component Create a new C4 Component (Level 3) in a container
update_component Update an existing C4 Component
delete_component Delete a C4 Component and all its code elements
create_code_element Create a new C4 Code Element (Level 4) in a component
update_code_element Update an existing C4 Code Element
delete_code_element Delete a C4 Code Element

Relaciones (4)

Tool Description
list_relationships List all relationships in a project
create_relationship Create a relationship (connection) between two C4 elements
update_relationship Update an existing relationship
delete_relationship Delete a relationship between C4 elements

Disposición de diagramas y overlays (5)

Tool Description
update_positions Batch update positions of C4 elements on the diagram (systems, containers, components, code elements, overlays)
list_overlays List all overlays in a project
create_overlay Create a visual overlay (grouping) on the diagram
update_overlay Update an existing overlay
delete_overlay Delete an overlay

Documentación (11)

Tool Description
list_documentation List project documentation
get_documentation Get detailed information about a documentation item
create_documentation Create a new documentation item
update_documentation Update an existing documentation item
delete_documentation Delete a documentation item
move_documentation Move a documentation item to a folder and/or position
list_documentation_folders List folders for a project
create_documentation_folder Create a new documentation folder
update_documentation_folder Rename a documentation folder
move_documentation_folder Move a documentation folder to a new parent and/or position
delete_documentation_folder Delete a documentation folder (children and docs are reparented to the parent folder)

Architecture Decision Records (6)

Tool Description
list_adrs List Architecture Decision Records in a project
get_adr Get detailed information about an Architecture Decision Record
create_adr Create a new Architecture Decision Record
update_adr Update an existing Architecture Decision Record
delete_adr Delete an Architecture Decision Record
link_adr_to_element Link an ADR to a C4 element (system, container, component, or code)

Contratos de API (8)

Contratos OpenAPI, gRPC, GraphQL, AsyncAPI y de herramientas MCP.

Tool Description
list_api_contracts List API contracts for a project
list_api_contracts_by_element List API contracts linked to a specific C4 element
get_api_contract Get a single API contract with its links to C4 elements
create_api_contract Create a new API contract (OpenAPI, gRPC, GraphQL, AsyncAPI, or MCP tools)
update_api_contract Update an existing API contract
delete_api_contract Delete an API contract and all its links
link_api_contract Link an API contract to a C4 element (system, container, component, or code)
unlink_api_contract Remove a link between an API contract and a C4 element

Canales de eventos (8)

Tool Description
list_event_channels List event channels (producers/consumers) for a project
list_event_channels_by_element List event channels linked to a specific C4 element
get_event_channel Get a single event channel with its links to C4 elements
create_event_channel Create a new event channel (producer or consumer)
update_event_channel Update an existing event channel
delete_event_channel Delete an event channel and all its links
link_event_channel Link an event channel to a C4 element (system, container, component, or code)
unlink_event_channel Remove a link between an event channel and a C4 element

Flujos y pizarras (8)

Tool Description
list_flows List user/system flows in the organization
get_flow Get detailed information about a flow including its steps
create_flow Create a new user/system flow diagram
delete_flow Delete a flow
list_whiteboards List whiteboards in the organization
get_whiteboard Get detailed information about a whiteboard
create_whiteboard Create a new whiteboard for free-form diagramming
delete_whiteboard Delete a whiteboard

Comentarios y discusiones (11)

Tool Description
list_comments List all comments for a project with pagination
list_comments_by_element List comments for a specific C4 element
get_comment Get a single comment by ID with its replies
get_comment_count Get the number of comments for a C4 element
create_comment Create a new comment on a project or C4 element
update_comment Update an existing comment (only the author can update)
delete_comment Delete a comment (only the author can delete)
resolve_comment Mark a comment thread as resolved
unresolve_comment Mark a comment thread as unresolved (reopen)
add_comment_reaction Add a reaction emoji to a comment
remove_comment_reaction Remove a reaction emoji from a comment

Propiedad (6)

Tool Description
who_owns Find the user and team owners of a C4 element
get_ownership_map Get the global ownership map showing all C4 elements across the organization with their team and user ownership data, plus coverage statistics
get_element_owners Get the owners of a C4 element (system, container, component, or code element)
set_element_owners Set the owners of a C4 element (replaces existing owners)
add_element_owner Add a single owner to a C4 element
remove_element_owner Remove an owner from a C4 element

Tecnologías y radar (10)

Tool Description
list_technologies List all technologies in the organization, optionally filtered by category or search term
get_technology Get detailed information about a specific technology
create_technology Create a new technology in the organization
update_technology Update an existing technology
delete_technology Delete a technology and all its element/relationship links
get_technology_radar Get the technology radar data showing all technologies with their usage counts across elements and relationships
get_element_technologies Get technologies linked to a C4 element (system, container, or component)
set_element_technologies Set the technologies linked to a C4 element (replaces existing links)
get_relationship_technologies Get technologies linked to a C4 relationship
set_relationship_technologies Set the technologies linked to a C4 relationship (replaces existing links)

Releases y entornos (10)

Tool Description
list_releases List releases for a project with optional filters
get_release Get detailed information about a specific release
create_release Create a new release for a project
update_release Update an existing release
delete_release Delete a release
list_environments List deployment environments for a project, ordered by position
create_environment Create a new deployment environment for a project
update_environment Update an existing deployment environment
delete_environment Delete a deployment environment
reorder_environments Reorder environments for a project by providing the environment IDs in the desired order

Solicitudes de cambio de arquitectura (6)

Tool Description
list_requests List architecture change requests for a project
get_request Get detailed information about an architecture change request including its changes and reviews
create_request Create a new architecture change request
update_request Update the title or description of an architecture change request (author only, not merged)
list_request_changes List all changes in an architecture change request
list_request_reviews List all reviews for an architecture change request

Reglas de conformidad (9)

Tool Description
list_conformance_rules List architecture conformance rules for the organization, with optional project filter
get_conformance_rule Get detailed information about a conformance rule
create_conformance_rule Create a new architecture conformance rule
update_conformance_rule Update a conformance rule's name, description, severity, or config
delete_conformance_rule Delete a conformance rule
run_conformance_check Run conformance rules against changed files and return a violation report
list_conformance_checks List recent conformance checks for a project
get_conformance_report Get the full report for a conformance check, including all violations
get_conformance_stats Get conformance statistics for a project (total checks, pass/fail rate, latest status)

Detección de deriva (4)

Tool Description
get_drift_score Get the latest drift score for a project
compute_drift_score Trigger a drift score computation for a project
get_drift_details Get the per-element drift breakdown for a specific score computation
get_drift_history Get the drift score trend over time for a project

Métricas DORA, ROI y predicciones (4)

Tool Description
get_dora_metrics Calculate DORA metrics (Deployment Frequency, Lead Time for Changes, Change Failure Rate, Mean Time to Restore) for a project
get_dora_trend Get DORA metrics trend over time, bucketed by day, week, or month
compute_architecture_roi Quantify the financial impact of architecture decisions
get_predictions Analyze drift trends, DORA trajectories, conformance decay, and complexity growth to forecast risks and recommend preventive actions

Historial y viaje en el tiempo (5)

Tool Description
list_history List change history entries for the organization, optionally filtered by project, entity name, user, or action
list_versions List all time-travel versions (snapshots) for a project, ordered by version number descending
get_version Get a specific version by project ID and version number, including the full snapshot data and changes
diff_version Compare a version with another version or the current live state
analyze_architecture_diff AI-powered analysis of a git diff to detect architecture changes

Insights (3)

Tool Description
list_insights List AI-generated architecture insights
get_insight Get detailed information about an insight
silence_insight Silence an insight to hide it from the list

Marketplace y widgets (15)

Tool Description
list_marketplace_products List all available marketplace integration products (Datadog, GitHub, GitLab, SonarQube, etc.)
get_marketplace_product Get detailed information about a marketplace product including its configuration schema
list_marketplace_connections List all configured marketplace connections for the organization
get_marketplace_connection Get detailed information about a specific marketplace connection
create_marketplace_connection Create a new marketplace connection to an integration product
update_marketplace_connection Update an existing marketplace connection
delete_marketplace_connection Delete a marketplace connection and all its associated widgets
list_marketplace_widgets List marketplace widgets for a project
list_marketplace_widgets_by_element List marketplace widgets linked to a specific C4 element
get_marketplace_widget Get detailed information about a specific marketplace widget
create_marketplace_widget Create a new marketplace widget for a project
update_marketplace_widget Update an existing marketplace widget
delete_marketplace_widget Delete a marketplace widget
list_organization_widgets List marketplace widgets scoped to the organization (not project-specific)
create_organization_widget Create a new marketplace widget scoped to the organization (not project-specific)

Webhooks (7)

Tool Description
list_webhook_notifications List all outgoing webhook notification configurations for the organization
get_webhook_notification Get detailed information about a specific webhook notification configuration
create_webhook_notification Create a new outgoing webhook notification
update_webhook_notification Update an existing webhook notification configuration
delete_webhook_notification Delete a webhook notification and all its delivery history
test_webhook_notification Send a test event to a webhook endpoint to verify it is configured correctly
list_webhook_deliveries List recent delivery history for a webhook notification, including status and response codes

Arquitectura de toda la organización (9)

Vistas entre proyectos y artefactos a nivel de organización.

Tool Description
list_global_systems List all C4 systems across all projects in the organization (global architecture view)
list_global_relationships List all C4 relationships visible in the global architecture view
list_global_adrs List organization-level Architecture Decision Records (not scoped to a specific project)
create_global_adr Create an organization-level Architecture Decision Record
list_global_docs List organization-level documentation (not scoped to a specific project)
create_global_doc Create an organization-level documentation page
list_global_api_contracts List organization-level API contracts (not scoped to a specific project)
create_global_api_contract Create an organization-level API contract
list_global_comments List organization-level discussion comments (not scoped to a specific project)

Arquitectura como código (1)

Tool Description
import_dsl Import architecture from a DSL format (Archyl YAML, Structurizr DSL, LikeC4, IcePanel JSON, or Backstage catalog JSON) into a project

Conversaciones de Ejemplo

Explorando Arquitectura

: "¿Qué sistemas hay en mi proyecto de e-commerce?"

IA: Usa la herramienta list_systems "Tu proyecto de e-commerce tiene 4 sistemas: Tienda Web, Servicio de Pagos, Sistema de Inventario y Servicio de Notificaciones..."

Creando Elementos

: "Agrega un nuevo contenedor llamado Redis Cache al sistema Tienda Web para almacenamiento de sesiones"

IA: Usa la herramienta create_container "He creado el contenedor Redis Cache en el sistema Tienda Web con la descripción 'Caché en memoria para almacenamiento de sesiones'."

Documentación

: "Crea un ADR para nuestra decisión de usar PostgreSQL en lugar de MongoDB"

IA: Usa la herramienta create_adr "He creado ADR-001: Selección de Tecnología de Base de Datos, documentando la decisión de usar PostgreSQL por su cumplimiento ACID y flexibilidad de consultas..."

Antes de escribir código

: "Estoy a punto de añadir limitación de tasa al flujo de checkout. ¿Qué debería saber?"

IA: Usa find_relevant_context e impact_of "El checkout toca el API Gateway y el servicio Orders. Cambiar el gateway afecta a 6 contenedores dependientes. El ADR-014 ya exige Redis para el throttling, y una regla de conformidad prohíbe nuevas dependencias del almacén Session heredado..."

Comprobación de gobernanza

: "¿Nos estamos desviando de la arquitectura documentada?"

IA: Usa get_drift_score y run_conformance_check "La puntuación de deriva es del 82% (bajó desde el 91% del mes pasado). Dos infracciones: el servicio Search llama directamente a la base de datos de Orders, y Payments usa un cliente HTTP no aprobado..."

Endpoint

HTTP Streamable (MCP)

https://api.archyl.com/mcp

Usa este endpoint para conectar tu asistente de IA a la documentación de arquitectura de Archyl. Soporta el protocolo de transporte HTTP Streamable.

Solución de Problemas

Conexión Fallida

  • Verifica que tu clave API sea válida
  • Asegúrate de que la URL del endpoint sea correcta
  • Verifica tu conexión de red

Autenticación Fallida

  • Para herramientas con soporte de headers: Verifica que el header X-API-Key esté configurado correctamente
  • Para herramientas sin soporte de headers: Verifica que el parámetro ?apiKey= esté en la URL
  • Asegúrate de que tu clave API no haya expirado

Herramienta No Encontrada

  • Asegúrate de estar usando el nombre correcto de la herramienta — consulta la referencia de herramientas, o pide a tu cliente que actualice su lista de herramientas
  • Algunos clientes cachean tools/list; reinicia el cliente después de actualizar

Herramientas de Escritura Rechazadas

  • create_*, update_*, delete_* e import_dsl necesitan una clave API con permiso de escritura — una clave de solo lectura solo puede llamar a list_* y get_*
  • Revisa tu plan de suscripción: algunas funcionalidades (webhooks, conexiones del marketplace, ejecuciones de agentes gestionadas) dependen del plan

Problemas específicos de Antigravity

  • Asegúrate de usar serverUrl (no url) para la configuración
  • La ubicación del archivo de config es ~/.gemini/antigravity/mcp_config.json

Problemas específicos de OpenAI Codex

  • Asegúrate de que la sintaxis TOML sea correcta en ~/.codex/config.toml
  • Usa [mcp_servers.archyl] como nombre de tabla

Problemas específicos de Warp

  • Navega a Configuración > Servidores MCP para gestionar configuraciones
  • Reinicia Warp después de realizar cambios en la configuración

Mejores Prácticas

Sé Específico

Cuando pidas a tu IA que modifique arquitectura, sé específico:

  • Incluye nombres de proyectos
  • Especifica tipos de elementos
  • Proporciona descripciones

Revisa los Cambios

Siempre revisa los elementos creados por IA:

  • Verifica que nombres y descripciones sean precisos
  • Verifica que las relaciones sean correctas
  • Actualiza según sea necesario

Usa para Exploración

MCP es excelente para:

  • Explorar rápidamente arquitecturas grandes
  • Generar documentación inicial
  • Responder preguntas sobre tus sistemas