cotti-admin-mcp
MCP server for Cotti Admin backend, enabling reading and writing of private domain product configurations, including coupon and activity management via Playwright UI.
README
Admin MCP v2
Cotti Admin 后台 MCP:读 + 私域新品配置写操作(Playwright UI)。
工具
读 / 查
| 工具 | 说明 |
|---|---|
admin_login |
强制刷新 SSO |
admin_status |
Session 状态 |
coupon_template_list / coupon_template_get |
券模板(country) |
activity_list / activity_get |
活动 |
activity_get_full |
活动 + 解析 landing(h5Url/longLink) |
private_domain_find_reference |
找最近一条【私域】新品折扣 + 参考券 |
写(Phase 2,Playwright UI Save)
| 工具 | 说明 |
|---|---|
coupon_copy_save |
复制参考券 → 只改名称/文案/SPU → Save |
activity_copy_save |
复制参考活动 → 改名称/时间/挂券 → saveGeneralActivity |
activity_edit_save |
修改已有活动(时间/落地页) |
activity_set_online |
上架 / 下架 |
国家参数
country: ID | MY | VN | HK | MO | SG | AU(新品日历)
安装
cd mcp/admin
npm install
npx playwright install chromium
Credentials via env: ADMIN_USERNAME, ADMIN_PASSWORD (or DAVINCI_*).
Cursor 配置
{
"mcpServers": {
"admin": {
"command": "node",
"args": ["/path/to/mcp/admin/src/index.js"],
"env": {
"ADMIN_USERNAME": "...",
"ADMIN_PASSWORD": "..."
}
}
}
}
Skill
配套 Skill:~/.codex/skills/cotti-private-domain-rollout/
Ops 脚本
scripts/ops/ — MCP 写工具底层,也可 CLI:
COUNTRY=ID ACTIVITY_DATE=20260714 SOURCE_TEMPLATE_NO=CT20260612000001 SOURCE_ID=1203 \
PRODUCTS_JSON='[{"spuCode":"SP4680","spuName":"Blueberry & Mulberry Americano"}]' \
node scripts/ops/coupon-copy-save.js
机制
Session: ~/.admin-mcp/session.json(Playwright SSO,约 2h)
券/活动保存必须走 UI Save,裸 API 会丢字段或校验失败。
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.