Skip to content

Commit a49d4e7

Browse files
committed
docs(v04): use printf %s placeholders in mcp_call helper (review feedback)
1 parent e042ab3 commit a49d4e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/v04/progress/phase-a-mcp-boot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ mcp_call() {
129129
sleep 0.3
130130
printf '%s\n' '{"jsonrpc":"2.0","method":"notifications/initialized"}'
131131
sleep 0.1
132-
printf '%s\n' "{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/call\",\"params\":{\"name\":\"$tool\",\"arguments\":$args}}"
132+
printf '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"%s","arguments":%s}}\n' "$tool" "$args"
133133
sleep 0.5
134134
} | ./bin/rune-mcp 2>/dev/null | jq -c 'select(.id==2)'
135135
}

0 commit comments

Comments
 (0)