helius_get_version
Retrieve the current version of the Solana node using the MCP Helius server, facilitating seamless integration and monitoring within blockchain operations.
Instructions
Get the version of the Solana node
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"required": [],
"type": "object"
}
Implementation Reference
- src/handlers/helius.ts:310-317 (handler)The core handler function for 'helius_get_version' that fetches the Solana node version using the Helius RPC connection and formats the response.export const getVersionHandler = async (input: GetVersionInput): Promise<ToolResultSchema> => { try { const version = await (helius as any as Helius).connection.getVersion(); return createSuccessResponse(`Version: ${JSON.stringify(version, null, 2)}`); } catch (error) { return createErrorResponse(`Error getting version: ${error instanceof Error ? error.message : String(error)}`); } }
- src/tools.ts:265-273 (schema)Tool schema definition including name, description, and empty input schema for 'helius_get_version'.{ name: "helius_get_version", description: "Get the version of the Solana node", inputSchema: { type: "object", properties: {}, required: [] } },
- src/tools.ts:570-570 (registration)Registration of the 'helius_get_version' tool to its handler function in the handlers dictionary."helius_get_version": getVersionHandler,