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

# Preview GitHub plugin MCP import

> Reads a public GitHub plugin URL and returns remote MCP servers that can be imported as Den External MCP Connections.



## OpenAPI

````yaml /openapi.json post /v1/plugins/import-mcps-from-github-url/preview
openapi: 3.1.0
info:
  title: Den API
  description: >-
    OpenAPI spec for the Den control plane API.


    Authentication:

    - Use `Authorization: Bearer <session-token>` for user-authenticated routes
    that require a Den session.

    - Use `x-api-key: <den-api-key>` for API-key-authenticated routes that
    accept organization API keys.

    - Public routes like health and documentation do not require authentication.


    Swagger tip: use the security schemes in the Authorize dialog to set either
    `bearerAuth` or `denApiKey` before trying protected endpoints.
  version: dev
servers: []
security: []
tags:
  - name: System
    description: Service health and operational routes.
  - name: Organizations
    description: Top-level organization creation and context routes.
  - name: Invitations
    description: Invitation preview, acceptance, creation, and cancellation routes.
  - name: API Keys
    description: Organization API key management routes.
  - name: SCIM
    description: Organization SCIM connector management routes.
  - name: SSO
    description: Organization single sign-on connector management routes.
  - name: Members
    description: Organization member management routes.
  - name: Roles
    description: Organization custom role management routes.
  - name: Teams
    description: Organization team management routes.
  - name: Templates
    description: Organization shared template routes.
  - name: LLM Providers
    description: Organization LLM provider catalog, configuration, and access routes.
  - name: Skills
    description: Organization skill authoring and sharing routes.
  - name: Skill Hubs
    description: Organization skill hub management and access routes.
  - name: Workers
    description: Worker lifecycle, billing, and runtime routes.
  - name: Worker Runtime
    description: Worker runtime inspection and upgrade routes.
  - name: Worker Activity
    description: Worker heartbeat and activity reporting routes.
  - name: Telemetry
    description: Telemetry event ingestion and adoption analytics.
  - name: Admin
    description: Administrative reporting routes.
  - name: Users
    description: Current user and membership routes.
  - name: Bootstrap
    description: Agent-first provisional workspace setup routes.
paths:
  /v1/plugins/import-mcps-from-github-url/preview:
    post:
      tags:
        - GitHub
      summary: Preview GitHub plugin MCP import
      description: >-
        Reads a public GitHub plugin URL and returns remote MCP servers that can
        be imported as Den External MCP Connections.
      operationId: postV1PluginsImportMcpsFromGithubUrlPreview
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                githubUrl:
                  type: string
                  maxLength: 2048
                  format: uri
              required:
                - githubUrl
      responses:
        '200':
          description: GitHub plugin MCP import preview returned successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GithubPluginMcpImportPreviewResponse'
        '400':
          description: The GitHub plugin MCP import preview request was invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestError'
        '401':
          description: The caller must be signed in to preview plugin MCP imports.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedError'
        '404':
          description: The GitHub plugin path could not be found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundError'
components:
  schemas:
    GithubPluginMcpImportPreviewResponse:
      type: object
      properties:
        ok:
          type: boolean
          const: true
        item:
          $ref: '#/components/schemas/GithubPluginMcpImportPlan'
      required:
        - ok
        - item
    InvalidRequestError:
      type: object
      properties:
        error:
          type: string
          const: invalid_request
        details:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
              path:
                type: array
                items:
                  anyOf:
                    - type: string
                    - type: number
            required:
              - message
            additionalProperties: {}
      required:
        - error
        - details
    UnauthorizedError:
      type: object
      properties:
        error:
          type: string
          const: unauthorized
      required:
        - error
    NotFoundError:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
      required:
        - error
    GithubPluginMcpImportPlan:
      type: object
      properties:
        branch:
          type: string
        classification:
          type: string
          enum:
            - claude_marketplace_repo
            - claude_multi_plugin_repo
            - claude_single_plugin_repo
            - folder_inferred_repo
            - unsupported
        marketplace:
          anyOf:
            - type: object
              properties:
                description:
                  anyOf:
                    - type: string
                    - type: 'null'
                name:
                  anyOf:
                    - type: string
                    - type: 'null'
                owner:
                  anyOf:
                    - type: string
                    - type: 'null'
                version:
                  anyOf:
                    - type: string
                    - type: 'null'
              required:
                - description
                - name
                - owner
                - version
            - type: 'null'
        plugins:
          type: array
          items:
            type: object
            properties:
              description:
                anyOf:
                  - type: string
                  - type: 'null'
              key:
                type: string
              mcpCount:
                type: integer
                minimum: 0
                maximum: 9007199254740991
              name:
                type: string
              skillCount:
                type: integer
                minimum: 0
                maximum: 9007199254740991
            required:
              - description
              - key
              - mcpCount
              - name
              - skillCount
        repositoryFullName:
          type: string
        rootPath:
          type: string
        servers:
          type: array
          items:
            $ref: '#/components/schemas/GithubPluginMcpImportServer'
        skills:
          type: array
          items:
            type: object
            properties:
              description:
                anyOf:
                  - type: string
                  - type: 'null'
              name:
                type: string
              pluginKey:
                type: string
              pluginName:
                type: string
              skillKey:
                type: string
              skippedReason:
                anyOf:
                  - type: string
                    enum:
                      - invalid_skill
                  - type: 'null'
              sourcePath:
                type: string
              supported:
                type: boolean
            required:
              - description
              - name
              - pluginKey
              - pluginName
              - skillKey
              - skippedReason
              - sourcePath
              - supported
        sourceRevisionRef:
          type: string
        warnings:
          type: array
          items:
            type: string
      required:
        - branch
        - classification
        - marketplace
        - plugins
        - repositoryFullName
        - rootPath
        - servers
        - skills
        - sourceRevisionRef
        - warnings
    GithubPluginMcpImportServer:
      type: object
      properties:
        authType:
          type: string
          const: oauth
        connectionId:
          anyOf:
            - type: string
            - type: 'null'
        name:
          type: string
        pluginKey:
          type: string
        pluginName:
          type: string
        serverKey:
          type: string
        skippedReason:
          anyOf:
            - type: string
              enum:
                - missing_url
                - local_unsupported
                - invalid_url
                - unsupported_auth
            - type: 'null'
        sourcePath:
          type: string
        supported:
          type: boolean
        url:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - authType
        - connectionId
        - name
        - pluginKey
        - pluginName
        - serverKey
        - skippedReason
        - sourcePath
        - supported
        - url

````