Skip to content

Commit 6aab5ac

Browse files
committed
Pass parameters
1 parent 5565f95 commit 6aab5ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

script/get-me

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ output=$(
77
echo '{"jsonrpc":"2.0","method":"notifications/initialized","params":{}}'
88
echo '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_me","arguments":{}}}'
99
sleep 1
10-
) | go run cmd/github-mcp-server/main.go stdio 2>/dev/null | tail -1
10+
) | go run cmd/github-mcp-server/main.go stdio "$@" 2>/dev/null | tail -1
1111
)
1212

1313
if command -v jq &> /dev/null; then
14-
echo "$output" | jq '.result.content[0].text | fromjson'
14+
echo "$output" | jq '.result | {_meta, content: (.content[0].text | fromjson)}'
1515
else
1616
echo "$output"
1717
fi

0 commit comments

Comments
 (0)