naftiko: 1.0.0-alpha2 info: label: Moonshot AI API — Billing description: 'Moonshot AI API — Billing. 1 operations. Lead operation: Check Balance. Self-contained Naftiko capability covering one Moonshot Ai business surface.' tags: - Moonshot Ai - Billing created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MOONSHOT_AI_API_KEY: MOONSHOT_AI_API_KEY capability: consumes: - type: http namespace: moonshot-ai-billing baseUri: https://api.moonshot.ai description: Moonshot AI API — Billing business capability. Self-contained, no shared references. resources: - name: v1-users-me-balance path: /v1/users/me/balance operations: - name: get method: GET description: Check Balance outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.MOONSHOT_AI_API_KEY}}' exposes: - type: rest namespace: moonshot-ai-billing-rest port: 8080 description: REST adapter for Moonshot AI API — Billing. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/users/me/balance name: v1-users-me-balance description: REST surface for v1-users-me-balance. operations: - method: GET name: get description: Check Balance call: moonshot-ai-billing.get outputParameters: - type: object mapping: $. - type: mcp namespace: moonshot-ai-billing-mcp port: 9090 transport: http description: MCP adapter for Moonshot AI API — Billing. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: check-balance description: Check Balance hints: readOnly: true destructive: false idempotent: true call: moonshot-ai-billing.get outputParameters: - type: object mapping: $.