Skip to main content
Glama

OKX-DEX-SDK MCP SSE Server

by 0xobedient
getBridgeTokenPairs.ts•864 B
import { Tool } from "./../../shared/types/tool"; import { z } from "zod"; import { get_bridge_token_pairs } from "../hooks"; export const getBridgeTokenPairsToolParams = { fromChainId: z.string(), }; export const getBridgeTokenPairsToolZodParams = z.object({ ...getBridgeTokenPairsToolParams, }); export type GetBridgeTokenPairsToolParamType = z.infer< typeof getBridgeTokenPairsToolZodParams >; export const getBridgeTokenPairsTool: Tool< typeof getBridgeTokenPairsToolParams, { fromChainId: string }, string > = { name: "OKX_BRIDGE_GET_BRIDGE_TOKEN_PAIRS", description: "List of tokens pairs available for trading directly across the cross-chain bridge.", parameters: { ...getBridgeTokenPairsToolParams, }, callback: async ({ fromChainId }: { fromChainId: string }) => { return get_bridge_token_pairs(fromChainId); }, };

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/0xobedient/okx-mcp'

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