crowntowncompost-mcp
БесплатноБез исполняемых скриптовНе проверенAccess the Crown Town Compost customer portal (portal.crowntowncompost.com) — pickup/service history, invoices, upcoming service days, skips, account details…
от chrischall1 883 установки в других каталогахОб этом скилле
Crown Town Compost portal via curl (no MCP)
crowntowncompost.com is only a marketing site. All customer data lives at
portal.crowntowncompost.com — a Django app (a white-labeled
StopSuite hauler platform; it CNAMEs to crowntown.stopsuite.com).
It is reachable server-side: no bot wall, no browser bridge, no fpx, no
Transporter extension. Auth is a real username + password form POST that
returns an HttpOnly sessionid cookie. curl with a cookie jar reaches
everything a signed-in customer can see.
Two of the richest surfaces are clean JSON endpoints (service history and billing); the rest are server-rendered HTML.
The one thing that trips people up: Django CSRF
Every POST (including the login and the two JSON reads) needs all of:
- the
csrftokencookie (set by any GET), sent back in the cookie jar - an
X-CSRFToken:header equal to that cookie's value Origin:andReferer:headers on the portal's own origin — Django rejects HTTPS POSTs that lack them, with a 403, before looking at your credentials
GETs need none of this. A 403 on a POST almost always means a missing header, not a bad password.
One-time setup
export CROWNTOWN_USERNAME='[email protected]'
export CROWNTOWN_PASSWORD='your-portal-password' # or: op read "op://Private/CrownTown/password"
export CT=https://portal.crowntowncompost.com
JAR=~/.cache/crowntown-cookies.txt
mkdir -p ~/.cache && : > "$JAR"
Log in (get the session cookie)
Read the password from stdin (password@-) rather than putting it in argv —
--data-urlencode name=value exposes the value to any local user via ps
while the process runs.
# 1. GET the login page to pick up the csrftoken cookie + the hidden form token.
CSRF_FORM=$(curl -s -c "$JAR" -b "$JAR" "$CT/accounts/login/?next=/accounts/" \
| grep -o 'name="csrfmiddlewaretoken" value="[^"]*"' | head -1 | sed 's/.*value="//;s/"$//')
CSRF_COOKIE=$(awk '$6=="csrftoken"{print $7}' "$JAR" | tail -1)
# 2. POST the credentials. Do NOT follow redirects (-L) here: the 302's
# Set-Cookie carries the sessionid, and success is "302 away from login".
printf '%s' "$CROWNTOWN_PASSWORD" | curl -s -c "$JAR" -b "$JAR" \
-H "X-CSRFToken: $CSRF_COOKIE" -H "Origin: $CT" \
-H "Referer: $CT/accounts/login/?next=/accounts/" \
--data-urlencode "csrfmiddlewaretoken=$CSRF_FORM" \
--data-urlencode "username=$CROWNTOWN_USERNAME" \
--data-urlencode "password@-" \
--data-urlencode "next=/accounts/" \
-o /dev/null -D - "$CT/accounts/login/?next=/accounts/" \
| grep -iE '^(HTTP/|location:)'
Success = HTTP/2 302 + a location: that is NOT /accounts/login/, and
a sessionid now in the jar. A 200 means the login page re-rendered — wrong
username/password. Confirm the jar:
grep -q sessionid "$JAR" && echo "signed in" || echo "NOT signed in"
The csrftoken cookie rotates on login — always re-read it from the jar
before each POST:
csrf() { awk '$6=="csrftoken"{print $7}' "$JAR" | tail -1; }
The two JSON endpoints (the good stuff)
Both are POST, form-urlencoded, and return {meta, qs, data[]}. They use
the Metronic KTDatatable grammar — pagination[page], pagination[perpage],
sort[field], sort[sort], query[<field>] — not DataTables' draw/start/length.
ctpost() { # ctpost <path> [extra --data-urlencode args...]
local path="$1"; shift
curl -s -b "$JAR" -c "$JAR" \
-H "X-CSRFToken: $(csrf)" -H 'X-Requested-With: XMLHttpRequest' \
-H "Origin: $CT" -H "Referer: $CT$path" \
"$@" "$CT$path"
}
Service history (pickups)
ctpost /accounts/stops/api/ \
--data-urlencode 'pagination[page]=1' \
--data-urlencode 'pagination[perpage]=20' \
--data-urlencode 'sort[field]=date' --data-urlencode 'sort[sort]=desc' \
| jq '{total: .meta.total, pages: .meta.pages,
stops: [.data[] | {date, status, time: .timestamp, weight, services}]}'
Filter by outcome — the values are lowercase; a capitalized Missing
silently returns zero rows:
ctpost /accounts/stops/api/ --data-urlencode 'query[status]=missing' \
--data-urlencode 'pagination[perpage]=50' | jq '.meta.total, [.data[].date]'
Valid: success | missing | empty | inaccessible | unacceptable (omit for all).
Billing history (invoices)
ctpost /accounts/billing-history/api/ \
--data-urlencode 'pagination[perpage]=20' \
--data-urlencode 'sort[field]=date' --data-urlencode 'sort[sort]=desc' \
| jq '[.data[] | {number, date, amount, status, is_payable, pay: .hosted_invoice_url}]'
Open invoices are is_payable: true; hosted_invoice_url / invoice_pdf /
receipt_url are Stripe links. Pay in a browser — don't script payments.
Server-rendered pages (GET, parse the HTML)
| What | Path |
|---|---|
| Dashboard (subscription, next service, addresses) | /accounts/ |
| Environmental impact numbers (htmx fragment) | /accounts/impact-statistics/ |
| Account details |
Установить crowntowncompost-mcp в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл crowntowncompost-mcp?
Access the Crown Town Compost customer portal (portal.crowntowncompost.com) — pickup/service history, invoices, upcoming service days, skips, account details — from a shell with curl instead of running the crowntowncompost-mcp server. Logs in with a Django username/password form POST to get a session cookie, then curls two JSON endpoints and a few server-rendered pages. Use when you want Crown Town Compost data without the MCP, in a script, or on a machine where the MCP isn't installed.
Как установить скилл crowntowncompost-mcp?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл crowntowncompost-mcp запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic