naftiko: 1.0.0-alpha2 info: label: PG&E Share My Data API — Authorization description: 'PG&E Share My Data API — Authorization. 1 operations. Lead operation: List authorizations. Self-contained Naftiko capability covering one Pg And E business surface.' tags: - Pg And E - Authorization created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PG_AND_E_API_KEY: PG_AND_E_API_KEY capability: consumes: - type: http namespace: share-my-data-authorization baseUri: https://api.pge.com description: PG&E Share My Data API — Authorization business capability. Self-contained, no shared references. resources: - name: GreenButtonConnect-espi-1_1-resource-Authorization path: /GreenButtonConnect/espi/1_1/resource/Authorization operations: - name: listauthorizations method: GET description: List authorizations outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.PG_AND_E_API_KEY}}' exposes: - type: rest namespace: share-my-data-authorization-rest port: 8080 description: REST adapter for PG&E Share My Data API — Authorization. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/greenbuttonconnect/espi/1-1/resource/authorization name: greenbuttonconnect-espi-1-1-resource-authorization description: REST surface for GreenButtonConnect-espi-1_1-resource-Authorization. operations: - method: GET name: listauthorizations description: List authorizations call: share-my-data-authorization.listauthorizations outputParameters: - type: object mapping: $. - type: mcp namespace: share-my-data-authorization-mcp port: 9090 transport: http description: MCP adapter for PG&E Share My Data API — Authorization. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-authorizations description: List authorizations hints: readOnly: true destructive: false idempotent: true call: share-my-data-authorization.listauthorizations outputParameters: - type: object mapping: $.