Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions tests/mcp-codex/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ set -uo pipefail
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
SYNC="$REPO_DIR/scripts/sync-mcp.sh"

# These fixtures replace HOME and, in one case, XDG_CONFIG_HOME. Tool-manager
# shims can use those variables for their own configuration, so prefer the
# first real jq executable already available later on PATH. The suite is
# testing MCP rendering, not the operator's tool-manager state.
while IFS= read -r jq_candidate; do
[[ "$jq_candidate" == */shims/* ]] && continue
PATH="$(dirname "$jq_candidate"):$PATH"
export PATH
break
done < <(type -a -p jq)

pass=0
fail=0
ok() { echo "ok - $1"; pass=$((pass + 1)); }
Expand Down
Loading