Skip to main content
Glama
test_server.py787 B
"""Basic tests for the OCP Viewer MCP Server.""" import pytest def test_import(): """Test that the module can be imported.""" from ocp_viewer_mcp import server assert hasattr(server, 'server') assert hasattr(server, 'main') def test_server_name(): """Test that the server has the correct name.""" from ocp_viewer_mcp.server import server assert server.name == "ocp-viewer" @pytest.mark.asyncio async def test_list_tools(): """Test that tools are listed correctly.""" from ocp_viewer_mcp.server import list_tools tools = await list_tools() assert len(tools) == 1 assert tools[0].name == "capture_ocp_screenshot" assert "port" in tools[0].inputSchema["properties"] assert "wait_ms" in tools[0].inputSchema["properties"]

Latest Blog Posts

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/dmilad/ocp-viewer-mcp'

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