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
env.sh•1.11 KiB
#!/usr/bin/env bash
# Template: operators extend env defaults via this optional hook.
#
# This file is sourced by the MCP server before handling requests.
# Use it to configure environment for all tools in this project.
#
# For CLI testing with the same environment:
# mcp-bash run-tool my-tool --with-server-env --args '{}'
# Or set MCPBASH_RUN_TOOL_SOURCE_SERVER_ENV=1 to always source this file.
# Debug mode: touch server.d/.debug to enable debug logging
# (equivalent to MCPBASH_LOG_LEVEL=debug but persisted in the project)
# The .debug file is checked automatically; no env.sh code needed.
#
# Placeholder variables; full configuration scaffolding arrives in later phases.
# Example (commented): export MCPBASH_LOG_LEVEL="info"
#
# Tool environment modes:
# - minimal (default): PATH/HOME/TMPDIR/LANG plus MCP*/MCPBASH* only.
# - allowlist: minimal env plus variables listed in MCPBASH_TOOL_ENV_ALLOWLIST.
# - inherit : full host environment; only use when all tools are trusted.
# Example (commented):
# export MCPBASH_TOOL_ENV_MODE="minimal"
# export MCPBASH_TOOL_ENV_ALLOWLIST="AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY"