#!/bin/sh
# Pre-commit hook to automatically generate TOOLS.md from tools-data.ts
echo "Running pre-commit hook to update TOOLS.md..."
# Check if tools-data.ts has been modified
if git diff --cached --name-only | grep -q "src/utils/tools-data.ts"; then
echo "src/utils/tools-data.ts has changed, regenerating TOOLS.md..."
# 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/rifqi96/mcp-gitlab'
If you have feedback or need assistance with the MCP directory API, please join our Discord server