Skip to main content
Glama
test_prompts.py753 B
"""Tests for prompt templates.""" from fastmcp.client import Client async def test_echo_prompt(client: Client): """Test echo prompt.""" result = await client.get_prompt("echo_prompt", {"message": "Hello AI"}) assert len(result.messages) > 0 assert "Hello AI" in str(result.messages[0].content) async def test_system_prompt_default(client: Client): """Test system prompt with default content.""" result = await client.get_prompt("system_prompt", {}) assert len(result.messages) > 0 async def test_system_prompt_custom(client: Client): """Test system prompt with custom content.""" result = await client.get_prompt("system_prompt", {"content": "You are a helpful assistant"}) assert len(result.messages) > 0

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/bugffet/mcpbin'

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