naftiko: 1.0.0-alpha2 info: label: Daytona Sandbox Preview description: 'Daytona Sandbox Preview. 4 operations. Lead operation: Check if sandbox is public. Self-contained Naftiko capability covering one Daytona business surface.' tags: - Daytona - Preview created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: DAYTONA_API_KEY: DAYTONA_API_KEY capability: consumes: - type: http namespace: preview baseUri: https://app.daytona.io/api description: Daytona Sandbox Preview business capability. Self-contained, no shared references. resources: - name: preview-sandboxid-public path: /preview/{sandboxId}/public operations: - name: issandboxpublic method: GET description: Check if sandbox is public outputRawFormat: json outputParameters: - name: result type: object value: $. - name: preview-sandboxid-validate-authtoken path: /preview/{sandboxId}/validate/{authToken} operations: - name: isvalidauthtoken method: GET description: Check if sandbox auth token is valid outputRawFormat: json outputParameters: - name: result type: object value: $. - name: preview-sandboxid-access path: /preview/{sandboxId}/access operations: - name: hassandboxaccess method: GET description: Check if user has access to the sandbox outputRawFormat: json outputParameters: - name: result type: object value: $. - name: preview-signedpreviewtoken-port-sandbox-id path: /preview/{signedPreviewToken}/{port}/sandbox-id operations: - name: getsandboxidfromsignedpreviewurltoken method: GET description: Get sandbox ID from signed preview URL token outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer value: '{{env.DAYTONA_API_KEY}}' placement: header exposes: - type: rest namespace: preview-rest port: 8080 description: REST adapter for Daytona Sandbox Preview. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/preview/{sandboxId}/public name: preview-sandboxid-public description: REST surface for preview-sandboxid-public. operations: - method: GET name: issandboxpublic description: Check if sandbox is public call: preview.issandboxpublic outputParameters: - type: object mapping: $. - path: /v1/preview/{sandboxId}/validate/{authToken} name: preview-sandboxid-validate-authtoken description: REST surface for preview-sandboxid-validate-authtoken. operations: - method: GET name: isvalidauthtoken description: Check if sandbox auth token is valid call: preview.isvalidauthtoken outputParameters: - type: object mapping: $. - path: /v1/preview/{sandboxId}/access name: preview-sandboxid-access description: REST surface for preview-sandboxid-access. operations: - method: GET name: hassandboxaccess description: Check if user has access to the sandbox call: preview.hassandboxaccess outputParameters: - type: object mapping: $. - path: /v1/preview/{signedPreviewToken}/{port}/sandbox-id name: preview-signedpreviewtoken-port-sandbox-id description: REST surface for preview-signedpreviewtoken-port-sandbox-id. operations: - method: GET name: getsandboxidfromsignedpreviewurltoken description: Get sandbox ID from signed preview URL token call: preview.getsandboxidfromsignedpreviewurltoken outputParameters: - type: object mapping: $. - type: mcp namespace: preview-mcp port: 9090 transport: http description: MCP adapter for Daytona Sandbox Preview. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: daytona-check-if-sandbox-is-public description: Check if sandbox is public hints: readOnly: true destructive: false idempotent: true call: preview.issandboxpublic outputParameters: - type: object mapping: $. - name: daytona-check-if-sandbox-auth-token-is-valid description: Check if sandbox auth token is valid hints: readOnly: true destructive: false idempotent: true call: preview.isvalidauthtoken outputParameters: - type: object mapping: $. - name: daytona-check-if-user-has-access-to-the-sandbox description: Check if user has access to the sandbox hints: readOnly: true destructive: false idempotent: true call: preview.hassandboxaccess outputParameters: - type: object mapping: $. - name: daytona-get-sandbox-id-from-signed-preview-url-token description: Get sandbox ID from signed preview URL token hints: readOnly: true destructive: false idempotent: true call: preview.getsandboxidfromsignedpreviewurltoken outputParameters: - type: object mapping: $.