Skip to main content
Glama

HT-MCP

by memextech
test-brew-manual.shโ€ข2.7 kB
#!/bin/bash set -euo pipefail echo "๐Ÿงช Testing Homebrew formula manually with local binary..." # Create a temporary directory for our test tap TEST_TAP_DIR="/tmp/homebrew-test-tap" rm -rf "$TEST_TAP_DIR" mkdir -p "$TEST_TAP_DIR/Formula" # Build the binary if not already built if [ ! -f "target/release/ht-mcp" ]; then echo "๐Ÿ”จ Building release binary..." cargo build --release fi # Create a local file URL for the binary BINARY_PATH="$(pwd)/target/release/ht-mcp" BINARY_SHA=$(shasum -a 256 "$BINARY_PATH" | cut -d' ' -f1) echo "๐Ÿ“ Creating test formula with local binary..." cat > "$TEST_TAP_DIR/Formula/ht-mcp.rb" << 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.3-test-local" url "file://$BINARY_PATH" sha256 "$BINARY_SHA" def install bin.install "ht-mcp" end test do # Test that the binary exists and shows help assert_match "Pure Rust MCP server", shell_output("#{bin}/ht-mcp --help 2>&1") end end EOF echo "โœ… Formula created!" echo "๐Ÿ“„ Formula content:" cat "$TEST_TAP_DIR/Formula/ht-mcp.rb" echo "" # Check if we can add this tap echo "๐Ÿ”ง Adding temporary tap..." if brew tap-new test/local || true; then echo "Tap created or already exists" fi # Copy our formula to the tap LOCAL_TAP_DIR="$(brew --repository)/Library/Taps/test/homebrew-local" if [ -d "$LOCAL_TAP_DIR" ]; then cp "$TEST_TAP_DIR/Formula/ht-mcp.rb" "$LOCAL_TAP_DIR/Formula/" echo "โœ… Formula copied to local tap" echo "๐Ÿงช Testing formula installation..." # Uninstall if already installed brew uninstall test/local/ht-mcp 2>/dev/null || true # Install from our local tap if brew install test/local/ht-mcp; then echo "โœ… Installation successful!" echo "๐Ÿงช Testing installed binary..." if ht-mcp --help | grep -q "Pure Rust MCP server"; then echo "โœ… Binary test successful!" else echo "โŒ Binary test failed" exit 1 fi echo "๐Ÿงช Running brew test..." if brew test test/local/ht-mcp; then echo "โœ… Brew test successful!" else echo "โŒ Brew test failed" exit 1 fi echo "" echo "๐ŸŽ‰ ALL TESTS PASSED!" echo "โœ… Homebrew formula works correctly" echo "" echo "Clean up with: brew uninstall test/local/ht-mcp && brew untap test/local" else echo "โŒ Installation failed" exit 1 fi else echo "โŒ Could not create local tap directory" exit 1 fi

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/memextech/ht-mcp'

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