authorize_transfer_away
Authorize the transfer of a domain to another registrar by specifying the domain name. This action approves the outgoing transfer request.
Instructions
Approve an outgoing domain transfer to another registrar.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name to authorize for transfer away |
Implementation Reference
- src/tools/transfer.ts:155-181 (handler)The MCP tool handler for 'authorize_transfer_away'. It defines the tool schema (domain string input), description, and async handler that calls client.authorizeTransferAway() and returns the JSON result.
// ─── authorize_transfer_away ────────────────────────────────── server.tool( "authorize_transfer_away", "Approve an outgoing domain transfer to another registrar.", { domain: z.string().describe("Domain name to authorize for transfer away"), }, async ({ domain }) => { try { const result = await client.authorizeTransferAway(domain); return { content: [ { type: "text" as const, text: JSON.stringify(result, null, 2) }, ], }; } catch (error) { const msg = error instanceof Error ? error.message : String(error); return { content: [ { type: "text" as const, text: `Failed to authorize transfer: ${msg}` }, ], isError: true, }; } } ); - src/tools/transfer.ts:160-162 (schema)Zod schema for the tool input: 'domain' string describing the domain name to authorize for transfer away.
{ domain: z.string().describe("Domain name to authorize for transfer away"), }, - src/tools/transfer.ts:155-181 (registration)The tool is registered via server.tool('authorize_transfer_away', ...) inside registerTransferTools(), which is called from src/index.ts with the McpServer and DynadotClient instances.
// ─── authorize_transfer_away ────────────────────────────────── server.tool( "authorize_transfer_away", "Approve an outgoing domain transfer to another registrar.", { domain: z.string().describe("Domain name to authorize for transfer away"), }, async ({ domain }) => { try { const result = await client.authorizeTransferAway(domain); return { content: [ { type: "text" as const, text: JSON.stringify(result, null, 2) }, ], }; } catch (error) { const msg = error instanceof Error ? error.message : String(error); return { content: [ { type: "text" as const, text: `Failed to authorize transfer: ${msg}` }, ], isError: true, }; } } ); - The DynadotClient.authorizeTransferAway() helper method that calls the Dynadot API3 'authorize_transfer_away' command with the domain parameter.
async authorizeTransferAway(domain: string): Promise<DynadotResponse> { return this.call("authorize_transfer_away", { domain }); }