Skip to main content
Using Claude Code or another coding agent? Paste this link to it and say “set up petakopi.my”.
Agent: follow the steps below, then report the shops you can see.

Facts

Before you start, ask the owner to switch on AI access for at least one shop under Manage → AI Apps. Otherwise the approval page shows an error asking them to do that first. The owner signs in on petakopi.my in a browser and taps Approve on a page that lists the shops you can read. You cannot complete this step for them. Tell the owner a browser window will open, and wait.

Set up, by client

Run:
Then ask the owner to type /mcp in Claude Code, select petakopi and sign in in the browser.Plugin alternative: the plugin adds the same server plus a skill for reading the reports. Ask the owner to run:
Then /mcp to sign in. The skill starts with /petakopi:analyse-shop.

Verify

Call petakopi_list_shops with no arguments.

What you can call

Every tool except petakopi_list_shops needs shop, the slug from petakopi_list_shops. Periods. Tools that take period accept today, yesterday, this_week, last_week, this_month, last_month, last_7_days, last_30_days, month (with month) and custom (with from and to as YYYY-MM-DD, at most 366 days apart). month is this_month, last_month or YYYY-MM. response_format is concise (default) or detailed, which adds line items. The server returns its instructions in the initialize response. They take precedence over this page. Five rules from them:
  1. Start with petakopi_list_shops. If the owner has one shop, use it without asking.
  2. Quote RM amounts exactly as the tools print them, for example RM 2,500.00. Do not convert or round them.
  3. State the period, and say “so far” when it is still open.
  4. Never mix takings (sales tools) with net sales (petakopi_profit_and_loss) in one sum.
  5. Repeat a tool’s Notes when they affect the conclusion.

Boundaries

  • Read-only. No tool changes prices, sends messages or edits anything. Send the owner to petakopi.my/manage to act.
  • Owner’s switched-on shops only. The token reads only shops the signed-in account owns and has switched on. The connection stays in place while a shop is off.
  • No customer details. Tools never return customer names, phone numbers, order notes or feedback text.
  • Up to 5 minutes old. Figures can lag behind the Manage pages.
  • Revocable. The owner can cut you off under Manage → AI Apps at any time. Your next call then returns 401.
  • Rate limited. /mcp allows 120 calls a minute per token, then returns 429. Do not call tools in a loop; one call per report answers most questions.
For what the owner sees, read Ask AI about your shop.