Skip to main content
Glama

FastMCP Boilerplate

by rainer85ah
test_chat_full.py450 B
import pytest from tools.chat import DEFAULT_MODEL @pytest.mark.asyncio async def test_ask_question_endpoint(async_client): response = await async_client.get("/api/v1/chat/ask", params={ "question": "What is FastAPI?", "model": DEFAULT_MODEL }) assert response.status_code == 200 json = response.json() assert "result" in json assert isinstance(json["result"], str) assert json["result"].strip() != ""

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/rainer85ah/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server