#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
echo "π Running pre-commit checks..."
# TypeScript linting and type checking
echo "π Linting TypeScript..."
pnpm lint
if [ $? -ne 0 ]; then
echo "β TypeScript linting failed"
exit 1
fi
echo "π Type checking TypeScript..."
pnpm typecheck
if [ $? -ne 0 ]; then
echo "β TypeScript type checking failed"
exit 1
fi
# Python linting and type checking
echo "π Checking Python code..."
cd packages/python-worker
if [ -f "requirements.txt" ]; then
# Check if ruff is available
if command -v ruff >/dev/null 2>&1; then
echo "π Linting Python with ruff..."
ruff check src/
if [ $? -ne 0 ]; then
echo "β Python linting failed"
exit 1
fi
fi
# Check if mypy is available
if command -v mypy >/dev/null 2>&1; then
echo "π Type checking Python with mypy..."
mypy src/ --ignore-missing-imports
if [ $? -ne 0 ]; then
echo "β Python type checking failed"
exit 1
fi
fi
fi
cd ../..
echo "β All pre-commit checks passed!"
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/BlinkZer0/Phys-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server