> ## 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.

# Enable a plugin on a project

> Enables a plugin on a project as one unit, or sets the project's own credential policy for it, and answers with the project's enablement.

Use this tool when you need to:
- Enable a plugin again on a project that excluded it with disableProjectPlugin
- Set whose connections a project's tasks use for a plugin's servers: the task creator's or the organization's
- Return a project to the plugin's default_credential_policy

Examples:
- PUT /projects/{projectID}/plugins/{pluginID} {"credential_policy": "org"}
- PUT /projects/{projectID}/plugins/{pluginID} {"credential_policy": null}

Hints:
- projectID and pluginID are uuids (422 when malformed). The body is required (no body is 400) and names credential_policy: creator, org or null, any other value a plain 422; null, the project takes the plugin's default_credential_policy.
- The policy applies to every authenticated MCP server of the plugin; its servers are never enabled by themselves (enableProjectMcpServer refuses one with 409 mcp_server_plugin_bundled).
- A plugin the project enables already stays enabled and takes the new policy. Answers 200 with plugin_id and credential_policy, the policy the project uses now, null exactly when none of the plugin's servers authenticates.
- Refused with 422 mcp_credential_policy_not_applicable for a policy on a plugin none of whose servers authenticates; 422 mcp_credential_policy_org_unavailable for org unless the organization has its own connection to every authenticated server of the plugin (made with connectOrgMcpServer or startOrgMcpServerOAuth); 409 plugin_switched_off for a plugin the organization switched off (enabled_by_default false) until it is switched on again; and 404 for a plugin not in the project's organization.
- Use disableProjectPlugin instead to exclude the plugin from the project, and patchPlugin to change default_credential_policy or enabled_by_default for every project.
- Owners and admins of the project's organization; a member is refused with 403 control_forbidden, a viewer or billing member with 403 org_role_insufficient, a suspended organization with 403 org_suspended, and a project the caller cannot see is 404; 503 when the membership check is unavailable. An agent host's grant is refused with 403 agent_host_route_not_allowed.



## OpenAPI

````yaml api-reference/openapi.json PUT /projects/{projectID}/plugins/{pluginID}
openapi: 3.1.0
info:
  title: Aether API
  version: 0.1.0
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /projects/{projectID}/plugins/{pluginID}:
    put:
      tags:
        - plugins
      summary: Enable a plugin on a project
      description: >-
        Enables a plugin on a project as one unit, or sets the project's own
        credential policy for it, and answers with the project's enablement.


        Use this tool when you need to:

        - Enable a plugin again on a project that excluded it with
        disableProjectPlugin

        - Set whose connections a project's tasks use for a plugin's servers:
        the task creator's or the organization's

        - Return a project to the plugin's default_credential_policy


        Examples:

        - PUT /projects/{projectID}/plugins/{pluginID} {"credential_policy":
        "org"}

        - PUT /projects/{projectID}/plugins/{pluginID} {"credential_policy":
        null}


        Hints:

        - projectID and pluginID are uuids (422 when malformed). The body is
        required (no body is 400) and names credential_policy: creator, org or
        null, any other value a plain 422; null, the project takes the plugin's
        default_credential_policy.

        - The policy applies to every authenticated MCP server of the plugin;
        its servers are never enabled by themselves (enableProjectMcpServer
        refuses one with 409 mcp_server_plugin_bundled).

        - A plugin the project enables already stays enabled and takes the new
        policy. Answers 200 with plugin_id and credential_policy, the policy the
        project uses now, null exactly when none of the plugin's servers
        authenticates.

        - Refused with 422 mcp_credential_policy_not_applicable for a policy on
        a plugin none of whose servers authenticates; 422
        mcp_credential_policy_org_unavailable for org unless the organization
        has its own connection to every authenticated server of the plugin (made
        with connectOrgMcpServer or startOrgMcpServerOAuth); 409
        plugin_switched_off for a plugin the organization switched off
        (enabled_by_default false) until it is switched on again; and 404 for a
        plugin not in the project's organization.

        - Use disableProjectPlugin instead to exclude the plugin from the
        project, and patchPlugin to change default_credential_policy or
        enabled_by_default for every project.

        - Owners and admins of the project's organization; a member is refused
        with 403 control_forbidden, a viewer or billing member with 403
        org_role_insufficient, a suspended organization with 403 org_suspended,
        and a project the caller cannot see is 404; 503 when the membership
        check is unavailable. An agent host's grant is refused with 403
        agent_host_route_not_allowed.
      operationId: enableProjectPlugin
      parameters:
        - in: path
          name: projectID
          required: true
          schema:
            format: uuid
            type: string
        - in: path
          name: pluginID
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnableProjectPluginRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectPlugin'
          description: OK
        '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:
                anyOf:
                  - $ref: '#/components/schemas/OrgAuthorizationErrorResponse'
                  - $ref: '#/components/schemas/ControlForbiddenErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PluginsErrorResponse'
          description: Not Found
        '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
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PluginsErrorResponse'
          description: Service Unavailable
components:
  schemas:
    EnableProjectPluginRequest:
      additionalProperties: false
      properties:
        credential_policy:
          description: >-
            The project's own credential policy, as the enablement reads it.
            Null: the plugin's default_credential_policy.
          enum:
            - creator
            - org
          type:
            - string
            - 'null'
      required:
        - credential_policy
      type: object
    ProjectPlugin:
      additionalProperties: false
      properties:
        credential_policy:
          enum:
            - creator
            - org
          type:
            - string
            - 'null'
        plugin_id:
          format: uuid
          type: string
      required:
        - plugin_id
        - credential_policy
      type: object
    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
    ControlForbiddenErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - control_forbidden
          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
    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
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

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