Tray.ai · Capability

Tray.ai Platform API — Projects

Tray.ai Platform API — Projects. 2 operations. Lead operation: Tray.ai Import Project. Self-contained Naftiko capability covering one Tray Ai business surface.

Run with Naftiko Tray AiProjects

What You Can Do

POST
Importproject — Tray.ai Import Project
/v1/projects/import
POST
Exportproject — Tray.ai Export Project
/v1/projects/{projectid}/export

MCP Tools

tray-ai-import-project

Tray.ai Import Project

tray-ai-export-project

Tray.ai Export Project

Capability Spec

platform-projects.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Tray.ai Platform API — Projects
  description: 'Tray.ai Platform API — Projects. 2 operations. Lead operation: Tray.ai Import Project. Self-contained Naftiko
    capability covering one Tray Ai business surface.'
  tags:
  - Tray Ai
  - Projects
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TRAY_AI_API_KEY: TRAY_AI_API_KEY
capability:
  consumes:
  - type: http
    namespace: platform-projects
    baseUri: https://api.tray.io/core/v1
    description: Tray.ai Platform API — Projects business capability. Self-contained, no shared references.
    resources:
    - name: projects-import
      path: /projects/import
      operations:
      - name: importproject
        method: POST
        description: Tray.ai Import Project
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: projects-projectId-export
      path: /projects/{projectId}/export
      operations:
      - name: exportproject
        method: POST
        description: Tray.ai Export Project
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          description: The unique identifier for the project
          required: true
    authentication:
      type: bearer
      token: '{{env.TRAY_AI_API_KEY}}'
  exposes:
  - type: rest
    namespace: platform-projects-rest
    port: 8080
    description: REST adapter for Tray.ai Platform API — Projects. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/projects/import
      name: projects-import
      description: REST surface for projects-import.
      operations:
      - method: POST
        name: importproject
        description: Tray.ai Import Project
        call: platform-projects.importproject
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{projectid}/export
      name: projects-projectid-export
      description: REST surface for projects-projectId-export.
      operations:
      - method: POST
        name: exportproject
        description: Tray.ai Export Project
        call: platform-projects.exportproject
        with:
          projectId: rest.projectId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: platform-projects-mcp
    port: 9090
    transport: http
    description: MCP adapter for Tray.ai Platform API — Projects. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: tray-ai-import-project
      description: Tray.ai Import Project
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: platform-projects.importproject
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: tray-ai-export-project
      description: Tray.ai Export Project
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: platform-projects.exportproject
      with:
        projectId: tools.projectId
      outputParameters:
      - type: object
        mapping: $.