We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yaniv-golan/mcp-bash-framework'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
fixtures.sh•1.09 KiB
#!/usr/bin/env bash
# Helpers for staging temporary workspaces (fixtures).
set -euo pipefail
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
# shellcheck source=test/common/env.sh
# shellcheck disable=SC1091
. "${REPO_ROOT}/test/common/env.sh"
# shellcheck source=test/common/assert.sh
# shellcheck disable=SC1091
. "${REPO_ROOT}/test/common/assert.sh"
test_stage_example() {
local example_id="$1"
if [ -z "${example_id}" ]; then
test_fail "example id required"
fi
test_create_tmpdir
EXAMPLE_DIR="${MCPBASH_HOME}/examples/${example_id}"
if [ ! -d "${EXAMPLE_DIR}" ]; then
test_fail "example ${example_id} not found"
fi
TMP_WORKDIR="$(mktemp -d "${TEST_TMPDIR}/example.XXXXXX")"
test_stage_workspace "${TMP_WORKDIR}"
# Copy example content into project directories
cp -a "${EXAMPLE_DIR}/"* "${TMP_WORKDIR}/" 2>/dev/null || true
# shellcheck disable=SC2034
MCP_TEST_WORKDIR="${TMP_WORKDIR}"
# Export MCPBASH_PROJECT_ROOT for the test
# shellcheck disable=SC2031 # Intentional: variable is set and used within this function scope
export MCPBASH_PROJECT_ROOT="${TMP_WORKDIR}"
}