Skip to main content
Glama
test-hooks.shβ€’1.33 kB
#!/bin/bash # Script to test the attribution detection functionality # Colors for output RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[1;33m' NC='\033[0m' # No Color echo -e "${YELLOW}Testing attribution detection...${NC}" # Create a test file with attribution echo "This is a test file. πŸ€– Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>" > /tmp/test-attribution.txt echo -e "Test file created with attribution messages." echo -e "Contents of test file:" cat /tmp/test-attribution.txt echo "" # Patterns to check for ATTRIBUTION_PATTERNS=( "Generated with Claude" "Generated with \[Claude Code\]" "Co-Authored-By: Claude" "noreply@anthropic.com" "Generated by AI" "AI-generated" "Generated by Claude" "πŸ€– Generated" "Created with Claude" ) # Check file for attribution patterns FOUND=false for pattern in "${ATTRIBUTION_PATTERNS[@]}"; do if grep -q "$pattern" /tmp/test-attribution.txt; then echo -e "${RED}Found AI attribution:${NC} '${YELLOW}$pattern${NC}'" FOUND=true fi done if [ "$FOUND" = true ]; then echo -e "${GREEN}βœ… Attribution detection is working correctly.${NC}" else echo -e "${RED}❌ Attribution detection failed to identify patterns.${NC}" fi # Clean up rm /tmp/test-attribution.txt echo "Test file removed."

Latest Blog Posts

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/kesslerio/attio-mcp-server'

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