Skip to main content
Glama

Upbit MCP Server

by IQAIcom
create-withdrawal.ts1.11 kB
import { z } from "zod"; import { config } from "../lib/config.js"; import { createHttpClient, fetchJson } from "../lib/http.js"; import { ensurePrivateEnabled, signJwtToken } from "../lib/upbit-auth.js"; const paramsSchema = z .object({ currency: z.string(), amount: z.string(), address: z.string(), net_type: z.string(), secondary_address: z.string().optional(), transaction_type: z.enum(["default", "internal"]).optional(), }) .strict(); type Params = z.infer<typeof paramsSchema>; export const createWithdrawalTool = { name: "CREATE_WITHDRAWAL", description: "Request a digital asset withdrawal (requires private API)", parameters: paramsSchema, execute: async (params: Params) => { ensurePrivateEnabled(); const baseURL = `${config.upbit.baseUrl}${config.upbit.apiBasePath}`; const client = createHttpClient(baseURL); const token = signJwtToken(params); const data = await fetchJson<unknown>(client, "/withdraws/coin", { method: "POST", data: params, headers: { Authorization: `Bearer ${token}` }, }); return JSON.stringify(data, null, 2); }, } as const;

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/IQAIcom/mcp-upbit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server