Skip to main content
Glama

Rootly MCP server

Official
test_oncall_handoff.py2.25 kB
"""Unit tests for on-call handoff tools.""" import pytest from unittest.mock import patch @pytest.mark.unit @pytest.mark.asyncio class TestGetOncallHandoffSummary: """Test get_oncall_handoff_summary tool.""" async def test_tool_registered(self): """Test that get_oncall_handoff_summary is registered.""" from rootly_mcp_server.server import create_rootly_mcp_server with patch('rootly_mcp_server.server._load_swagger_spec') as mock_load_spec: mock_spec = { "openapi": "3.0.0", "info": {"title": "Test API", "version": "1.0.0"}, "paths": {}, "components": {"schemas": {}} } mock_load_spec.return_value = mock_spec server = create_rootly_mcp_server() assert server is not None tools = await server.get_tools() tool_names = [] for t in tools: if hasattr(t, 'name'): tool_names.append(t.name) # type: ignore[attr-defined] else: tool_names.append(str(t)) assert 'get_oncall_handoff_summary' in tool_names @pytest.mark.unit @pytest.mark.asyncio class TestGetShiftIncidents: """Test get_shift_incidents tool.""" async def test_tool_registered(self): """Test that get_shift_incidents is registered.""" from rootly_mcp_server.server import create_rootly_mcp_server with patch('rootly_mcp_server.server._load_swagger_spec') as mock_load_spec: mock_spec = { "openapi": "3.0.0", "info": {"title": "Test API", "version": "1.0.0"}, "paths": {}, "components": {"schemas": {}} } mock_load_spec.return_value = mock_spec server = create_rootly_mcp_server() assert server is not None tools = await server.get_tools() tool_names = [] for t in tools: if hasattr(t, 'name'): tool_names.append(t.name) # type: ignore[attr-defined] else: tool_names.append(str(t)) assert 'get_shift_incidents' in tool_names

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/Rootly-AI-Labs/Rootly-MCP-server'

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