Skip to content

Hotfix client#23

Merged
timothedelion merged 1 commit intomainfrom
tdelion/-/hotfix
Oct 17, 2025
Merged

Hotfix client#23
timothedelion merged 1 commit intomainfrom
tdelion/-/hotfix

Conversation

@timothedelion
Copy link
Copy Markdown
Member

No description provided.

The paginate_all method was only checking for "results" key in API
responses, but some GitGuardian API endpoints return data using a
"data" key instead. This caused get_all=True to fail by returning
empty lists.

Added support for both response formats:
- {"results": [...]} (existing)
- {"data": [...]} (newly added)

This fixes MCP tool calls with get_all=True parameter for endpoints
like list_repo_incidents, list_repo_occurrences, and remediate_secret_incidents.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@timothedelion timothedelion self-assigned this Oct 17, 2025
@timothedelion timothedelion merged commit fb4a994 into main Oct 17, 2025
2 checks passed
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