MCP: expose time to convert on get_funnel

未关闭
#650 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@gmann14 已经在做这个了。

开始于 2026年11月7日。

  • #660 来自 @gmann14 —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
72/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
analytics

调研方向

Start with packages/core/src/modules/mcp/src/tools/analytics/funnel.ts and trace how get_funnel defines its inputs and calls getFunnelCore; compare this with the report setting and funnel service mentioned in the issue. Check the existing funnel tool tests and add coverage for the optional setting and per-step durations. Done when all listed aggregation choices work, while omitting the input preserves today's output.

由索引模型根据 Issue 内容生成。

描述

Summary

Funnel reports can show time to convert per step since #619 (options.timeToConvert), but the MCP tool get_funnel does not offer it. An agent or other MCP client therefore cannot answer "how long do people take from add-to-cart to checkout?".

Current behavior

packages/core/src/modules/mcp/src/tools/analytics/funnel.ts has no timeToConvert input and calls getFunnelCore without it, as of v3.26.0. The setting exists only in the report builder and the funnel service.

Proposal

Add an optional timeToConvert input to get_funnel with the same values as the report setting (off by default, average, median, min, max, 25th, 75th, 90th, 99th percentile), and return the per-step duration in the tool result. Omitting the input keeps today's output unchanged.

Why

We read OpenPanel only through MCP from our own dashboard, on the self-hosted supporter build. Going around the tool with direct ClickHouse queries would duplicate your funnel logic, so the tool is the right place for this.

主要语言
TypeScript
星标
7.3k
派生
552
平均合并
1 天 2 小时
30 天内合并 PR
18

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Openpanel-dev/openpanel 的其他 Issue

查看 Openpanel-dev/openpanel 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。