getSupportedChains
Retrieve a list of supported blockchain chain IDs to identify compatible networks for interactions through 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)The inline handler function that executes the getSupportedChains tool logic. It imports the chains array and joins it into a comma-separated string returned as text content.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)Registration of the getSupportedChains tool on the MCP server, including description, empty input schema, and inline handler.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)Zod schema for the GetSupportedChains response, defining a record of chain IDs to ChainDetail objects (not directly used by the tool).export const GetSupportedChainsResponseSchema = z.object({ chains: z.record(z.string(), ChainDetailSchema), }); export type GetSupportedChainsResponse = z.infer<typeof GetSupportedChainsResponseSchema>;
- src/chains.ts:4-22 (helper)The default exported array of supported chain IDs, imported and used by the getSupportedChains handler."ethereum", "cosmoshub", "axelar", "dydx", "osmosis", "bitcoin", "babylon", "starknet", "aptos", "solana", "sepolia", "holesky", "optimism", "optimism-sepolia", "bsc", "base", "ton", "tron", ];