getSupportedChains
Retrieve available blockchain network IDs for multi-chain operations in the Adamik MCP Server.
Instructions
Get a list of supported chain IDs
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/module.ts:223-233 (handler)Implements the getSupportedChains tool handler inline within the server.tool registration. Returns comma-separated list of supported chain IDs from the imported 'chains' array.server.tool("getSupportedChains", "Get a list of supported chain IDs", {}, async () => { const text = chains.join(","); return { content: [ { type: "text", text, }, ], }; });
- src/module.ts:223-233 (registration)Registers the getSupportedChains tool with name, description, input schema (empty), and inline handler function.server.tool("getSupportedChains", "Get a list of supported chain IDs", {}, async () => { const text = chains.join(","); return { content: [ { type: "text", text, }, ], }; });
- src/schemas.ts:117-120 (schema)Defines the Zod schema for the GetSupportedChainsResponse type, specifying a record of chain details.export const GetSupportedChainsResponseSchema = z.object({ chains: z.record(z.string(), ChainDetailSchema), }); export type GetSupportedChainsResponse = z.infer<typeof GetSupportedChainsResponseSchema>;
- src/chains.ts:4-22 (helper)Exports the array of supported chain IDs used by the getSupportedChains handler."ethereum", "cosmoshub", "axelar", "dydx", "osmosis", "bitcoin", "babylon", "starknet", "aptos", "solana", "sepolia", "holesky", "optimism", "optimism-sepolia", "bsc", "base", "ton", "tron", ];