Skip to main content
Glama
tywenk

Model Context Protocol Server for Solana Client

by tywenk

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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}"

Latest Blog Posts

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/tywenk/mcp-sol'

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