Commit graph

12 commits

Author SHA1 Message Date
thibaud-leclere
2fcb06a130 feat: add auto-update via forge.lclr.dev/AI/xdebug-mcp releases
All checks were successful
Release / release (push) Successful in 29s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 10:42:31 +02:00
thibaud-leclere
35487b996c chore: upgrade mcp-framework to v1.11.0, revert to bootstrap.Run
v1.11.0 auto-disables commands whose hooks are nil, so the custom
dispatcher is no longer needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 10:39:41 +02:00
thibaud-leclere
6246b88bd5 refactor: bypass bootstrap, expose only mcp and version commands
The framework's help listed setup/login/config/update commands that are
irrelevant for xdebug-mcp (no auth or config needed). Replace bootstrap.Run
with a minimal dispatcher that only exposes the commands that matter.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 10:18:35 +02:00
thibaud-leclere
302d2d9b90 fix: warn on ambiguous contains match, use sort.Slice in sortedCalls 2026-05-12 10:08:19 +02:00
thibaud-leclere
c419d8ce1d feat: wire MCP server with bootstrap CLI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 09:58:19 +02:00
thibaud-leclere
3943bfb8cc feat: add get_callers and get_callees tools
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 09:52:51 +02:00
thibaud-leclere
8fafc4a69e feat: add analyze_profile tool
Implements the analyze_profile MCP tool with TDD: exports Analyze() for
direct testing, wraps it in AnalyzeHandler() for MCP, and adds AnalyzeTool()
for the schema definition. Adds mark3labs/mcp-go v0.52.0 dependency.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 09:50:35 +02:00
thibaud-leclere
c56b803f8c feat: add shared tool helpers 2026-05-12 09:46:15 +02:00
thibaud-leclere
8d41653be4 feat: add LRU cache for parsed profiles 2026-05-12 09:44:50 +02:00
thibaud-leclere
392c0f71aa fix: reset pendingCallCount before parsing calls= line 2026-05-12 09:43:49 +02:00
thibaud-leclere
47040d50ae feat: add cachegrind parser with gzip support
Two-pass parser resolves forward cfn= references; all cost lines
(including call edges) are accumulated as inclusive costs per function.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 09:41:31 +02:00
thibaud-leclere
d3c7f27c21 feat: add cachegrind data model 2026-05-12 09:37:12 +02:00