Skip to content

Pbeslin/parse mcp history#1244

Draft
pbeslin-gg wants to merge 6 commits into
mainfrom
pbeslin/parse-mcp-history
Draft

Pbeslin/parse mcp history#1244
pbeslin-gg wants to merge 6 commits into
mainfrom
pbeslin/parse-mcp-history

Conversation

@pbeslin-gg
Copy link
Copy Markdown
Collaborator

@pbeslin-gg pbeslin-gg commented May 18, 2026

Context

New option in ggshield ai discover: --history allows parsing and sending MCP calls found in agent transcripts, in order to obtain insight on calls made before installing the hook.
⚠️ Requires py-gitguardian changes: GitGuardian/py-gitguardian#173

image

What has been done

  • ggshield ai discover takes a new optional flag option: --history. Not passing the flag results in the same behavior as before.
  • Passing the flag runs the history parsing in addition to the default behavior
  • Transcript files are parsed for all supported agents: Claude Code, Copilot, Cursor
    • Claude Code and VSCode Chat store them in .jsonl files
    • Cursor uses a database
  • Each agent implements its own way of iterating over the past events
  • All activities are sent to the GitGuardian API in batches (500). The GitGuardian API handles idempotency.

Validation

  1. Wire py-gitguardian correct version (feat: bulk mcp activity route py-gitguardian#173)
  2. Wire the local GitGuardian API with the new route (if not deployed yet)
  3. Run ggshield ai discover --history
  4. Go to the Agentic AI dashboard

PR check list

  • As much as possible, the changes include tests (unit and/or functional)
  • If the changes affect the end user (new feature, behavior change, bug fix) then the PR has a changelog entry (see doc/dev/getting-started.md). If the changes do not affect the end user, then the skip-changelog label has been added to the PR.

@pbeslin-gg pbeslin-gg force-pushed the pbeslin/parse-mcp-history branch 4 times, most recently from 12eee7f to 6f506ee Compare May 20, 2026 14:57
@pbeslin-gg pbeslin-gg requested review from paulpetit-gg-ext and xblanchot-gg and removed request for paulpetit-gg-ext May 21, 2026 08:20
@pbeslin-gg pbeslin-gg force-pushed the pbeslin/parse-mcp-history branch 2 times, most recently from a135eaa to 1ec984a Compare May 26, 2026 09:01
@pbeslin-gg pbeslin-gg force-pushed the pbeslin/parse-mcp-history branch from aa9da72 to 6d2c6b1 Compare May 26, 2026 11:58
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.

1 participant