We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/NakanoSanku/msc-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test_main.py•470 B
import unittest
from unittest.mock import patch
class TestMain(unittest.TestCase):
@patch("msc_mcp.server.mcp")
def test_main_calls_mcp_run(self, mock_mcp) -> None:
# Import inside the test so patched mcp is used by serve().
from msc_mcp.__main__ import main
# No CLI arguments; should just invoke serve() -> mcp.run().
main([])
mock_mcp.run.assert_called_once_with()
if __name__ == "__main__":
unittest.main()