Logo vun yerevan-city-mcp

yerevan-city-mcp

Communautéit
tjvjk

Order groceries from yerevan-city.am right from a conversation with your AI assistant

Editeurtjvjk
Repositoryyerevan-city-mcp
SproochTypeScript
Forks
1
Stären
38
Disponibel Tools
7
Transporttypstdio
Kategorien
Linken
  • Tools mat KI-Workflows verbannen

    yerevan-city-mcp stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 7 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    38 Stären an 1 Forks aus dem verlinkte Repository.

yerevan-city-mcp

Demo

Order groceries from yerevan-city.am right from a conversation with your AI assistant. Just say what you need — the agent finds the products and builds the cart for you.

Set up once (you only need to confirm your phone number by SMS) and it keeps working after that — no need to open the site and search for products by hand.

Safe by design: the agent never pays or places an order — it only builds the cart. Checkout and payment always stay with you, in your own browser or app.

What the agent can do

  • Search products by name
  • Show your saved delivery addresses
  • Add and remove products from the cart
  • Show the cart contents and total price

Installation

The server is published on npm as yerevan-city-mcp and runs via npx — no download or build step needed.

Connect it in your AI assistant's settings.

Claude Code — run in a terminal:

bash
claude mcp add yerevan-city -- npx -y yerevan-city-mcp

Claude Desktop — open the MCP server config file (Settings → Developer → Edit Config) and add:

json
{
  "mcpServers": {
    "yerevan-city": {
      "command": "npx",
      "args": ["-y", "yerevan-city-mcp"]
    }
  }
}

Restart the app after saving.

Codex CLI — run in a terminal:

bash
codex mcp add yerevan-city -- npx -y yerevan-city-mcp

Or add it directly to ~/.codex/config.toml:

toml
[mcp_servers.yerevan-city]
command = "npx"
args = ["-y", "yerevan-city-mcp"]

opencode — add it to opencode.json:

json
{
  "mcp": {
    "yerevan-city": {
      "type": "local",
      "command": ["npx", "-y", "yerevan-city-mcp"],
      "enabled": true
    }
  }
}

Antigravity — open the MCP store from the editor's agent panel, select "Manage MCP Servers" → "View raw config", and add to ~/.gemini/config/mcp_config.json:

json
{
  "mcpServers": {
    "yerevan-city": {
      "command": "npx",
      "args": ["-y", "yerevan-city-mcp"]
    }
  }
}

Done. Tell the assistant something like "order milk and bread" — the first time it touches the cart it will ask you to confirm your phone number by SMS, and it stays logged in after that.

Technical details

Login is a one-time phone + SMS step; the session is then cached locally so it keeps working across restarts.

Tools

  • request_login_code / confirm_login_code — one-time phone + SMS login
  • search_products — free-text product search
  • list_addresses — the account's saved delivery addresses
  • add_to_cart / remove_from_cart — build the cart, by piece count or by weight
  • get_cart — current cart contents and total price

Development

bash
npm install
npm run typecheck
npm test
npm run build
npm start

To point an AI assistant at a local build instead of the published package, use node /full/path/to/dist/index.js as the command in place of npx -y yerevan-city-mcp.

License

Free for personal and other non-commercial use. Commercial use requires a separate paid license — see LICENSE for details, and reach out via GitHub to arrange one.

Disclaimer

This is an educational, unofficial project — an example of connecting an AI agent to a third-party web API. It is provided as-is with no warranty of any kind. It is not affiliated with, endorsed by, or sponsored by Yerevan City / City Supermarket in any way.

TODO

  • How does the flow behave for a phone number with no existing yerevan-city.am account yet?
  • What if the account has no saved address at all (not just none given explicitly)?
  • add Carrefour, Zovk, Sas, 88, Tsiran to find a better price
  • add a --version CLI flag to print the installed package version

Installatioun

TypingMind
{
  "mcpServers": {
    "yerevan-city-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "yerevan-city-mcp"
      ]
    }
  }
}

Disponibel Tools

  • request_login_code

    Send a login SMS code to a phone number on yerevan-city.am. Call confirm_login_code next with the code the user receives.

  • confirm_login_code

    Complete login with the SMS code received after request_login_code.

  • search_products

    Search the yerevan-city.am product catalogue by free-text query. Requires login.

  • list_addresses

    List the delivery addresses saved on the logged-in user's account. Needed to pick an addressId for add_to_cart.

  • add_to_cart

    Add a product to the yerevan-city.am cart, either by piece count or by weight in grams. Never places an order or pays — only builds the cart for the user to check out themselves. After adding, always check the returned addedItem: yerevan-city.am accepts the add call even for products that are out of stock at the delivery address, and only reports that via isMissing/availableCount/availableWeight on the item that comes back. If isMissing is true, the product was NOT actually added despite the successful call — immediately call remove_from_cart for this productId so it doesn't sit in the cart unusable, then tell the user it's unavailable (mention availableCount/availableWeight if partial stock exists) and, if there's an obvious alternative from search_products, ask whether to add that instead. Do not leave an out-of-stock item in the cart and move on silently. Also report totalPrice and deliveryFee from the response to the user as the current cart total including delivery — don't just sa

  • remove_from_cart

    Remove a product from the yerevan-city.am cart. Also use this to clean up any item that get_cart or add_to_cart reported as isMissing (out of stock) — a missing item never gets delivered, so it should not be left sitting in the cart.

  • get_cart

    Show the current yerevan-city.am cart contents and total price. Does not place an order. Check each item's isMissing field before telling the user their cart is ready — a missing item stays in the cart but cannot actually be delivered (see availableCount/availableWeight for what's actually in stock). If any item has isMissing true, call remove_from_cart for it before reporting the cart as done — don't just mention it and leave it there. Always state totalPrice and deliveryFee together as the full amount the user will pay, including delivery.

yerevan-city-mcp MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal yerevan-city-mcp verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

yerevan-city-mcp als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu yerevan-city-mcp an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "yerevan-city-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "yerevan-city-mcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu yerevan-city-mcp. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu yerevan-city-mcp.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat yerevan-city-mcp?
yerevan-city-mcp
Jo. Ech hunn et gelies.
Dat hunn ech mat yerevan-city-mcp fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server yerevan-city-mcp benotzt?

yerevan-city-mcp ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech yerevan-city-mcp MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir yerevan-city-mcp mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat yerevan-city-mcp MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann yerevan-city-mcp verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech yerevan-city-mcp MCP mat TypingMind?

yerevan-city-mcp leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt yerevan-city-mcp MCP an TypingMind zur Verfügung?

yerevan-city-mcp stellt 7 MCP-Tools zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir yerevan-city-mcp MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann yerevan-city-mcp eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇