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
tool.sh•869 B
#!/usr/bin/env bash
set -euo pipefail
script_dir="$(cd "$(dirname "$0")" && pwd)"
if [ -z "${MCP_SDK:-}" ] || [ ! -f "${MCP_SDK}/tool-sdk.sh" ]; then
if fallback_sdk="$(cd "${script_dir}/../../../sdk" 2>/dev/null && pwd)"; then
if [ -f "${fallback_sdk}/tool-sdk.sh" ]; then
MCP_SDK="${fallback_sdk}"
fi
fi
fi
if [ -z "${MCP_SDK:-}" ] || [ ! -f "${MCP_SDK}/tool-sdk.sh" ]; then
printf 'mcp: SDK helpers not found (set MCP_SDK to your framework sdk/ path; expected %s/tool-sdk.sh)\n' "${MCP_SDK:-<unset>}" >&2
exit 1
fi
# shellcheck source=../../../sdk/tool-sdk.sh disable=SC1091
. "${MCP_SDK}/tool-sdk.sh"
cat <<'EOF'
You are running mcp-bash without a project configured.
Next steps:
1) export MCPBASH_PROJECT_ROOT=/path/to/your/project
2) ./bin/mcp-bash scaffold tool my-tool
Docs: README.md#quick-start | docs/PROJECT-STRUCTURE.md | docs/ROOTS.md
EOF