Skip to main content
Glama

Model Context Provider (MCP) Server

by Mark850409
send_ping.py621 B
# messages/send_ping.py from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream from mcpcli.messages.send_message import send_message from mcpcli.messages.message_types.ping_message import PingMessage async def send_ping( read_stream: MemoryObjectReceiveStream, write_stream: MemoryObjectSendStream, ) -> bool: # create a ping message ping_msg = PingMessage() # send the message response = await send_message( read_stream=read_stream, write_stream=write_stream, message=ping_msg ) # return the response return response is not None

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/Mark850409/20250223_mcp-client'

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