Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2025

Conversation

ph3t
Copy link
Contributor

@ph3t ph3t commented Jun 6, 2025

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
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
atxtechbro pushed a commit to atxtechbro/github-mcp-server that referenced this pull request Jun 8, 2025
@ph3t
Copy link
Contributor Author

ph3t commented Jun 8, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants