> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runaether.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Install an integration of Aether's integration directory

> Installs the integration of Aether's integration directory keyed key in the organization, as its MCP server alone or as a plugin bundling its servers and skills, and enables it on every project.

Use this tool when you need to:
- Install an integration found with listIntegrationDirectory or searchIntegrations (a result of kind integration)
- Add a known integration, such as linear, by its key

Examples:
- POST /orgs/{orgID}/integration-directory/linear/install

Hints:
- key is the integration's key: a lowercase letter, then up to 31 lowercase letters, digits, _ or -. Takes no body; answers 201.
- One that installs_as server (no skills) is added to the catalog as its MCP server (source kind directory, with the integration's homepage), its auth probed as a server added by hand is probed, and answers kind mcp_server with mcp_server; one that installs_as plugin is installed as a plugin, a marketplace's or one Aether synthesizes from the integration's skills, bundling its servers, and answers kind plugin with plugin.
- Either is enabled on every current project of the organization, and every project created later, with the default credential policy the directory names for it.
- connect lists the installed servers that take a connection, in key order, empty when none does: kind, how each connects (oauth, or static_secret for an API key), and owner, whose connection the default calls for, made with startMcpServerOAuth or connectMcpServer (owner creator) and startOrgMcpServerOAuth or connectOrgMcpServer (owner org).
- Use installPlugin instead for a marketplace plugin or a git repository, and createMcpServer for a server the directory does not list.
- Owners and admins of the organization; any other role is refused with 403 org_role_insufficient, a caller outside the organization with 403 org_membership_required, and an agent host's grant with 403 agent_host_route_not_allowed.
- Refused, naming the conflict in conflicts, with 409 plugin_server_key_taken when another server of the organization holds one of its server keys, an integration installed already among them; installed as a plugin, also with 409 plugin_name_taken when another plugin has the integration's key as its name.
- Refused with 422 integration_not_in_directory for a key the directory does not list (a key the pattern refuses is a plain 422), 422 integration_auth_unexpected when whether its server asks for a credential does not match the entry (it asks for one and the entry names no one to connect it, or the reverse), and 422 plugin_server_probe_failed when its server cannot be checked; installed as a plugin, also with installPlugin's source refusals.



## OpenAPI

````yaml api-reference/openapi.json POST /orgs/{orgID}/integration-directory/{key}/install
openapi: 3.1.0
info:
  title: Aether API
  version: 0.1.0
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /orgs/{orgID}/integration-directory/{key}/install:
    post:
      tags:
        - plugins
      summary: Install an integration of Aether's integration directory
      description: >-
        Installs the integration of Aether's integration directory keyed key in
        the organization, as its MCP server alone or as a plugin bundling its
        servers and skills, and enables it on every project.


        Use this tool when you need to:

        - Install an integration found with listIntegrationDirectory or
        searchIntegrations (a result of kind integration)

        - Add a known integration, such as linear, by its key


        Examples:

        - POST /orgs/{orgID}/integration-directory/linear/install


        Hints:

        - key is the integration's key: a lowercase letter, then up to 31
        lowercase letters, digits, _ or -. Takes no body; answers 201.

        - One that installs_as server (no skills) is added to the catalog as its
        MCP server (source kind directory, with the integration's homepage), its
        auth probed as a server added by hand is probed, and answers kind
        mcp_server with mcp_server; one that installs_as plugin is installed as
        a plugin, a marketplace's or one Aether synthesizes from the
        integration's skills, bundling its servers, and answers kind plugin with
        plugin.

        - Either is enabled on every current project of the organization, and
        every project created later, with the default credential policy the
        directory names for it.

        - connect lists the installed servers that take a connection, in key
        order, empty when none does: kind, how each connects (oauth, or
        static_secret for an API key), and owner, whose connection the default
        calls for, made with startMcpServerOAuth or connectMcpServer (owner
        creator) and startOrgMcpServerOAuth or connectOrgMcpServer (owner org).

        - Use installPlugin instead for a marketplace plugin or a git
        repository, and createMcpServer for a server the directory does not
        list.

        - Owners and admins of the organization; any other role is refused with
        403 org_role_insufficient, a caller outside the organization with 403
        org_membership_required, and an agent host's grant with 403
        agent_host_route_not_allowed.

        - Refused, naming the conflict in conflicts, with 409
        plugin_server_key_taken when another server of the organization holds
        one of its server keys, an integration installed already among them;
        installed as a plugin, also with 409 plugin_name_taken when another
        plugin has the integration's key as its name.

        - Refused with 422 integration_not_in_directory for a key the directory
        does not list (a key the pattern refuses is a plain 422), 422
        integration_auth_unexpected when whether its server asks for a
        credential does not match the entry (it asks for one and the entry names
        no one to connect it, or the reverse), and 422
        plugin_server_probe_failed when its server cannot be checked; installed
        as a plugin, also with installPlugin's source refusals.
      operationId: installDirectoryIntegration
      parameters:
        - in: path
          name: orgID
          required: true
          schema:
            format: uuid
            type: string
        - in: path
          name: key
          required: true
          schema:
            pattern: ^[a-z][a-z0-9_-]{0,31}$
            type: string
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DirectoryInstall'
          description: Created
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PluginsErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PluginsErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAuthorizationErrorResponse'
          description: Forbidden
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PluginErrorResponse'
          description: Conflict
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PluginsErrorResponse'
          description: Gone
        '422':
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/PluginsErrorResponse'
                  - $ref: '#/components/schemas/PluginErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PluginsErrorResponse'
          description: Internal Server Error
components:
  schemas:
    DirectoryInstall:
      discriminator:
        mapping:
          mcp_server: '#/components/schemas/DirectoryInstalledServer'
          plugin: '#/components/schemas/DirectoryInstalledPlugin'
        propertyName: kind
      oneOf:
        - $ref: '#/components/schemas/DirectoryInstalledServer'
        - $ref: '#/components/schemas/DirectoryInstalledPlugin'
    PluginsErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - account_deleting
            - aether_inference_unavailable
            - aether_inference_unserved
            - agent_connector_not_found
            - agent_default_project_archived
            - agent_profile_changed
            - agent_profile_harness_fixed
            - bad_gateway
            - bad_request
            - cli_upgrade_required
            - client_outdated
            - conflict
            - connection_agent_only
            - connection_harness_mismatch
            - connection_not_held
            - control_forbidden
            - default_skill_required
            - fallback_is_own_connection
            - fallback_required_with_pin
            - fallback_requires_pin
            - forbidden
            - gateway_timeout
            - gone
            - integration_auth_unexpected
            - integration_not_in_directory
            - integration_shape_changed
            - internal_error
            - mcp_connection_github_not_connected
            - mcp_connection_oauth_not_accepted
            - mcp_connection_org_not_offered
            - mcp_connection_secret_invalid
            - mcp_connection_server_changed
            - mcp_connection_static_secret_not_accepted
            - mcp_credential_policy_not_applicable
            - mcp_credential_policy_org_unavailable
            - mcp_credential_policy_required
            - mcp_oauth_app_auth_method_unsupported
            - mcp_oauth_app_invalid
            - mcp_oauth_app_issuer_invalid
            - mcp_oauth_app_required
            - mcp_oauth_not_advertised
            - mcp_oauth_pkce_unsupported
            - mcp_oauth_registration_failed
            - mcp_repo_config_invalid
            - mcp_server_address_refused
            - mcp_server_aether_managed
            - mcp_server_api_key_not_applicable
            - mcp_server_args_invalid
            - mcp_server_auth_discovery_failed
            - mcp_server_auth_unsupported
            - mcp_server_directory_managed
            - mcp_server_directory_moved
            - mcp_server_display_name_invalid
            - mcp_server_env_invalid
            - mcp_server_headers_invalid
            - mcp_server_key_invalid
            - mcp_server_key_reserved
            - mcp_server_key_taken
            - mcp_server_kind_change_refused
            - mcp_server_not_from_directory
            - mcp_server_not_mcp
            - mcp_server_package_invalid
            - mcp_server_plugin_bundled
            - mcp_server_plugin_off
            - mcp_server_response_too_large
            - mcp_server_return_to_invalid
            - mcp_server_runtime_invalid
            - mcp_server_switched_off
            - mcp_server_unreachable
            - mcp_server_url_invalid
            - mcp_server_version_unpinned
            - method_not_allowed
            - not_acceptable
            - not_found
            - not_implemented
            - org_role_insufficient
            - org_suspended
            - payment_required
            - plugin_moved
            - plugin_name_taken
            - plugin_request_invalid
            - plugin_server_key_reserved
            - plugin_server_key_taken
            - plugin_server_probe_failed
            - plugin_server_required
            - plugin_skill_invalid
            - plugin_source_address_refused
            - plugin_source_empty
            - plugin_source_invalid
            - plugin_source_not_found
            - plugin_source_not_public
            - plugin_source_too_large
            - plugin_source_unreachable
            - plugin_source_unsupported
            - plugin_switched_off
            - plugin_undeliverable
            - precondition_failed
            - rate_limited
            - request_canceled
            - request_timeout
            - request_too_large
            - service_unavailable
            - skill_slug_reserved
            - unauthenticated
            - unsupported_media_type
            - validation_failed
          minLength: 1
          type: string
        error:
          minLength: 1
          type: string
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
      required:
        - error
        - code
      type: object
    OrgAuthorizationErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - org_membership_required
            - org_role_insufficient
            - org_suspended
            - account_deleting
            - agent_host_route_not_allowed
            - credential_kind_not_admitted
            - grant_scope_insufficient
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
      type: object
    PluginErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - plugin_request_invalid
            - plugin_source_address_refused
            - plugin_source_not_public
            - plugin_source_unreachable
            - plugin_source_not_found
            - plugin_source_unsupported
            - plugin_source_too_large
            - plugin_source_invalid
            - plugin_source_empty
            - plugin_skill_invalid
            - plugin_undeliverable
            - plugin_server_probe_failed
            - plugin_server_key_taken
            - plugin_server_key_reserved
            - plugin_name_taken
            - plugin_moved
            - plugin_server_required
            - plugin_switched_off
            - mcp_credential_policy_required
            - mcp_credential_policy_not_applicable
            - mcp_credential_policy_org_unavailable
            - integration_not_in_directory
            - integration_shape_changed
            - integration_auth_unexpected
          type: string
        conflicts:
          items:
            $ref: '#/components/schemas/PluginKeyHolder'
          type: array
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
        - conflicts
      type: object
    DirectoryInstalledServer:
      additionalProperties: false
      properties:
        connect:
          description: >-
            The server when it takes a connection, under its default credential
            policy; empty when it needs none.
          items:
            $ref: '#/components/schemas/McpServerConnect'
          type: array
        kind:
          enum:
            - mcp_server
          type: string
        mcp_server:
          $ref: '#/components/schemas/McpServer'
      required:
        - kind
        - mcp_server
        - connect
      type: object
    DirectoryInstalledPlugin:
      additionalProperties: false
      properties:
        connect:
          description: >-
            The plugin's servers that take a connection, in key order, under the
            plugin's default credential policy; empty when none does.
          items:
            $ref: '#/components/schemas/McpServerConnect'
          type: array
        kind:
          enum:
            - plugin
          type: string
        plugin:
          $ref: '#/components/schemas/Plugin'
      required:
        - kind
        - plugin
        - connect
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
    PluginKeyHolder:
      additionalProperties: false
      properties:
        key:
          type: string
        plugin:
          type:
            - string
            - 'null'
        source:
          enum:
            - manual
            - aether
            - plugin
            - directory
          type: string
      required:
        - key
        - source
        - plugin
      type: object
    McpServerConnect:
      additionalProperties: false
      properties:
        kind:
          description: >-
            oauth: consent at the server's authorization server, started with
            startMcpServerOAuth (owner creator) or startOrgMcpServerOAuth (owner
            org). static_secret: an API key, saved with connectMcpServer or
            connectOrgMcpServer.
          enum:
            - oauth
            - static_secret
          type: string
        mcp_server_id:
          format: uuid
          type: string
        owner:
          description: >-
            Whose connection the default credential policy calls for: creator,
            the caller's own; org, the organization's, which an org admin makes.
          enum:
            - creator
            - org
          type: string
        url:
          description: >-
            The server's URL: the url startMcpServerOAuth and connectMcpServer
            take for it.
          type: string
      required:
        - kind
        - mcp_server_id
        - url
        - owner
      type: object
    McpServer:
      discriminator:
        mapping:
          http: '#/components/schemas/McpHTTPServer'
          stdio: '#/components/schemas/McpStdioServer'
        propertyName: kind
      oneOf:
        - $ref: '#/components/schemas/McpHTTPServer'
        - $ref: '#/components/schemas/McpStdioServer'
    Plugin:
      additionalProperties: false
      properties:
        commit:
          type: string
        created_at:
          format: date-time
          type: string
        default_credential_policy:
          enum:
            - creator
            - org
          type:
            - string
            - 'null'
        delivery:
          $ref: '#/components/schemas/PluginDelivery'
        directory:
          $ref: '#/components/schemas/PluginDirectoryOrigin'
        enabled_by_default:
          type: boolean
        id:
          format: uuid
          type: string
        manifests:
          $ref: '#/components/schemas/PluginManifests'
        marketplace:
          $ref: '#/components/schemas/PluginMarketplaceOrigin'
        name:
          type: string
        needs_credential:
          type: boolean
        path:
          description: The directory holding the plugin; empty for the repository's root.
          type: string
        ref:
          description: >-
            The branch or tag the source follows; null for the default branch or
            a marketplace entry pinned to a commit.
          type:
            - string
            - 'null'
        repository_url:
          type: string
        servers:
          items:
            discriminator:
              mapping:
                remote: '#/components/schemas/PluginRemoteServer'
                stdio_unavailable: '#/components/schemas/PluginStdioServer'
              propertyName: kind
            oneOf:
              - $ref: '#/components/schemas/PluginRemoteServer'
              - $ref: '#/components/schemas/PluginStdioServer'
          type: array
        skills:
          description: >-
            The plugin's skills, ordered by their SKILL.md's path; absent until
            Aether reads the skills of a plugin installed before it recorded
            them.
          items:
            $ref: '#/components/schemas/PluginSkill'
          type: array
        support:
          $ref: '#/components/schemas/PluginSupport'
        updated_at:
          format: date-time
          type: string
      required:
        - id
        - name
        - repository_url
        - path
        - ref
        - commit
        - manifests
        - support
        - needs_credential
        - default_credential_policy
        - enabled_by_default
        - servers
        - created_at
        - updated_at
      type: object
    McpHTTPServer:
      additionalProperties: false
      properties:
        auth:
          enum:
            - none
            - static_secret
            - oauth
          type: string
        connection_kind:
          enum:
            - static_secret
            - oauth
            - github_user_credential
            - sentry_installation
          type:
            - string
            - 'null'
        created_at:
          format: date-time
          type: string
        default_credential_policy:
          enum:
            - creator
            - org
          type:
            - string
            - 'null'
        display_name:
          type: string
        enabled_by_default:
          type: boolean
        headers:
          additionalProperties:
            type: string
          type: object
        id:
          format: uuid
          type: string
        key:
          type: string
        kind:
          enum:
            - http
          type: string
        required:
          type: boolean
        secret_names:
          items:
            type: string
          type: array
        source:
          $ref: '#/components/schemas/McpServerSource'
        updated_at:
          format: date-time
          type: string
        url:
          type: string
      required:
        - kind
        - id
        - key
        - display_name
        - url
        - headers
        - auth
        - source
        - connection_kind
        - required
        - enabled_by_default
        - default_credential_policy
        - secret_names
        - created_at
        - updated_at
      type: object
    McpStdioServer:
      additionalProperties: false
      properties:
        args:
          items:
            type: string
          type: array
        auth:
          enum:
            - none
            - static_secret
          type: string
        connection_kind:
          enum:
            - static_secret
          type:
            - string
            - 'null'
        created_at:
          format: date-time
          type: string
        default_credential_policy:
          enum:
            - creator
            - org
          type:
            - string
            - 'null'
        display_name:
          type: string
        enabled_by_default:
          type: boolean
        env:
          additionalProperties:
            $ref: '#/components/schemas/McpStdioEnvValue'
          type: object
        id:
          format: uuid
          type: string
        key:
          type: string
        kind:
          enum:
            - stdio
          type: string
        package:
          type: string
        required:
          type: boolean
        runtime:
          enum:
            - npx
            - uvx
            - python
          type: string
        secret_names:
          items:
            type: string
          type: array
        source:
          $ref: '#/components/schemas/ManualMcpServerSource'
        updated_at:
          format: date-time
          type: string
        version:
          type: string
      required:
        - kind
        - id
        - key
        - display_name
        - runtime
        - package
        - version
        - args
        - env
        - auth
        - source
        - connection_kind
        - required
        - enabled_by_default
        - default_credential_policy
        - secret_names
        - created_at
        - updated_at
      type: object
    PluginDelivery:
      additionalProperties: false
      properties:
        claude_code:
          description: >-
            deliverable, or why Claude Code cannot load the plugin:
            claude_code_manifest_skills, its .claude-plugin/plugin.json names
            its skills other than as ./ paths inside it.
          enum:
            - deliverable
            - claude_code_manifest_skills
          type: string
        codex:
          description: >-
            deliverable, or why Codex cannot load the plugin: codex_plugin_name,
            its name ends in '.'; codex_no_manifest, it has none of the
            manifests Codex reads; codex_agent_plugins_servers, Codex reads it
            as an Agent Plugins plugin, whose mcp.json cannot carry the
            credential Aether's MCP gateway requires, and it has remote MCP
            servers.
          enum:
            - deliverable
            - codex_plugin_name
            - codex_no_manifest
            - codex_agent_plugins_servers
          type: string
      required:
        - claude_code
        - codex
      type: object
    PluginDirectoryOrigin:
      additionalProperties: false
      properties:
        display_name:
          type: string
        homepage:
          type: string
      required:
        - display_name
        - homepage
      type: object
    PluginManifests:
      additionalProperties: false
      properties:
        agent_plugins:
          description: The Agent Plugins plugin.json at the plugin's root.
          type: boolean
        claude:
          description: .claude-plugin/plugin.json
          type: boolean
        codex:
          description: .codex-plugin/plugin.json
          type: boolean
        synthesized:
          description: >-
            The plugin's directory holds no manifest, so Aether synthesizes one:
            the plugin is the directory's skills, every directory holding a
            SKILL.md, named after the directory.
          type: boolean
      required:
        - claude
        - codex
        - agent_plugins
        - synthesized
      type: object
    PluginMarketplaceOrigin:
      additionalProperties: false
      properties:
        name:
          type: string
        plugin:
          type: string
        url:
          type: string
      required:
        - name
        - url
        - plugin
      type: object
    PluginRemoteServer:
      additionalProperties: false
      properties:
        auth:
          enum:
            - none
            - static_secret
            - oauth
          type: string
        key:
          type: string
        kind:
          enum:
            - remote
          type: string
        mcp_server_id:
          format: uuid
          type: string
        url:
          type: string
      required:
        - kind
        - mcp_server_id
        - key
        - url
        - auth
      type: object
    PluginStdioServer:
      additionalProperties: false
      properties:
        args:
          items:
            type: string
          type: array
        command:
          type: string
        key:
          type: string
        kind:
          enum:
            - stdio_unavailable
          type: string
      required:
        - kind
        - key
        - command
        - args
      type: object
    PluginSkill:
      additionalProperties: false
      properties:
        agents:
          description: The agents that load the skill.
          items:
            enum:
              - claude_code
              - codex
            type: string
          maxItems: 2
          minItems: 1
          type: array
        description:
          description: The description the SKILL.md's frontmatter declares.
          type: string
        name:
          description: The name the SKILL.md's frontmatter declares.
          type: string
      required:
        - name
        - description
        - agents
      type: object
    PluginSupport:
      additionalProperties: false
      properties:
        claude_code:
          items:
            enum:
              - skills
              - commands
              - agents
              - hooks
              - mcp_servers
            type: string
          type: array
        codex:
          items:
            enum:
              - skills
              - commands
              - agents
              - hooks
              - mcp_servers
            type: string
          type: array
      required:
        - claude_code
        - codex
      type: object
    McpServerSource:
      discriminator:
        mapping:
          aether: '#/components/schemas/AetherMcpServerSource'
          directory: '#/components/schemas/DirectoryMcpServerSource'
          manual: '#/components/schemas/ManualMcpServerSource'
          plugin: '#/components/schemas/PluginMcpServerSource'
        propertyName: kind
      oneOf:
        - $ref: '#/components/schemas/ManualMcpServerSource'
        - $ref: '#/components/schemas/AetherMcpServerSource'
        - $ref: '#/components/schemas/PluginMcpServerSource'
        - $ref: '#/components/schemas/DirectoryMcpServerSource'
    McpStdioEnvValue:
      discriminator:
        mapping:
          plain: '#/components/schemas/McpStdioPlainEnv'
          secret: '#/components/schemas/McpStdioSecretEnv'
        propertyName: kind
      oneOf:
        - $ref: '#/components/schemas/McpStdioPlainEnv'
        - $ref: '#/components/schemas/McpStdioSecretEnv'
    ManualMcpServerSource:
      additionalProperties: false
      properties:
        kind:
          enum:
            - manual
          type: string
      required:
        - kind
      type: object
    AetherMcpServerSource:
      additionalProperties: false
      properties:
        kind:
          enum:
            - aether
          type: string
      required:
        - kind
      type: object
    DirectoryMcpServerSource:
      additionalProperties: false
      properties:
        homepage:
          description: >-
            The integration's homepage, as Aether's integration directory names
            it.
          format: uri
          type: string
        kind:
          enum:
            - directory
          type: string
      required:
        - kind
        - homepage
      type: object
    PluginMcpServerSource:
      additionalProperties: false
      properties:
        kind:
          enum:
            - plugin
          type: string
        plugin_id:
          format: uuid
          type: string
      required:
        - kind
        - plugin_id
      type: object
    McpStdioPlainEnv:
      additionalProperties: false
      properties:
        kind:
          enum:
            - plain
          type: string
        value:
          type: string
      required:
        - kind
        - value
      type: object
    McpStdioSecretEnv:
      additionalProperties: false
      properties:
        kind:
          enum:
            - secret
          type: string
      required:
        - kind
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.