naftiko: 1.0.0-alpha2 info: label: Snyk API — Tests description: 'Snyk API — Tests. 3 operations. Lead operation: Get a test job. (Early Access). Self-contained Naftiko capability covering one Snyk business surface.' tags: - Snyk - Tests created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SNYK_API_KEY: SNYK_API_KEY capability: consumes: - type: http namespace: rest-tests baseUri: https://api.snyk.io/rest description: Snyk API — Tests business capability. Self-contained, no shared references. resources: - name: orgs-org_id-test_jobs-job_id path: /orgs/{org_id}/test_jobs/{job_id} operations: - name: getjob method: GET description: Get a test job. (Early Access) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: org_id in: path type: string description: Snyk Org ID under which to run or query information required: true - name: job_id in: path type: string description: Job ID returned from the Test API to query. required: true - name: orgs-org_id-tests path: /orgs/{org_id}/tests operations: - name: createtest method: POST description: Create a new test. (Early Access) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: org_id in: path type: string description: Snyk Org ID under which to run or query information required: true - name: body in: body type: object description: Request body (JSON). required: true - name: orgs-org_id-tests-test_id path: /orgs/{org_id}/tests/{test_id} operations: - name: gettest method: GET description: Get a test. (Early Access) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: org_id in: path type: string description: Snyk Org ID under which to run or query information required: true authentication: type: bearer token: '{{env.SNYK_API_KEY}}' exposes: - type: rest namespace: rest-tests-rest port: 8080 description: REST adapter for Snyk API — Tests. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/orgs/{org-id}/test-jobs/{job-id} name: orgs-org-id-test-jobs-job-id description: REST surface for orgs-org_id-test_jobs-job_id. operations: - method: GET name: getjob description: Get a test job. (Early Access) call: rest-tests.getjob with: org_id: rest.org_id job_id: rest.job_id outputParameters: - type: object mapping: $. - path: /v1/orgs/{org-id}/tests name: orgs-org-id-tests description: REST surface for orgs-org_id-tests. operations: - method: POST name: createtest description: Create a new test. (Early Access) call: rest-tests.createtest with: org_id: rest.org_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/orgs/{org-id}/tests/{test-id} name: orgs-org-id-tests-test-id description: REST surface for orgs-org_id-tests-test_id. operations: - method: GET name: gettest description: Get a test. (Early Access) call: rest-tests.gettest with: org_id: rest.org_id outputParameters: - type: object mapping: $. - type: mcp namespace: rest-tests-mcp port: 9090 transport: http description: MCP adapter for Snyk API — Tests. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-test-job-early-access description: Get a test job. (Early Access) hints: readOnly: true destructive: false idempotent: true call: rest-tests.getjob with: org_id: tools.org_id job_id: tools.job_id outputParameters: - type: object mapping: $. - name: create-new-test-early-access description: Create a new test. (Early Access) hints: readOnly: false destructive: false idempotent: false call: rest-tests.createtest with: org_id: tools.org_id body: tools.body outputParameters: - type: object mapping: $. - name: get-test-early-access description: Get a test. (Early Access) hints: readOnly: true destructive: false idempotent: true call: rest-tests.gettest with: org_id: tools.org_id outputParameters: - type: object mapping: $.