naftiko: 1.0.0-alpha2 info: label: X API v2 description: 'X API v2. 1 operations. Lead operation: X Get OpenAPI Spec.. Self-contained Naftiko capability covering one Twitter business surface.' tags: - Twitter created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TWITTER_API_KEY: TWITTER_API_KEY capability: consumes: - type: http namespace: x-general baseUri: https://api.x.com description: X API v2 business capability. Self-contained, no shared references. resources: - name: 2-openapi.json path: /2/openapi.json operations: - name: getopenapispec method: GET description: X Get OpenAPI Spec. outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.TWITTER_API_KEY}}' exposes: - type: rest namespace: x-general-rest port: 8080 description: REST adapter for X API v2. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/2/openapi-json name: 2-openapi-json description: REST surface for 2-openapi.json. operations: - method: GET name: getopenapispec description: X Get OpenAPI Spec. call: x-general.getopenapispec outputParameters: - type: object mapping: $. - type: mcp namespace: x-general-mcp port: 9090 transport: http description: MCP adapter for X API v2. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: x-get-openapi-spec description: X Get OpenAPI Spec. hints: readOnly: true destructive: false idempotent: true call: x-general.getopenapispec outputParameters: - type: object mapping: $.