Skip to content

Context7 Platform -- Up-to-date docs for AI agents

feat(cli): track install count events on setup command (#2197)

Fahreddin Özcan7e60d055513a
diff --git a/.changeset/brave-pugs-wink.md b/.changeset/brave-pugs-wink.md
new file mode 100644
index 00000000..d0b0379f
--- /dev/null
+++ b/.changeset/brave-pugs-wink.md
@@ -0,0 +1,5 @@
+---
+"ctx7": patch
+---
+
+- feat(cli): track install count events when skills are installed via `ctx7 setup`
diff --git a/packages/cli/src/commands/setup.ts b/packages/cli/src/commands/setup.ts
index be70da2e..05f1248b 100644
--- a/packages/cli/src/commands/setup.ts
+++ b/packages/cli/src/commands/setup.ts
@@ -366,6 +366,7 @@ async function setupMcp(agents: SetupAgent[], options: SetupOptions, scope: Scop
log.blank();
trackEvent("setup", { agents, scope, authMode: auth.mode });
+ trackEvent("install", { skills: ["/upstash/context7/context7-mcp"], ides: agents });
}
async function setupCli(options: SetupOptions): Promise<void> {
@@ -413,6 +414,7 @@ async function setupCli(options: SetupOptions): Promise<void> {
log.blank();
trackEvent("setup", { mode: "cli" });
+ trackEvent("install", { skills: ["/upstash/context7/find-docs"], ides: targets.ides });
}
async function setupCommand(options: SetupOptions): Promise<void> {