"""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"