We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/memextech/ht-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test-homebrew-local.shβ’1.25 KiB
#!/bin/bash
set -euo pipefail
# Test Homebrew distribution locally
# This builds a local binary and tests the formula structure
echo "π§ͺ Testing Homebrew distribution locally..."
# Build release binary
echo "π¨ Building release binary..."
cargo build --release
# Create a temporary formula for testing
echo "π Creating test formula..."
TEMP_FORMULA=$(mktemp)
BINARY_PATH="$(pwd)/target/release/ht-mcp"
BINARY_SHA=$(shasum -a 256 "$BINARY_PATH" | cut -d' ' -f1)
cat > "$TEMP_FORMULA" << EOF
class HtMcp < Formula
desc "Headless Terminal MCP Server - Control terminal sessions via Model Context Protocol"
homepage "https://github.com/memextech/ht-mcp"
version "0.1.2-test-local"
url "file://$BINARY_PATH"
sha256 "$BINARY_SHA"
def install
bin.install "ht-mcp"
end
test do
assert_match "ht-mcp", shell_output("#{bin}/ht-mcp --version 2>&1", 1)
end
end
EOF
echo "β Test formula created at: $TEMP_FORMULA"
echo "π Formula content:"
cat "$TEMP_FORMULA"
echo ""
echo "π― To test this formula:"
echo "1. Copy to a local tap: cp $TEMP_FORMULA /opt/homebrew/Library/Taps/local/homebrew-test/Formula/ht-mcp.rb"
echo "2. Install: brew install local/test/ht-mcp"
echo "3. Test: ht-mcp --version"
echo ""
echo "ποΈ Clean up: rm $TEMP_FORMULA"