Skip to main content
Glama
test_server.py580 B
"""Tests for server tool registration.""" from fastmcp.client import Client async def test_list_tools(client: Client): """Test that all expected tools are registered.""" tools = await client.list_tools() tool_names = {t.name for t in tools} expected_tools = { "echo", "echo_context", "status_error", "random_error", "delay", "generate_uuid", "timestamp", "base64_encode", "base64_decode", } for tool in expected_tools: assert tool in tool_names, f"Tool {tool} not found"

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