We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tokusumi/wassden-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
dev_gate.py•988 B
"""Development feature gate utilities.
This module provides utilities to check if development features are available
and should be enabled based on optional dependencies installation.
"""
import importlib.util
def is_dev_mode() -> bool:
"""Check if development mode is available by verifying optional dev dependencies.
Returns:
bool: True if development mode dependencies are installed, False otherwise.
"""
try:
# Check for scipy specifically since it's the main blocker for experiment features
scipy_spec = importlib.util.find_spec("scipy")
if scipy_spec is None:
return False
# Also check for other critical dev packages
critical_dev_packages = ["pandas", "language_tool_python"]
for package in critical_dev_packages:
spec = importlib.util.find_spec(package)
if spec is None:
return False
return True
except Exception:
return False