Keitaro TDS API MCP Plugin

by GodzillaDancer
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Uses environment variables for configuration, specifically for storing Keitaro API URL and API key.

  • Used for installation of the MCP server through repository cloning.

  • Provides JavaScript examples for interacting with the Keitaro TDS API, allowing users to manage campaigns, traffic streams, offers, and generate reports.

Keitaro TDS API MCP 插件

描述

MCP 服务器与 Keitaro TDS API 集成,提供与活动、流、优惠和其他 Keitaro 实体协作的工具。

安装

在 Cursor 中安装插件

  1. 克隆存储库
git clone <repository-url> cd mcp-keitaro-tds
  1. 安装依赖项
npm install
  1. 全局安装包
npm install -g .
  1. 在 Cursor 中安装插件
node install-cursor-plugin.js
  1. 重启光标

替代方案:在 Cursor 中手动配置

您还可以手动将 Keitaro MCP 服务器添加到您的 Cursor 配置中:

  1. 打开Cursor MCP配置文件:
# On macOS open ~/.cursor/mcp.json # On Windows notepad %USERPROFILE%\.cursor\mcp.json # On Linux nano ~/.cursor/mcp.json
  1. 将以下条目添加到“mcpServers”对象:
"Keitaro": { "command": "mcp-keitaro-tds", "args": [] }
  1. 保存文件并重新启动 Cursor

API 密钥配置

使用以下参数在项目根目录中创建一个.env文件:

KEITARO_API_URL=http://your-keitaro-domain.com/admin_api/v1 KEITARO_API_KEY=your-api-key

游标中的用法

  1. 启动光标
  2. 打开命令面板(macOS 上为 Cmd+P,Windows/Linux 上为 Ctrl+P)
  3. 找到“Keitaro”并选择它
  4. 现在您可以通过 Cursor 使用 Keitaro API

可用工具

活动

  • list_campaigns - 获取活动列表
  • get_campaign - 获取有关特定活动的信息
  • create_campaign创建新的活动
  • update_campaign - 更新现有活动
  • delete_campaign删除广告系列

交通流

  • list_streams - 获取广告系列的流量流列表
  • get_stream获取有关特定流的信息

流量来源

  • list_traffic_sources - 获取流量来源列表
  • get_traffic_source - 获取有关特定流量源的信息

优惠

  • list_offers - 获取优惠列表
  • get_offer - 获取有关特定优惠的信息

点击次数和转化次数

  • list_clicks - 获取点击列表
  • get_click - 获取有关特定点击的信息
  • list_conversions - 获取转换列表
  • get_conversion获取有关特定转换的信息

报告

  • get_report生成具有指定参数的报告

  • list_domains - 获取域列表
  • get_domain获取有关特定域的信息

使用示例

获取活动列表

list_campaigns({ limit: 10, page: 1, search: "search query" })

创建新广告系列

create_campaign({ name: "New Campaign", type: "position", cost_type: "CPC", cost_value: 1.5, group_id: 1, state: "active", traffic_source_id: 1 })

获取报告

get_report({ from: "2025-01-01", to: "2025-01-31", group: "campaign", filters: { campaign_id: 123 } })

发展

以开发模式运行

npm run dev

测试 MCP 服务器

npm run inspect

Appeared in Searches

ID: iy1fgw1o6g