AttriKit
io.attrikit由 attrikit.io 发布v2.0.1更新于 Nov 3, 2026
通过代理运行 AttriKit 的网页到应用归因:应用、推广链接、支出、决策、导出
AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。
原文描述
Run AttriKit web-to-app attribution from an agent: apps, campaign links, spend, decisions, exports
概览
AttriKit 的本地 MCP 服务,由 attrikit.io 发布;无需登录;STDIO。
暂无 AI 概览:以下信息来自注册中心条目和服务本身。
- 发布者
- attrikit.io
安装
在 SourceWeft 中
- 打开 控制台中的 AttriKit,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@attrkit/mcp
A stdio MCP server for AttriKit, web-to-app attribution for iOS and Android apps that buy ads. Use it from Claude Code, Claude Desktop, Codex, Cursor, Gemini CLI, VS Code or Windsurf to create campaign links, import spend, read each campaign's scale, cut or hold call, and export installs and events. It is a thin client over AttriKit's public API. It holds no database access; your tenant scope is resolved from your secret management key.
Source: KamyarTaher/attrikit-mcp. Report an issue there or at [email protected]. MIT licensed.
What it exposes
The server provides 39 tools.
get_campaign_decision returns the engine's call verbatim. The model reports it;
it does not recompute it.
A Meta or TikTok integration has two delivery options. delivery_scope is all
(the default: every install with measurement consent, organic ones included) or
attributed (only installs AttriKit attributes to that network: a click ID, a link
token, or a Matched install at or above the delivery floor). renewal_event
is purchase (the default: a renewal is sent as Purchase) or custom (it is
sent as the custom event subscription_renewed, with its value). Set them on
create_integration, or later with update_integration and the action
set_delivery_options, which leaves the credential and status as they are. A
Google integration refuses attributed and custom.
Before you connect
Install Node.js 22 or newer. The npx -y @attrkit/mcp command downloads and
starts the server automatically, so no global install is required.
Node.js 22 is required from 2.0.0.
engines.nodeis>=22; 1.x accepted Node.js 18. If a client still starts the server with an older Node, upgrade Node, or pin@attrkit/mcp@1. The tools, their inputs and their outputs did not change.
Create the first workspace management key under Dashboard → Settings → API keys & MCP. This one-time bootstrap requires the dashboard.
After that first key exists, a workspace-scoped read/write key can manage every customer operation available through the Management API. This includes apps, delegated keys, usage caps, integrations, and exports.
Use a read-only or app-scoped key when the client needs less access. App-scoped keys cannot read or change the workspace usage cap, create sibling apps, or manage workspace-wide integrations.
Give the server the key
On macOS, store the key once in the Keychain:
It asks for the key with echo off, checks it against AttriKit (and prints the plan and scopes),
then stores it in the Keychain item attrkit-mcp. The key never appears in a process listing.
npx -y @attrkit/mcp logout removes the item.
On any system you can instead set ATTRKIT_API_KEY in the environment of the process that starts
your MCP client, or in the client's own secret store.
At start the server resolves the key in this order:
ATTRKIT_API_KEY, when it holds a real value.- On macOS, the Keychain item
attrkit-mcp. An emptyATTRKIT_API_KEY, or one a client left unexpanded ($ATTRKIT_API_KEY,${ATTRKIT_API_KEY},${ATTRKIT_API_KEY:-},${env:ATTRKIT_API_KEY},${input:attrkit-key}), counts as unset. - Otherwise it exits with an error that names the fix.
Codex
Add this server to ~/.codex/config.toml:
See the Codex setup guide.
Cursor
Add the server to .cursor/mcp.json for one project or ~/.cursor/mcp.json for
every project:
Then enable it and inspect the available tools:
See the Cursor setup guide.
Gemini CLI
Add this server to ~/.gemini/settings.json:
See the Gemini setup guide.
Other MCP clients
Configure a stdio server with command npx, arguments
["-y", "@attrkit/mcp"], and the ATTRKIT_API_KEY environment variable.
Environment-variable interpolation differs between clients, so follow the
client's secret-handling documentation. ATTRKIT_API_URL is optional and
defaults to https://attrikit.io.
Field naming
Tool input schemas are snake_case (bundle_id, store_url, campaign_id) and
double as REST documentation: the Management API accepts the same snake_case
field names in query strings and JSON request bodies (camelCase also works),
and responses are always snake_case. Field-level detail is returned under
error.fields when a validation failure can be attributed to specific fields.
Malformed JSON has no field to name. Self-identifying rejections such as
invalid_cursor, invalid_url, and ssrf_blocked return the code alone.
Test it locally
The Inspector lists the tools and lets you invoke them against your live workspace.
Access boundaries
See the Management API guide and OpenAPI contract for the complete HTTP surface.
Notes
- stdio only. The package does not open a network port.
- Key scopes gate reads vs writes. A read-only key gets
403 forbidden_scopeon every mutation. - App-scoped keys cannot create other apps, reach sibling apps, or manage workspace-wide integrations.
- App creation, management-key creation, and webhook creation return secret values once. Capture them from the tool result; list tools only return masked metadata.
- Non-removal mutation tools accept an optional
idempotency_key. Reuse the same value only for an exact retry. One-time secret responses are encrypted at rest and safely replayed. Removal tools do not accept this parameter because their DELETE operations cannot apply the removal more than once. - Management keys are protected by distributed per-key global, mutation, and
expensive-operation limits. A
429response includesRetry-After; wait at least that many seconds before retrying. - All diagnostics go to stderr. stdout is reserved for the MCP transport.
- MCP clients store environment values in local configuration. Never commit a configuration containing a key. Restrict access to the file and revoke any key that is exposed.
Migration to 1.0.0
Version 1.0.0 formalizes tool input schemas, refines runtime configuration validation, and introduces three breaking restrictions from version 0.4.6:
- Paired ad identifiers in
import_spend:adset_idandad_id(and their camelCase aliasesadsetIdandadId) must now be provided together or both omitted. At version 0.4.6 the schema accepted either field independently, but the underlying API rejected unpaired calls; version 1.0.0 moves this validation client-side. - Strict UUID format for
campaign_idinrecord_campaign_decision:campaign_idmust now be a valid RFC 4122 UUID. Version 0.4.6 accepted arbitrary non-empty strings. - Strict API base URL validation in
readConfig(ATTRKIT_API_URL):readConfigenforces four startup-fatal refusals (violations print to stderr and exit with code 1):- Protocol refusal: Non-loopback HTTP endpoints are rejected (
protocol must be HTTPS, except HTTP is allowed for localhost development). HTTP is permitted only for loopback interfaces (localhost,127.0.0.1,[::1]); remote hosts must usehttps:. - Credentials refusal: Embedded URL basic-auth credentials are rejected (
credentials are not allowed in ATTRKIT_API_URL). Pass API authentication viaATTRKIT_API_KEY. - Query string refusal: Query parameters in the base URL are rejected (
query strings are not allowed in ATTRKIT_API_URL). - Fragment refusal: Fragment identifiers in the base URL are rejected (
fragments are not allowed in ATTRKIT_API_URL). (In addition, malformed strings that fail URL parsing throwInvalid URLand exit 1).
- Protocol refusal: Non-loopback HTTP endpoints are rejected (
Additionally, dot-segment ids escaped the app route under 0.4.6-style encoding; 1.0.0 keeps them inside the route across all seven app tools (get_app, update_app, archive_app, get_publishable_key, rotate_publishable_key, get_revenuecat, and configure_revenuecat).
See CHANGELOG.md for full release details.
License
MIT. See LICENSE.
来源:README.md,提交 2a29e5d
工具
0版本历史
1- v2.0.1最新Nov 3, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分