#!/bin/sh
# Pre-commit hook to automatically generate TOOLS.md from tool definition files
echo "Running pre-commit hook to update TOOLS.md..."
# Check if any tool definition files have been modified
if git diff --cached --name-only | grep -E "(src/tools/definitions/|src/utils/tools-data.ts)"; then
echo "Tool definition files have changed, regenerating TOOLS.md..."
# Build the project first to ensure latest compiled definitions
npm run build
# Run the script to regenerate TOOLS.md
node scripts/generate-tools-md.js
# Add the updated TOOLS.md to the commit
git add TOOLS.md
echo "TOOLS.md has been updated and added to the commit."
else
echo "No changes to src/utils/tools-data.ts, skipping TOOLS.md generation."
fi
# Return success
exit 0
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/atla-digital/mcp-gitlab'
If you have feedback or need assistance with the MCP directory API, please join our Discord server