Skip to main content
Glama
README.md
# FeedTriCheck Scanner MCP(本地 stdio 版)

把 Scanner API 接进 Claude / Codex 等 AI 客户端:在对话里直接让 AI 查自己店的机器可读性问题(价格/库存/退货/发货/评分五字段)。计费与网页版一致:$5/10 次信用包或 $19/月 100 次,**只有扫描成功(status=ok)才扣次,失败不扣**。

## 安装

```bash
cd scanner-api
python3 -m venv .venv-mcp
.venv-mcp/bin/pip install -r requirements-mcp.txt
```

## 客户端配置

把下面片段里的路径换成本机 `scanner-api` 目录的绝对路径,`SCANNER_API_KEY` 换成你的 Creem license key。

### Claude Desktop(claude_desktop_config.json)

```json
{
  "mcpServers": {
    "feedtricheck-scanner": {
      "command": "/ABS/PATH/scanner-api/.venv-mcp/bin/python",
      "args": ["/ABS/PATH/scanner-api/mcp_server.py"],
      "env": { "SCANNER_API_KEY": "YOUR-CREEM-LICENSE-KEY" }
    }
  }
}
```

### Claude Code

```bash
claude mcp add feedtricheck-scanner \
  --env SCANNER_API_KEY=YOUR-CREEM-LICENSE-KEY \
  -- /ABS/PATH/scanner-api/.venv-mcp/bin/python /ABS/PATH/scanner-api/mcp_server.py
```

### Codex(~/.codex/config.toml)

```toml
[mcp_servers.feedtricheck-scanner]
command = "/ABS/PATH/scanner-api/.venv-mcp/bin/python"
args = ["/ABS/PATH/scanner-api/mcp_server.py"]
env = { SCANNER_API_KEY = "YOUR-CREEM-LICENSE-KEY" }
```

## 工具

| tool | 说明 |
|---|---|
| `scan_store(url, per_store=3, idempotency_key="")` | 五字段扫描,约 30–90 秒/店;成功才扣 1 次 |
| `get_pricing()` | 价格表 JSON(免鉴权) |
| `get_balance()` | 剩余次数(只读不扣) |

没配 `SCANNER_API_KEY` 时 `scan_store` 返回购买引导,不会裸奔扫描。

## 本地验收

```bash
.venv-mcp/bin/python test_mcp.py
```

验收项:列出 3 个 tool、实扫扣次、失败不扣、幂等键重复不扣、无 key 购买引导。

TDQS

A4/5.0

Scored across 3 tools

Disambiguation5/5

The three tools split cleanly by purpose: one performs the billable scan action, one returns public pricing, and one returns the caller's credit balance. There is no plausible way to confuse them, and the descriptions reinforce the read-only vs. charged distinction.

Naming Consistency5/5

All three names use a consistent snake_case verb_noun pattern (scan_store, get_pricing, get_balance), with 'get_' used for the two read-only info tools and 'scan_' for the action tool. The single deviation from 'get_' is semantically motivated rather than arbitrary.

Tool Count4/5

Three tools is at the low end but each maps to a real need: execute a scan, check cost, check quota. It is lean without obvious filler, though a slightly richer surface (e.g. scan history) would justify more breadth.

Completeness4/5

The core lifecycle — check price, check balance, run a charged scan with idempotent retries — is covered with no dead ends for the primary workflow. Minor gaps exist: no tool to list or re-fetch prior scan results without re-scanning, and no way to purchase or top up credits.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues