We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/FaceDeer/calibre_full_mcp_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test_library_ops.py•688 B
import pytest
import json
@pytest.mark.asyncio
async def test_get_library_schema(mcp_session):
result = await mcp_session.call_tool("get_library_schema", {})
assert result.content is not None
schema = json.loads(result.content[0].text)
assert "title" in schema
# If 'type' is missing, it might be nested or structured differently
if "type" in schema["title"]:
assert schema["title"]["type"] == "text"
@pytest.mark.asyncio
async def test_fts_search(mcp_session):
result = await mcp_session.call_tool("fts_search", {"query": "Morrison"})
content = result.content[0].text
data = json.loads(content)
assert "Morrison" in data[0]["text"]