We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yconst/preloop'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
conftest.py•646 B
"""Shared test fixtures for endpoint tests."""
import pytest
from pytest_mock import MockerFixture
@pytest.fixture(autouse=True)
def mock_has_permission(mocker: MockerFixture):
"""
Mock has_permission to always return True for unit tests.
This allows unit tests to call endpoint functions directly without
needing to set up proper user roles and permissions.
"""
try:
import preloop.plugins.proprietary.rbac.permissions # NOQA: F401
mocker.patch(
"preloop.plugins.proprietary.rbac.permissions.has_permission",
return_value=True,
)
except ImportError:
pass