Transfer Domain
whmcs_transfer_domainSend a domain transfer command to the registrar for a specified domain ID.
Instructions
Send domain transfer command to registrar
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domainid | Yes | Domain ID |
Implementation Reference
- src/index.ts:634-639 (handler)Handler function for the whmcs_transfer_domain tool. Calls whmcsClient.transferDomain(params) and returns the result as JSON text content.
async (params) => { const result = await whmcsClient.transferDomain(params); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; } - src/index.ts:630-633 (schema)Input schema for whmcs_transfer_domain. Requires a single parameter: domainid (number).
inputSchema: { domainid: z.number().describe('Domain ID'), }, }, - src/index.ts:625-640 (registration)Registration of the whmcs_transfer_domain tool with the MCP server using server.registerTool().
server.registerTool( 'whmcs_transfer_domain', { title: 'Transfer Domain', description: 'Send domain transfer command to registrar', inputSchema: { domainid: z.number().describe('Domain ID'), }, }, async (params) => { const result = await whmcsClient.transferDomain(params); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; } ); - src/whmcs-client.ts:832-839 (helper)Client method transferDomain() in the WHMCS API client. Makes the actual API call using 'DomainTransfer' action via the WHMCS API.
/** * Transfer a domain */ async transferDomain(params: { domainid: number; }) { return this.call<WhmcsApiResponse>('DomainTransfer', params); }