diff options
Diffstat (limited to 'scripts/run-mcp-tool.sh')
| -rwxr-xr-x | scripts/run-mcp-tool.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/run-mcp-tool.sh b/scripts/run-mcp-tool.sh index 94ccbe6..11d3d0b 100755 --- a/scripts/run-mcp-tool.sh +++ b/scripts/run-mcp-tool.sh @@ -44,6 +44,15 @@ load_env() { } run() { + if [[ -z "$tool_data" ]]; then + die "error: no JSON data" + fi + + if [[ "$OS" == "Windows_NT" ]]; then + set -o igncr + tool_data="$(echo "$tool_data" | sed 's/\\/\\\\/g')" + fi + no_llm_output=0 if [[ -z "$LLM_OUTPUT" ]]; then no_llm_output=1 |
