-
Notifications
You must be signed in to change notification settings - Fork 10
feat(mcp): add indexing status, analytics, and comprehensive tests #459
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Jan 10, 2026
Owner
Author
SafeDep Report SummaryNo dependency changes detected. Nothing to scan. This report is generated by SafeDep Github App |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #459 +/- ##
==========================================
+ Coverage 80.79% 81.64% +0.84%
==========================================
Files 92 94 +2
Lines 10207 10513 +306
==========================================
+ Hits 8247 8583 +336
+ Misses 1643 1615 -28
+ Partials 317 315 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
53e9592 to
34d5aa3
Compare
966e931 to
0740d34
Compare
Owner
Author
Merge activity
|
Add comprehensive indexing status tracking: - StatusTracker: State machine tracking indexing phases (parsing, module_registry, call_graph) - Progress tracking with phase progress and overall progress - Subscriber pattern for real-time status updates - GracefulDegradation: Returns informative errors when index not ready New MCP features: - "status" method returns current indexing state and progress - IndexNotReadyError includes phase and progress percentage - Server exposes IsReady() and GetStatusTracker() methods 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Add anonymous telemetry events (no PII): - mcp_server_started: Transport type, OS, arch - mcp_server_stopped: Uptime duration - mcp_tool_call: Tool name, duration, success/error - mcp_indexing_complete: Aggregate counts (functions, edges, modules) - mcp_client_connected: Client name/version from MCP protocol Analytics helper: - mcp/analytics.go: MCP-specific telemetry wrapper - ReportEventWithProperties: Support for event properties - ToolCallMetrics: Timing helper for tool calls 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Previously the serve command had a hardcoded default of "3.11" while BuildCallGraph auto-detects from .python-version or pyproject.toml. This caused inconsistency between the call graph build and MCP server. Now: - Auto-detect Python version using builder.DetectPythonVersion() - --python-version flag becomes an optional override (empty default) - Log the detected/overridden version at startup 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Improve test coverage from 88.8% to 95.6%: - Add analytics_test.go with tests for all Analytics methods - Add server tests for SetTransport, handleStatus, GetStatusTracker, IsReady - Add HTTP tests for Start blocking, SSE endpoint, invalid addresses - Add streaming handler tests for write error paths 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
34d5aa3 to
89ddeb0
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Summary
Adds indexing status tracking, PostHog analytics, and comprehensive test coverage.
Indexing Status & Graceful Degradation:
uninitialized→indexing→ready/failedstatusJSON-RPC method for real-time statusPostHog Analytics (anonymous, no PII):
mcp_server_startedmcp_server_stoppedmcp_tool_callmcp_indexing_completemcp_client_connectedPython Version Detection:
.python-versionorpyproject.toml--python-versionoverrideTest Coverage: