naftiko: 1.0.0-alpha2 info: label: Paymob Accept API — Transactions description: 'Paymob Accept legacy v2 transaction operations: retrieve transaction by id, inquire by merchant order id, capture, void, refund.' tags: - Paymob - Accept - Transactions created: '2026-05-24' modified: '2026-05-24' binds: - namespace: env keys: PAYMOB_AUTH_TOKEN: PAYMOB_AUTH_TOKEN capability: consumes: - type: http namespace: accept-transactions baseUri: https://accept.paymob.com description: Paymob Accept legacy v2 transactions. resources: - name: transaction path: /api/acceptance/transactions/{transaction_id} operations: - name: retrievetransaction method: GET description: Retrieve transaction details by id. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: transaction_id in: path type: integer required: true - name: refund path: /api/acceptance/void_refund/refund operations: - name: refundtransaction method: POST description: Refund a captured transaction. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object required: true - name: void path: /api/acceptance/void_refund/void operations: - name: voidtransaction method: POST description: Void an authorised transaction. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object required: true - name: capture path: /api/acceptance/capture operations: - name: capturetransaction method: POST description: Capture an authorised transaction. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object required: true authentication: type: apikey key: Authorization value: 'Bearer {{env.PAYMOB_AUTH_TOKEN}}' placement: header exposes: - type: mcp namespace: accept-transactions-mcp port: 9090 transport: http description: MCP adapter for Paymob Accept transactions. tools: - name: paymob-retrieve-transaction description: Retrieve a Paymob transaction by id. hints: readOnly: true destructive: false idempotent: true call: accept-transactions.retrievetransaction with: transaction_id: tools.transaction_id outputParameters: - type: object mapping: $. - name: paymob-refund-transaction description: Refund a Paymob transaction. hints: readOnly: false destructive: true idempotent: false call: accept-transactions.refundtransaction with: body: tools.body outputParameters: - type: object mapping: $. - name: paymob-void-transaction description: Void a Paymob transaction. hints: readOnly: false destructive: true idempotent: false call: accept-transactions.voidtransaction with: body: tools.body outputParameters: - type: object mapping: $. - name: paymob-capture-transaction description: Capture a Paymob transaction. hints: readOnly: false destructive: false idempotent: false call: accept-transactions.capturetransaction with: body: tools.body outputParameters: - type: object mapping: $.