Skip to content

Commit fb76120

Browse files
committed
Script update
1 parent 68a99a3 commit fb76120

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

script/get-me

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ output=$(
66
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"get-me-script","version":"1.0.0"}}}'
77
echo '{"jsonrpc":"2.0","method":"notifications/initialized","params":{}}'
88
echo '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_me","arguments":{}}}'
9-
sleep 1
10-
) | go run cmd/github-mcp-server/main.go stdio "$@" 2>/dev/null | tail -1
9+
sleep 3
10+
) | go run cmd/github-mcp-server/main.go stdio "$@" 2>/dev/null | grep '"id":2'
1111
)
1212

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

0 commit comments

Comments
 (0)