We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ssimonitch/mcp-pyboy'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
utils.py•633 B
"""Utility functions for development scripts."""
from pathlib import Path
def find_project_root() -> Path:
"""
Find project root by looking for pyproject.toml.
Returns:
Path to project root directory.
Raises:
FileNotFoundError: If pyproject.toml cannot be found.
"""
start_path = Path(__file__).parent
current = start_path
while current != current.parent: # Stop at filesystem root
if (current / "pyproject.toml").exists():
return current
current = current.parent
raise FileNotFoundError("Could not find pyproject.toml in any parent directory")