Skip to main content
Glama

Model Context Provider (MCP) Server

by Mark850409
send_prompts.py692 B
# messages/prompts.py from anyio.streams.memory import MemoryObjectReceiveStream, MemoryObjectSendStream from mcpcli.messages.send_message import send_message from mcpcli.messages.message_types.prompts_messages import PromptsListMessage async def send_prompts_list( read_stream: MemoryObjectReceiveStream, write_stream: MemoryObjectSendStream, ) -> list: """Send a 'prompts/list' message and return the list of prompts.""" message = PromptsListMessage() # send the message response = await send_message( read_stream=read_stream, write_stream=write_stream, message=message, ) # return the result return response.get("result", [])

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