get_fpx_banks
Retrieve available FPX banks for online banking payments in Malaysia. Use this tool to access bank lists when setting up payment methods through the Bayarcash MCP Server.
Instructions
Get list of FPX banks for online banking payments
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/bayarcash-client.ts:251-258 (handler)Core handler function that executes the API call to retrieve the list of FPX banks from the Bayarcash endpoint '/fpx/banks'. This is the primary implementation logic for the tool.async getFpxBanksList(): Promise<FpxBank[]> { try { const response = await this.axiosInstance.get('/fpx/banks'); return response.data.data || response.data; } catch (error) { this.handleError(error); } }
- src/index.ts:344-354 (handler)MCP server dispatch handler in the CallToolRequestSchema switch statement that invokes the core getFpxBanksList method and returns formatted MCP 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)Tool registration in the ListToolsRequestSchema handler, defining the tool name, description, and empty input schema.{ name: 'get_fpx_banks', description: 'Get list of FPX banks for online banking payments', inputSchema: { type: 'object', properties: {} } }
- src/bayarcash-client.ts:21-25 (schema)TypeScript interface defining the structure of FPX bank objects returned by the get_fpx_banks tool.export interface FpxBank { code: string; name: string; active: boolean; }
- src/smithery.ts:154-164 (registration)Alternative tool registration and inline handler using Smithery framework, calling the same core getFpxBanksList method.server.tool( 'get_fpx_banks', 'Get list of FPX banks for online banking payments', {}, async () => { const result = await bayarcash.getFpxBanksList(); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; } );