Skip to content

Commit 3b37b0f

Browse files
improved OptionalBigIntArrayParam doc
1 parent 39bd464 commit 3b37b0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/github/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ func convertStringToBigInt(s string, def int64) (int64, error) {
225225

226226
// OptionalBigIntArrayParam is a helper function that can be used to fetch a requested parameter from the request.
227227
// It does the following checks:
228-
// 1. Checks if the parameter is present in the request, if not, it returns its zero-value
229-
// 2. If it is present, iterates the elements and checks each is a string
228+
// 1. Checks if the parameter is present in the request, if not, it returns an empty slice
229+
// 2. If it is present, iterates the elements, checks each is a string, and converts them to int64 values
230230
func OptionalBigIntArrayParam(r mcp.CallToolRequest, p string) ([]int64, error) {
231231
// Check if the parameter is present in the request
232232
if _, ok := r.GetArguments()[p]; !ok {

0 commit comments

Comments
 (0)