feat: add OSS analytics ping on MCP server startup

This commit is contained in:
2026-05-24 03:00:49 +01:00
parent dc010fe57d
commit 28b6582dac
2 changed files with 58 additions and 0 deletions
+3
View File
@@ -13,6 +13,7 @@ import (
"github.com/lukaszraczylo/claude-mnemonic/internal/config"
"github.com/lukaszraczylo/claude-mnemonic/internal/mcp"
"github.com/lukaszraczylo/claude-mnemonic/internal/telemetry"
"github.com/lukaszraczylo/claude-mnemonic/internal/watcher"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
@@ -60,6 +61,8 @@ func main() {
// Start file watchers for config changes
startWatchers()
telemetry.Ping("claude-mnemonic", Version)
// Create and run MCP server
server := mcp.NewServer(client, workerURL, *project, Version)
log.Info().Str("project", *project).Str("version", Version).Str("worker", workerURL).Msg("Starting MCP server")