get_fpx_banks
Retrieve available FPX banks for online banking payments through the Bayarcash payment gateway, enabling payment processing in Malaysia.
Instructions
Get list of FPX banks for online banking payments
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:344-354 (handler)MCP tool handler for 'get_fpx_banks'. Fetches FPX banks list from BayarcashClient instance and returns result as JSON-formatted text response.case 'get_fpx_banks': { const result = await bayarcash.getFpxBanksList(); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2) } ] }; }
- src/index.ts:202-209 (registration)Registers the 'get_fpx_banks' tool in the MCP server's tool list, with description and empty input schema (no parameters required).{ name: 'get_fpx_banks', description: 'Get list of FPX banks for online banking payments', inputSchema: { type: 'object', properties: {} } }
- src/index.ts:205-208 (schema)Input schema for 'get_fpx_banks' tool: empty object (no input parameters needed).inputSchema: { type: 'object', properties: {} }
- src/bayarcash-client.ts:251-258 (helper)BayarcashClient helper method that performs API GET request to '/fpx/banks' endpoint and returns array of FpxBank objects, handling errors.async getFpxBanksList(): Promise<FpxBank[]> { try { const response = await this.axiosInstance.get('/fpx/banks'); return response.data.data || response.data; } catch (error) { this.handleError(error); } }