anythingmcp icon indicating copy to clipboard operation
anythingmcp copied to clipboard

Adapter: iiko (iikoCloud API)

Open helpcodeai opened this issue 1 month ago • 4 comments

👋 A self-contained first contribution: one JSON adapter file, a spec and a logo. No need to know the rest of the codebase.

Why this one

In the last 30 days, 2 different workspaces on AnythingMCP Cloud searched the catalog for iiko and found nothing. People want it; nobody has built it yet.

The API

  • Docs: https://api-ru.iiko.services/docs
  • Auth: an apiLogin exchanged at POST /api/1/access_token for a short-lived token sent as Bearer
  • Category: Restaurants / POS

Suggested first tools (read-only)

list organizations, list terminal groups, get the menu (nomenclature), list deliveries by date. Read-only tools are enough for a first version; write tools can follow in a later PR.

How

Follow the six steps in AGENTS.md → Add an adapter and docs/tool-definition.md. The scaffold command for this one:

npm run adapter:new -- iiko --region intl --auth LOGIN_TOKEN

Then node scripts/validate-adapters.mjs --warn, node scripts/regenerate-catalog.mjs, a intl/iiko.live.spec.ts (static assertions always, live calls behind RUN_IIKO_LIVE=1), node scripts/adapter-count.mjs --check and the logo. The walkthrough and past examples are in #982.

Done when

  • The adapter validates without new warnings and the catalog is regenerated.
  • Every tool has a description an AI can act on (what it returns, when to use it) and a response mapping that keeps the useful fields.
  • The PR says which calls you ran against a real account, or that you could not and built it from the docs.

Claim it

Comment here to claim it. A claim without a PR for 14 days goes back to the pool, no hard feelings. Sign the CLA when the bot asks.

helpcodeai avatar Nov 01 '26 16:11 helpcodeai

Hi maintainers! I'd like to take up the iiko adapter contribution (#1410).

I'll implement the read-only iikoCloud integration covering organisations, terminal groups, menu and delivery records, along with the required static tests, live spec and connector logo.

I've reviewed the adapter contribution guidelines and will follow the existing patterns. Please let me know if I can proceed.

Thanks!

soubhagya-behera avatar Nov 19 '26 05:11 soubhagya-behera

Thanks, it's yours. I assigned the issue to you. The token exchange fits the LOGIN_TOKEN auth type from the scaffold command. Please say in the PR which calls you could run against a real iikoCloud account, or that you built it from the docs only.

helpcodeai avatar Nov 19 '26 08:11 helpcodeai

Thanks! Before I finalise the API mappings, I noticed two differences between the issue and the current iiko documentation:

  1. The issue specifies /api/1/access_token with apiLogin, while the current docs describe /api/v2/access_token with appId, clientSecret and apiKey. Which authentication flow should I follow?
  2. For menu (nomenclature), should I expose the raw product catalogue rather than the external storefront menu?

I'll use the existing LOGIN_TOKEN mechanism and explicitly mark all four POST-based read tools as read-only.

Thanks!

soubhagya-behera avatar Nov 19 '26 08:11 soubhagya-behera

Thanks a lot for picking this up, and sorry for the change of plan. We needed iiko sooner than expected for our own catalog work, so we built it ourselves in #1815, which closes this issue when it merges. Please don't spend more time on it.

On your question, for the record: /api/1/access_token with apiLogin still answers on both hosts, so #1815 uses it. Syrve marks it deprecated in favour of /api/v2/access_token (app id, client secret and API key); moving to v2 is a later change to the adapter only.

If you would like to contribute another adapter, any open issue labelled as an adapter request without an assignee is free: https://github.com/HelpCode-ai/anythingmcp/issues?q=is%3Aissue+is%3Aopen+Adapter+in%3Atitle+no%3Aassignee. Say which one in a comment and we'll assign it to you right away.

helpcodeai avatar Nov 21 '26 09:11 helpcodeai