get_version
Retrieve the current Solana node version directly from the blockchain. The tool provides version details in a clear format, ensuring accurate and timely updates for developers and users interacting with the Solana network.
Instructions
Returns the current solana versions running on the node.
Returns: str: Version information in the format "Version info: {version}"
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.py:354-363 (handler)The MCP tool handler for 'get_version'. It creates an AsyncClient to the Solana RPC endpoint and calls client.get_version() to retrieve and format the version information.@mcp.tool() async def get_version() -> str: """Returns the current solana versions running on the node. Returns: str: Version information in the format "Version info: {version}" """ async with AsyncClient(rpc_url) as client: version = await client.get_version() return f"Version info: {version}"