We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zakahan/pypreader-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test_server.py•367 B
import pytest
from fastmcp import Client
from pypreader_mcp.server import mcp as server
@pytest.fixture
def mcp_server():
return server
async def test_tool_functionality(mcp_server):
# Pass the server directly to the Client constructor
async with Client(mcp_server) as client:
result = await client.list_tools()
assert len(result) > 0