loading…
Search for a command to run...
loading…
A professional tool for automatically generating enterprise-standard tracking code for H5, mini-programs, and native applications. It streamlines event tracking
A professional tool for automatically generating enterprise-standard tracking code for H5, mini-programs, and native applications. It streamlines event tracking for API calls, user clicks, and UI interactions while supporting JIRA integration for task-specific tracking.
基于 Model Context Protocol (MCP) 的专业埋点代码生成工具,自动生成符合企业级标准的跟踪代码。
在支持 MCP 的客户端中添加服务器配置:
{
"mcpServers": {
"mcp-ai-track": {
"command": "npx",
"args": ["-y", "mcp-ai-track"],
"env": {
"ENVIRONMENT": "h5",
"BUSINESS": "jk"
}
}
}
}
{
"mcpServers": {
"mcp-ai-track": {
"command": "node",
"args": ["/path/to/mcp-ai-track/dist/server.js"],
"env": {
"ENVIRONMENT": "h5",
"BUSINESS": "jk"
}
}
}
}
通过环境变量设置默认的 environment 和 business 参数:
微信小程序:
{
"mcpServers": {
"mcp-ai-track": {
"command": "node",
"args": ["/path/to/mcp-ai-track/dist/server.js"],
"env": {
"ENVIRONMENT": "wxmp",
"BUSINESS": "jk"
}
}
}
}
支付宝小程序:
{
"mcpServers": {
"mcp-ai-track": {
"command": "node",
"args": ["/path/to/mcp-ai-track/dist/server.js"],
"env": {
"ENVIRONMENT": "alipaymp",
"BUSINESS": "bx"
}
}
}
}
原生应用:
{
"mcpServers": {
"mcp-ai-track": {
"command": "node",
"args": ["/path/to/mcp-ai-track/dist/server.js"],
"env": {
"ENVIRONMENT": "app",
"BUSINESS": "jkyx"
}
}
}
}
环境 (environment): h5 | wxmp | alipaymp | ksmp | app 业务 (business): jk | bx | wa | qsgy | jkyx | mg |
状态 (state): pre | success | failed 动作 (action): order | login | imageupload | get | add | update | delete 描述 (description): 自定义,如 phone、userinfo、gominepage
主体 (subject): page | pop 场景 (scene): order | condition | banner | promotion | progress | recomm | tabbar 描述 (description): laststep | nextstep | continue | submit | receive | confirm | close
场景 (scene): splash | collection | remind | confirmationmodal 描述 (description): 自定义,描述弹窗用途
主体 (subject): page | pop 焦点 (focus): focus | blur 描述 (description): input* | select* | search* + 上下文(如 inputname、selectcity)
jiraKey: JIRA 任务号environment: 环境business:业务window.sa.track("事件类型", {
jiraKey: "BASESERVER-2411222", // 可选
fileName: "环境_业务_参数组合", // 必需
chineseDesc:'中文描述' //必须
fileValue: window.sa.fv(), // 可选,当前路由
});
# 克隆项目
git clone <repository-url>
cd mcp-ai-track
# 安装依赖
npm install
# 构建项目
npm run build
# 启动服务器
npm start
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"track-mcp": {
"command": "npx",
"args": []
}
}
}