Skip to main content
Glama

MCP Platform

by jck411
format.py•1.37 kB
"""Format script for MCP platform.""" import subprocess import sys from pathlib import Path def _paths() -> list[str]: return ["src/", "Servers/", "scripts/"] def _py_files(paths: list[str]) -> list[str]: files: list[str] = [] for root in paths: for p in Path(root).rglob("*.py"): files.append(str(p)) return files def main(): """Run ruff format and targeted checks on the codebase.""" try: targets = _paths() subprocess.run(["uv", "run", "ruff", "format", *targets], check=True) # Fast whitespace cleanups (preview + unsafe for whitespace-only) subprocess.run( [ "uv", "run", "ruff", "check", "--preview", "--fix", "--unsafe-fixes", "--select", "W291,W293,E3", *targets, ], check=True, ) subprocess.run( [ "uv", "run", "ruff", "check", "--fix", "--ignore", "E501", *targets, ], check=True, ) except subprocess.CalledProcessError: sys.exit(1) if __name__ == "__main__": main()

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/jck411/MCP_BACKEND_OPENROUTER'

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