شعار yerevan-city-mcp

yerevan-city-mcp

المجتمع
tjvjk

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

الناشرtjvjk
المستودعyerevan-city-mcp
اللغةTypeScript
التفريعات
1
النجوم
38
الأدوات المتاحة
7
نوع نقل البياناتstdio
الفئات
الروابط
  • اربط الأدوات بمسارات عمل الذكاء الاصطناعي

    يتيح yerevan-city-mcp إمكانات MCP لتطبيقات الذكاء الاصطناعي العميلة المتوافقة معه، وكذلك لوكلاء الذكاء الاصطناعي المتوافقين معه.

  • الأدوات المتاحة: 7

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم مقتطفات التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات اهتمام المجتمع بالمستودع مفتوح المصدر

    إحصاءات المستودع المرتبط: النجوم: 38، والتفريعات: 1.

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

التثبيت

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

الأدوات المتاحة

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

استخدم MCP الخاص بـ yerevan-city-mcp مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل yerevan-city-mcp، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يعمل تكامل MCP هذا محليًا عبر موصل MCP الخاص بـ TypingMind على جهازك.

دليل الإعداد لاستخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal مفتوحة واترك العملية قيد التشغيل أثناء استخدام أدوات MCP.
3

إضافة yerevan-city-mcp كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ yerevan-city-mcp.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "yerevan-city-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "yerevan-city-mcp"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ yerevan-city-mcp، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ yerevan-city-mcp.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام yerevan-city-mcp لمساعدتي في هذه المهمة؟
yerevan-city-mcp
بالتأكيد. قرأته.
إليك ما وجدته باستخدام yerevan-city-mcp.

الأسئلة الشائعة

ما استخدامات خادم MCP yerevan-city-mcp؟

yerevan-city-mcp هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP yerevan-city-mcp مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام yerevan-city-mcp مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم خادم MCP yerevan-city-mcp مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل yerevan-city-mcp، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP yerevan-city-mcp بـ TypingMind؟

يعمل yerevan-city-mcp عبر موصل MCP المحلي في TypingMind. هذا هو الخيار الأنسب عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات سطح المكتب أو أدوات سطر الأوامر أو موارد خاصة على حاسوبك.

ما الأدوات التي يوفّرها خادم MCP yerevan-city-mcp في TypingMind؟

يتيح yerevan-city-mcp أدوات MCP يبلغ عددها 7، ويمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP yerevan-city-mcp؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويتيح لك التحكم بنفسك في مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP. إذا كان yerevan-city-mcp يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇