Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitda9c97b

Browse files
authored
fix: move defaulted 'state' param after non-default params in list_code_scanning_alerts
Fixes `SyntaxError: parameter without a default follows parameter with a default` when using github-mcp-server with the Python MCP SDK
1 parentc17ebfe commitda9c97b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎pkg/github/code_scanning.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ func ListCodeScanningAlerts(getClient GetClientFn, t translations.TranslationHel
115115
iferr!=nil {
116116
returnmcp.NewToolResultError(err.Error()),nil
117117
}
118-
ref,err:=OptionalParam[string](request,"ref")
118+
state,err:=OptionalParam[string](request,"state")
119119
iferr!=nil {
120120
returnmcp.NewToolResultError(err.Error()),nil
121121
}
122-
state,err:=OptionalParam[string](request,"state")
122+
ref,err:=OptionalParam[string](request,"ref")
123123
iferr!=nil {
124124
returnmcp.NewToolResultError(err.Error()),nil
125125
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp