Skip to main content
Glama
__init__.py1.03 kB
"""Public package interface for mcp_gitlab. The server component depends on the optional ``mcp`` package. Importing it in environments where the dependency is unavailable would raise an ImportError and prevent access to the remaining utility modules. To make the package more robust for unit tests we try to import the server lazily and fall back to lightweight placeholders when the import fails. """ try: # pragma: no cover - defensive import from .gitlab_client import GitLabClient, GitLabConfig except Exception: GitLabClient = None GitLabConfig = None from .version import __version__ __all__ = ["GitLabClient", "GitLabConfig"] try: # pragma: no cover - exercised implicitly during import from .server import server, main # type: ignore __all__.extend(["server", "main"]) except Exception: # pylint: disable=broad-except server = None # type: ignore def main(*args, **kwargs): # pragma: no cover - placeholder function raise ImportError("MCP server dependencies are not installed")

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/Vijay-Duke/mcp-gitlab'

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