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•576 B
#!/usr/bin/env bash
# Test fixture: Tool that emits progress, runs longer than timeout.
# Used by test/integration/test_progress_timeout.sh
set -euo pipefail
# Source SDK (MCP_SDK is set by the framework when running tools)
# shellcheck disable=SC1091
source "${MCP_SDK:?MCP_SDK environment variable not set}/tool-sdk.sh"
duration="$(mcp_args_int ".duration" --default 10)"
for i in $(seq 1 "$duration"); do
mcp_progress "$((i * 100 / duration))" "Working... step $i" "$duration"
sleep 1
done
mcp_result_success "$(mcp_json_obj message "Completed after ${duration}s")"