Skip to main content
Glama

Model Coupling Platform Server

by EstebanIIT
test_mcp_handler.py479 B
import pytest from src.mcp_handlers import handle_mcp_request @pytest.mark.asyncio async def test_handle_list_resources(): result = await handle_mcp_request("mcp/listResources", {}) assert "resources" in result assert "tools" in result assert len(result["resources"]) == 1 assert len(result["tools"]) == 3 @pytest.mark.asyncio async def test_handle_invalid_method(): with pytest.raises(ValueError): await handle_mcp_request("invalid_method", {})

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/EstebanIIT/CS550_MCP'

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