Skip to content

fix: move defaulted 'state' param after non-default params in list_code_scanning_alerts#488

Merged
SamMorrowDrums merged 1 commit into
github:mainfrom
ph3t:fix-default-param-order
Jun 7, 2025
Merged

fix: move defaulted 'state' param after non-default params in list_code_scanning_alerts#488
SamMorrowDrums merged 1 commit into
github:mainfrom
ph3t:fix-default-param-order

Conversation

@ph3t

@ph3t ph3t commented Jun 6, 2025

Copy link
Copy Markdown
Contributor

Fixes SyntaxError: parameter without a default follows parameter with a default error when using github-mcp-server with the Python MCP SDK

Closes: N/A

@ph3t ph3t requested a review from a team as a code owner June 6, 2025 13:42
…de_scanning_alerts

Fixes `SyntaxError: parameter without a default follows parameter with a default` when using github-mcp-server with the Python MCP SDK
@ph3t ph3t force-pushed the fix-default-param-order branch from da9c97b to 7404ba5 Compare June 6, 2025 13:51
@SamMorrowDrums

Copy link
Copy Markdown
Collaborator

Interesting, is this formally part of the spec or a quirk of the Python client SDK?

@SamMorrowDrums SamMorrowDrums merged commit c141bf4 into github:main Jun 7, 2025
9 checks passed
@ph3t

ph3t commented Jun 8, 2025

Copy link
Copy Markdown
Contributor Author

Interesting, is this formally part of the spec or a quirk of the Python client SDK?

@SamMorrowDrums Turns out the issue was in the ADK (nerve) I'm using, so this change didn't fix anything. But basically, Python expects functions with default args to be last. I have opened a new PR as an apology for this useless fix: #494 😅

@ph3t ph3t deleted the fix-default-param-order branch June 8, 2025 23:07
nickytonline pushed a commit to nickytonline/github-mcp-http that referenced this pull request Oct 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants