
Analyga
io.github.jyswee由 GitHub 账号 jyswee 发布v0.1.15更新于 Oct 24, 2026
Agent-first analytics: stats, events, sessions, funnels, ingest, websites & billing.
发布方自己的服务:Vips
概览
面向智能体的网站与 MCP 分析服务:助手可查询统计、事件和漏斗,发送服务端事件,管理网站与摄取密钥,并获取账单结账链接。
- 可以做什么
- 按时间窗口查询网站流量统计、事件计数和跨站点网络汇总,均为只读并以 JSON 返回。为站点定义、列出并运行转化漏斗。使用稳定用户 ID 发送服务端事件,检查摄取健康状况,并创建或吊销按站点划分的摄取密钥。查看网站与凭据作用域,并读取完整的命令与错误码模式。为某个套餐申请账单结账链接,交给人工完成付款。
- 适用场景
- 适合助手会触发分析事件或发布改动、需要确认事件是否送达以及是否有人完成流程,而不想打开仪表盘的场景。也适合希望在同一套智能体驱动界面上同时衡量网站与 MCP 流量的团队。
- 运行要求
- 可作为远程 SSE 端点运行,也可作为本地 npm 包运行(包名 analyga,命令 tga,通过 npx 或 tga mcp-serve 启动)。Analyga API 密钥通过 ANALYGA_KEY 环境变量或 Authorization bearer 请求头提供;没有密钥时服务器进入引导模式,可自行注册。服务端摄取使用单独的按站点摄取密钥。需要能访问 Analyga 服务的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Analyga,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 SSE。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.jyswee%2Fanalyga/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"analyga": {
"type": "sse",
"url": "https://mcp.analyga.com/sse"
}
}
}README
analyga
[npm version] [MCP] [Agent-first]
Agent-first analytics for MCP + web traffic — query, instrument and configure from a terminal or an MCP client. No browser, no dashboard.
A dashboard for humans.
tgafor your agents.
One analytics surface for both halves of modern traffic: the web visits your site still gets, and the agent/MCP calls that increasingly drive it. Analytics tools assume a human staring at a chart — but increasingly the thing that needs the numbers is an agent: it fired the events, it wants to know whether they landed, and it wants five numbers back, not a dashboard to render. analyga is the surface the agent drives itself: one install, and it queries stats and funnels across web and MCP, sends server-side events, and reads its own schema — all as structured JSON, none of it screen-scraped.
Works with: Claude Code · Cursor · Cline · Windsurf · Aider · Codex · any MCP client
[analyga demo — query to funnel in 60 seconds]
One agent, one terminal — query to funnel in 60 seconds. Watch the full demo.
See it in action
No mockups — every clip is a live tga session against a seeded tenant. Click any GIF for the full-res video.
Install
The npm package is analyga; the command is tga.
Quick Start
Every command takes --json — the machine surface is a first-class citizen, not an afterthought:
Read the contract, don't guess flags
That returns every command, argument, flag, type, whether it is read-only, and the full list of error codes — generated from the same table that drives the parser, the help text and the MCP tools, so it cannot drift from what the CLI actually does. If it is not in the schema, it does not exist.
Query — stats, events, funnels
Ask the questions an agent actually asks after it ships: did the events land, and did anyone make it through the flow?
All read-only, all --json-able — an agent branches on the numbers instead of parsing a chart.
Identity — pass --id or your agents collapse into one visitor
Anonymous identity is derived from IP and user-agent. Agent traffic shares both — one CLI version means one user-agent, and agents often share an egress IP — so without a stable id every agent behind that IP collapses into a single visitor. It cannot be backfilled.
Sending events server-side
A discarded event still answers HTTP 200. The ingest endpoint returns {"beep":"boop"} when it drops an event as a bot. This CLI treats that as a hard failure with a hint rather than reporting success — so an agent never believes a dropped event succeeded.
Server-side ingest uses a separate per-website key (ANALYGA_INGEST_KEY or --ingest-key), scoped to one website so it can only ever write that site's traffic. Mint one with tga ingest-key create <websiteId> and revoke it with tga ingest-key revoke <websiteId> — the plaintext is shown once and only its hash is stored.
Billing — hand a human a checkout URL
An agent authenticates with its tenant key, names a plan, and gets back a Stripe Checkout URL to pass to a human who completes payment:
The tenant is pinned server-side from the key. The free plan (and any plan without a configured price) is not purchasable, and internal sister-stack tenants are never billed.
MCP Server
Prefer tools over a CLI? analyga ships an MCP server. Point Claude Code (or any MCP client) at it and your agent gets 13 native tools covering stats, events, funnels, websites, identity, server-side ingest (including minting/revoking ingest keys) and billing checkout.
For clients that use a JSON config, pass your key via ANALYGA_KEY. The MCP server runs outside your project directory, so it will not pick up .analyga/config.json:
Read-only tools are flagged, so a client will not prompt a human to confirm a read. Every tool declares an outputSchema, so an agent never parses prose or guesses field names — and a tool result and --json output are the same bytes, one client across two surfaces. A session with no key sees only the onboarding surface — how to connect, plus analyga_signup to bootstrap its own tenant — rather than the full toolset.
Error codes
Failures carry a stable code and a distinct exit code, so an agent can branch on the outcome instead of string-matching a message.
Exit 1 is reserved for unhandled crashes, so a classified failure is never ambiguous. Where the server can say what to do next, it comes back as a hint on its own line.
Configuration
Resolved highest-priority first:
--keyflagANALYGA_KEYenvironment variable.analyga/config.jsonin the current directory
tga whoami reports which of these won. On a multi-tenant platform, "which tenant am I about to write to" is the question that matters most. .analyga/ holds a live credential — keep it out of version control.
Features
- Self-serve signup —
tga signupcreates a tenant and its first API key with no card and no admin in the loop; keyless, so it works before you have a credential - Tenant-aware identity —
tga whoamishows the pinned tenant and key scope for atga_key, or the user and teams for a session login - Stats & events — top-line traffic and event counts over any window, all read-only, all
--json - Funnels — define once, run anytime; step-by-step conversion for a site
- Network rollup — cross-site stats for a whole team
- Server-side ingest —
tga sendwith a scoped per-site key; mint/rotate/revoke keys withtga ingest-key create|revoke; dropped-as-bot events fail loudly instead of faking a 200 - Billing checkout —
tga billing checkout --plan <id>returns a Stripe URL to hand to a human - Stable identity —
--idkeeps agents from collapsing into one anonymous visitor - agent-schema — one command emits the full contract (commands, flags, types, error codes) so agents never guess
- MCP server — 13 tools (
tga mcp-serve) for Claude Code, Cursor, Cline, Windsurf, any MCP client - Classified errors — stable
code+ distinct exit code per failure class, with actionablehints
Agent Integration
Add to your CLAUDE.md, .cursorrules, .clinerules, .windsurfrules, or AGENTS.md:
Why this exists
Every analytics tool I reached for assumed a human looking at a chart — but the thing that needed the numbers was the agent that fired the events. So the CLI and the MCP server are the primary interface here, not a wrapper bolted onto a REST API. It's early and iterating fast: if something's rough or missing, open an issue.
Documentation
For now, tga --help and tga agent-schema --json are the authoritative reference.
Status
Early. Published for dogfooding by the Tyga sister stacks. Interfaces may change; error codes will not be reworded once published, because agents branch on them.
License
Proprietary — Tyga.Cloud Ltd. See LICENSE.
来源:README.md,提交 99e4cf4
工具
0版本历史
2- v0.1.15最新Sep 23, 2026
- v0.1.14Sep 16, 2026
评分
已满足适用检查项的 75%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具必需15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。
其他 Vipsallowed 集成

Vips
com.vipsallowed官方发布者
VIPsAllowed 的 MCP 服务器让助手运营创作者业务:发布内容、管理订阅者、发送付费私信、查看收益与提现。

Computegpu
由 GitHub 账号 jyswee 发布
让助手租用云端 GPU:查看实时目录、部署、停止、恢复和销毁实例,按秒计费。

Weselltours
由 GitHub 账号 jyswee 发布
面向 WeSellTours 旅游平台的本地 MCP 服务器,让助手管理酒店、旅游与预订,跟踪缺陷和功能,并咨询旅游 AI。

Taufunctions
由 GitHub 账号 jyswee 发布
TauFunctions 让助手在 TauFunctions 平台上创建、部署、调用和监控无服务器函数,可通过 npm 本地运行或远程端点连接。

Sslwebsites
由 GitHub 账号 jyswee 发布
一个本地 MCP 服务器,让编码助手通过 SSLWebsites 服务签发、续期、吊销、下载和监控 SSL/TLS 证书。