naftiko: 1.0.0-alpha2 info: label: SAS Viya REST API — Models description: 'SAS Viya REST API — Models. 2 operations. Lead operation: List Model Projects. Self-contained Naftiko capability covering one Sas business surface.' tags: - Sas - Models created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SAS_API_KEY: SAS_API_KEY capability: consumes: - type: http namespace: viya-rest-models baseUri: https://{viya-host} description: SAS Viya REST API — Models business capability. Self-contained, no shared references. resources: - name: modelManagement-projects path: /modelManagement/projects operations: - name: listmodelprojects method: GET description: List Model Projects outputRawFormat: json outputParameters: - name: result type: object value: $. - name: modelRepository-models path: /modelRepository/models operations: - name: listmodels method: GET description: List Models outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.SAS_API_KEY}}' exposes: - type: rest namespace: viya-rest-models-rest port: 8080 description: REST adapter for SAS Viya REST API — Models. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/modelmanagement/projects name: modelmanagement-projects description: REST surface for modelManagement-projects. operations: - method: GET name: listmodelprojects description: List Model Projects call: viya-rest-models.listmodelprojects outputParameters: - type: object mapping: $. - path: /v1/modelrepository/models name: modelrepository-models description: REST surface for modelRepository-models. operations: - method: GET name: listmodels description: List Models call: viya-rest-models.listmodels outputParameters: - type: object mapping: $. - type: mcp namespace: viya-rest-models-mcp port: 9090 transport: http description: MCP adapter for SAS Viya REST API — Models. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-model-projects description: List Model Projects hints: readOnly: true destructive: false idempotent: true call: viya-rest-models.listmodelprojects outputParameters: - type: object mapping: $. - name: list-models description: List Models hints: readOnly: true destructive: false idempotent: true call: viya-rest-models.listmodels outputParameters: - type: object mapping: $.