naftiko: 1.0.0-alpha2 info: label: Xcel Energy Green Button Connect My Data API — Authorization description: 'Xcel Energy Green Button Connect My Data API — Authorization. 2 operations. Lead operation: List customer authorizations granted to the application. Self-contained Naftiko capability covering one Xcel Energy business surface.' tags: - Xcel Energy - Authorization created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: XCEL_ENERGY_API_KEY: XCEL_ENERGY_API_KEY capability: consumes: - type: http namespace: green-button-authorization baseUri: https://api.xcelenergy.com/DataCustodian/espi/1_1/resource description: Xcel Energy Green Button Connect My Data API — Authorization business capability. Self-contained, no shared references. resources: - name: Authorization path: /Authorization operations: - name: listauthorizations method: GET description: List customer authorizations granted to the application outputRawFormat: json outputParameters: - name: result type: object value: $. - name: Authorization-authorizationId path: /Authorization/{authorizationId} operations: - name: getauthorization method: GET description: Retrieve a single customer authorization outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.XCEL_ENERGY_API_KEY}}' exposes: - type: rest namespace: green-button-authorization-rest port: 8080 description: REST adapter for Xcel Energy Green Button Connect My Data API — Authorization. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/authorization name: authorization description: REST surface for Authorization. operations: - method: GET name: listauthorizations description: List customer authorizations granted to the application call: green-button-authorization.listauthorizations outputParameters: - type: object mapping: $. - path: /v1/authorization/{authorizationid} name: authorization-authorizationid description: REST surface for Authorization-authorizationId. operations: - method: GET name: getauthorization description: Retrieve a single customer authorization call: green-button-authorization.getauthorization outputParameters: - type: object mapping: $. - type: mcp namespace: green-button-authorization-mcp port: 9090 transport: http description: MCP adapter for Xcel Energy Green Button Connect My Data API — Authorization. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-customer-authorizations-granted-application description: List customer authorizations granted to the application hints: readOnly: true destructive: false idempotent: true call: green-button-authorization.listauthorizations outputParameters: - type: object mapping: $. - name: retrieve-single-customer-authorization description: Retrieve a single customer authorization hints: readOnly: true destructive: false idempotent: true call: green-button-authorization.getauthorization outputParameters: - type: object mapping: $.