Logo di yerevan-city-mcp

yerevan-city-mcp

Community
tjvjk

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

Pubblicato datjvjk
Repositoryyerevan-city-mcp
LinguaTypeScript
Fork
1
Stelle
38
Strumenti disponibili
7
Tipo di trasportostdio
Categorie
Link
  • Collega gli strumenti ai flussi di lavoro IA

    yerevan-city-mcp mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • Strumenti disponibili: 7

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni se il server li fornisce.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse della comunità open source

    Stelle: 38; fork: 1 (repository collegato).

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

Installazione

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

Strumenti disponibili

  • 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.

Usa yerevan-city-mcp MCP con più modelli AI

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso yerevan-city-mcp, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura connettore.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura connettore e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con l’opzione «Questo dispositivo» selezionata
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi yerevan-city-mcp come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di yerevan-city-mcp.
  4. Salva l'elenco dei server.
  5. Se vuoi verificare che il connettore sia ancora pronto, aggiorna la pagina.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "yerevan-city-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "yerevan-city-mcp"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di yerevan-city-mcp, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di yerevan-city-mcp.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare yerevan-city-mcp per aiutarmi con questa attività?
yerevan-city-mcp
Certo. L’ho letto.
Ecco cosa ho trovato con yerevan-city-mcp.

Domande frequenti

A cosa serve il server MCP yerevan-city-mcp?

yerevan-city-mcp è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare il server MCP yerevan-city-mcp con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare yerevan-city-mcp con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP yerevan-city-mcp con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando yerevan-city-mcp, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego il server MCP yerevan-city-mcp a TypingMind?

yerevan-city-mcp funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre il server MCP yerevan-city-mcp in TypingMind?

Strumenti MCP disponibili per yerevan-city-mcp: 7. Puoi attivarli dalla pagina Plugin di TypingMind e usarli in chat o assegnarli agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare il server MCP yerevan-city-mcp?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se yerevan-city-mcp richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇