naftiko: 1.0.0-alpha2 info: label: Xero OAuth 2 Identity Service API — Identity description: 'Xero OAuth 2 Identity Service API — Identity. 2 operations. Lead operation: Xero Retrieves the connections for this user. Self-contained Naftiko capability covering one Xero business surface.' tags: - Xero - Identity created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: XERO_API_KEY: XERO_API_KEY capability: consumes: - type: http namespace: identity-identity baseUri: https://api.xero.com description: Xero OAuth 2 Identity Service API — Identity business capability. Self-contained, no shared references. resources: - name: Connections path: /Connections operations: - name: getconnections method: GET description: Xero Retrieves the connections for this user outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: authEventId in: query type: string description: Filter by authEventId - name: Connections-id path: /Connections/{id} operations: - name: deleteconnection method: DELETE description: Xero Deletes a connection for this user (i.e. disconnect a tenant) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: Unique identifier for retrieving single object required: true authentication: type: bearer token: '{{env.XERO_API_KEY}}' exposes: - type: rest namespace: identity-identity-rest port: 8080 description: REST adapter for Xero OAuth 2 Identity Service API — Identity. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/connections name: connections description: REST surface for Connections. operations: - method: GET name: getconnections description: Xero Retrieves the connections for this user call: identity-identity.getconnections with: authEventId: rest.authEventId outputParameters: - type: object mapping: $. - path: /v1/connections/{id} name: connections-id description: REST surface for Connections-id. operations: - method: DELETE name: deleteconnection description: Xero Deletes a connection for this user (i.e. disconnect a tenant) call: identity-identity.deleteconnection with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: identity-identity-mcp port: 9090 transport: http description: MCP adapter for Xero OAuth 2 Identity Service API — Identity. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: xero-retrieves-connections-this-user description: Xero Retrieves the connections for this user hints: readOnly: true destructive: false idempotent: true call: identity-identity.getconnections with: authEventId: tools.authEventId outputParameters: - type: object mapping: $. - name: xero-deletes-connection-this-user description: Xero Deletes a connection for this user (i.e. disconnect a tenant) hints: readOnly: false destructive: true idempotent: true call: identity-identity.deleteconnection with: id: tools.id outputParameters: - type: object mapping: $.