We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/chrisguidry/you-need-an-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test_assertions.py•605 B
"""Test assertion helpers."""
import pytest
from assertions import extract_response_data
def test_extract_response_data_invalid_type() -> None:
"""Test that extract_response_data raises TypeError for invalid input."""
with pytest.raises(TypeError, match="Expected CallToolResult with content"):
extract_response_data("invalid_input")
def test_extract_response_data_invalid_list() -> None:
"""Test that extract_response_data raises TypeError for old list format."""
with pytest.raises(TypeError, match="Expected CallToolResult with content"):
extract_response_data([])