add-mercadopago
Add the MercadoPago payment-link container skill so agents can create checkout URLs in MXN. Uses OneCLI for auth — no env vars in the container.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add the MercadoPago payment-link container skill so agents can create checkout URLs in MXN. Uses OneCLI for auth — no env vars in the container.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Add the EasyBits MCP server (@easybits.cloud/mcp) so the container agent can manage cloud files, images, video/voice generation, designs, websites, forms, brand kits, characters, and a built-in DB. 65+ tools (server-side).
Reference & priority guide for the EasyBits MCP server (`mcp__easybits__*`). When to use EasyBits vs native skills, and which EasyBits tools exist.
Semantic search over your workspace text files using local multilingual embeddings (fastembed + e5-small). Free, local.
Extract text from images locally with PaddleOCR weights via onnxruntime. Free, multi-language, batch.
Remove backgrounds and segment images locally with the u2net family (rembg). Free, no API keys, works in batch.
Generate vector logos (SVG) and convert raster images to SVG via Recraft on fal.ai. Use for logo / brand mark / icon requests, or when the user sends a PNG/JPG and wants the editable SVG version.
| name | add-mercadopago |
| description | Add the MercadoPago payment-link container skill so agents can create checkout URLs in MXN. Uses OneCLI for auth — no env vars in the container. |
Installs the mercadopago container skill and registers MP_ACCESS_TOKEN in OneCLI as an Authorization: Bearer rewrite for api.mercadopago.com. The container script always sends Bearer placeholder; the proxy substitutes the real token.
Principle: Do the work. Only ask the user when something genuinely needs human input.
test -d container/skills/mercadopago && echo INSTALLED || echo NOT_INSTALLED
If INSTALLED, skip to Phase 3.
onecli version 2>/dev/null && echo ONECLI_OK || echo ONECLI_MISSING
If ONECLI_MISSING, tell the user to run /init-onecli first, then retry. Stop.
rsync -a .claude/skills/add-mercadopago/container-skills/ container/skills/
chmod +x container/skills/mercadopago/mercadopago
head -5 container/skills/mercadopago/SKILL.md
The skill is interpreted (Bash + curl) — no rebuild needed.
KEY=$(grep '^MP_ACCESS_TOKEN=' /Users/bliss/nanoclaw/.env 2>/dev/null | head -1 | cut -d= -f2- | tr -d '"' | tr -d "'")
if [ -z "$KEY" ]; then
echo "Paste your MercadoPago access token (from https://www.mercadopago.com/developers → credentials):"
read -s KEY
fi
if onecli secrets list 2>/dev/null | grep -qi "mercadopago"; then
echo "MercadoPago secret already in OneCLI — skipping create."
else
onecli secrets create \
--name "MercadoPago Access Token" \
--type generic \
--value "$KEY" \
--host-pattern "api.mercadopago.com" \
--header-name "Authorization" \
--value-format "Bearer {value}"
fi
The other v1 vars (MP_CLIENT_ID, MP_PUBLIC_KEY, MP_WEBHOOK_SECRET) are not used by this skill — only the access token. The script uses Checkout Pro REST, not OAuth.
MP_SECRET_ID=$(onecli secrets list 2>/dev/null | grep -B2 -i "mercadopago" | grep '"id"' | head -1 | sed 's/.*"id": "//;s/".*//')
for agent in $(onecli agents list 2>/dev/null | grep '"id"' | sed 's/.*"id": "//;s/".*//'); do
CURRENT=$(onecli agents secrets --id "$agent" 2>/dev/null | grep '"' | grep -v hint | grep -v data | sed 's/.*"//;s/".*//' | tr '\n' ',' | sed 's/,$//')
onecli agents set-secrets --id "$agent" --secret-ids "${CURRENT:+$CURRENT,}$MP_SECRET_ID"
done
Container skills are copied at group creation and not auto-synced. Sync to running groups:
for session_dir in data/v2-sessions/ag-*; do
if [ -d "$session_dir/.claude-shared/skills" ]; then
rsync -a container/skills/ "$session_dir/.claude-shared/skills/"
echo "Synced skills to: $session_dir"
fi
done
docker ps --format "{{.ID}} {{.Names}}" | grep nanoclaw-v2 | awk '{print $1}' | xargs -r docker stop
Containers respawn on next message wake and pick up the new skill.
Send to any agent: "hazme un link de cobro de 50 pesos para una prueba". Expect a Bash(mercadopago create-link 50 "una prueba") call returning a URL like https://www.mercadopago.com.mx/checkout/v1/redirect?....
tail -f logs/nanoclaw.log | grep -i mercadopago
Script says unauthorized from MercadoPago. OneCLI secret not assigned, or agent in selective mode. Run onecli agents secrets --id <agent> to confirm; onecli agents set-secret-mode --id <agent> --mode all if needed.
invalid_collector_id. The token belongs to a different MercadoPago account than the one expected to receive payments. Use a token from the receiving account.
Empty init_point in the response. The API call returned an error JSON with no init_point. The script prints the raw response — read it for the actual error (often currency_id mismatch or missing payer data).
Other currencies. Edit currency_id in container/skills/mercadopago/mercadopago line 33. MercadoPago supports ARS, BRL, CLP, COP, MXN, PEN, UYU.