Skip to main content
Glama
tywenk

Model Context Protocol Server for Solana Client

by tywenk

is_connected

Check client connection status with the Solana blockchain using Model Context Protocol Server. Returns connection status in a simple format for quick verification.

Instructions

Health check to verify if the client is connected.

Returns: str: Connection status in the format "Connected: {connected}"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'is_connected' MCP tool. It is decorated with @mcp.tool() for registration and implements the tool logic by creating an AsyncClient instance and calling its is_connected() method to check the connection status to the RPC endpoint.
    @mcp.tool() async def is_connected() -> str: """Health check to verify if the client is connected. Returns: str: Connection status in the format "Connected: {connected}" """ async with AsyncClient(rpc_url) as client: connected = await client.is_connected() return f"Connected: {connected}"

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