Skip to main content
Glama

MCP Notify Server

test_server.py678 B
import pytest from mcp_server_notify import NotificationServer from unittest.mock import patch, AsyncMock @pytest.mark.asyncio async def test_notification_flow(): server = NotificationServer() # 使用 AsyncMock 模拟异步调用 mock_call_tool = AsyncMock(return_value=[{"text": "success"}]) with patch.object(server.server, "call_tool", mock_call_tool): response = await server.server.call_tool( name="send_notification", arguments={ "title": "Test", "message": "Test Message", "play_sound": True } ) assert "success" in response[0]["text"]

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/Cactusinhand/mcp_server_notify'

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