fix: move defaulted 'state' param after non-default params in list_code_scanning_alerts by ph3t · Pull Request #488 · github/github-mcp-server · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
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
@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

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.