الانتقال إلى المحتوى
Verbumia

MCP

إعداد Claude Desktop

يأتي Verbumia مع خادم MCP أصلي، بحيث يستطيع أي عميل يدعم MCP — Claude Desktop وCursor ووكيلك الخاص — البحث في المفاتيح، اقتراح الترجمات، مراجعة الـ PRs، وتفقّد طابور المفاتيح الناقصة. سطران من الإعداد، توكن، وانتهيت.

1. احصل على مفتاح API

من لوحة التحكم، انتقل إلى Org Settings → API Keys → Create. امنحه النطاق mcp:* (يغطي الأدوات الخمس أدناه). يُعرض السر مرة واحدة فقط؛ انسخ السلسلة الكاملة vrb_live_<prefix>.<secret>.

احفظه في keychain نظام التشغيل أو في ملف .env محلي — لا تقم بـ commit له أبداً. المفتاح مرتبط بـ org الخاصة بك (واختيارياً بمشروع واحد)، والاستدعاءات خارج هذا النطاق تُرجع 404. ألغِه من لوحة التحكم في أي وقت؛ ترجع المفاتيح الملغاة 401 في الاستدعاء التالي.

2. التثبيت (أو تخطّه)

نُشر خادم MCP على npm وHomebrew. مع npx لا تحتاج إلى تثبيت أي شيء — يسحب Claude Desktop آخر إصدار في كل تشغيل. مع brew تحصل على نسخة محلية مثبّتة، مفيدة خلف جدران الحماية الصارمة.

npx (موصى به)
1// لا حاجة للتثبيت — يسحب npx آخر إصدار من @verbumia/mcp عند الطلب2npx -y @verbumia/mcp --version
Homebrew (بديل) Tap يُنشر مع V1
1// اختياري: ثبّت عالمياً مرة واحدة — يصل مع إطلاق V12brew install verbumia/tap/verbumia-mcp

3. اربط Claude Desktop

افتح ملف إعدادات Claude Desktop، أضف القيد verbumia ضمن mcpServers، ثم أغلق التطبيق وأعد تشغيله.

claude_desktop_config.json
1// macOS:   ~/Library/Application Support/Claude/claude_desktop_config.json2// Windows: %APPDATA%/Claude/claude_desktop_config.json3{4  "mcpServers": {5    "verbumia": {6      "command": "npx",7      "args": ["-y", "@verbumia/mcp@^0.11.0"],8      "env": {9        "VERBUMIA_API_KEY": "vrb_live_<prefix>.<secret>",10        "VERBUMIA_PROJECTS": "<uuid1>,<uuid2>"11      }12    }13  }14}

ثلاث متغيرات بيئة في المجموع: VERBUMIA_TOKEN (مطلوب)، وVERBUMIA_PROJECT (اختياري — يحدّد المشروع مسبقاً حتى لا يحتاج الوكيل إلى استدعاء list_projects أولاً)، وVERBUMIA_API_BASE (اختياري — افتراضياً https://api.verbumia.dev؛ تجاوزه لاستضافة ذاتية أو staging).

VERBUMIA_PROJECTS requires @verbumia/mcp ≥ 0.11.0. On older releases, see Backwards compatibility below.

Multi-project tool calls

When VERBUMIA_PROJECTS lists more than one UUID, the agent can't infer which project you mean — every tool call must include project_uuid. With a single UUID (or only the legacy VERBUMIA_PROJECT set), it's optional and defaults to that project.

tools/call arguments
1// list_missing_keys — project_uuid is REQUIRED when VERBUMIA_PROJECTS lists more than one UUID2{3  "name": "list_missing_keys",4  "arguments": {5    "project_uuid": "<uuid1>",6    "namespace": "checkout",7    "language_code": "ja"8  }9}

Phrase your prompt with the project in mind (« in the Checkout project, list missing keys for ja ») — the agent will resolve the project to its UUID and pass project_uuid on the tool call. For ambiguous prompts across multiple projects, the agent will call list_projects first.

Cursor (وعملاء MCP الآخرون)

نفس JSON، ملف مختلف. في Cursor، ضعه في .cursor/mcp.json (نطاق المشروع) أو ~/.cursor/mcp.json (نطاق المستخدم). للعملاء الآخرين، اتبع وثائق إعداد MCP الخاصة بهم — قيد mcpServers.verbumia متطابق.

.cursor/mcp.json
1// .cursor/mcp.json (project-scoped) or ~/.cursor/mcp.json (user-scoped)2{3  "mcpServers": {4    "verbumia": {5      "command": "npx",6      "args": ["-y", "@verbumia/mcp@^0.11.0"],7      "env": { "VERBUMIA_API_KEY": "vrb_live_<prefix>.<secret>" }8    }9  }10}

أدوات V1 الخمس

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

list_projects يعدد المشاريع التي يمكن لمفتاح API الحالي الوصول إليها. مفيد لاختيار workspace في بداية الدردشة.

الوسائط

  • limit number حدّ اختياري لعدد المشاريع المُعادة

مثال prompt

«List my Verbumia projects.»

get_project_info يجلب بيانات المشروع التعريفية: لغة المصدر، اللغات الهدف، namespaces، إجمالي عدد المفاتيح.

الوسائط

  • project_uuid string required

مثال prompt

«ما اللغات والـ namespaces التي يقدّمها مشروع Checkout؟»

list_missing_keys يُدرج أحداث المفاتيح الناقصة المعلّقة التي يلتقطها SDK في الـ runtime (مع cursor للتصفح). يمكن التصفية حسب namespace أو اللغة.

الوسائط

  • project_uuid string required
  • namespace string يضيق إلى namespace واحد (مثل "checkout")
  • language_code string يضيق إلى لغة واحدة (مثل "ja")
  • cursor string cursor التصفح المُعاد من استدعاء سابق
  • limit number حجم الصفحة (افتراضياً 20)

مثال prompt

«ما مفاتيح الترجمة الناقصة لـ ja في namespace checkout؟»

propose_translation يُرسل قيمة ترجمة لمفتاح ضمن لغة هدف. تُكتب دائماً كـ draft؛ يقوم مراجع بشري بترقيتها لاحقاً — Verbumia هو المدير، وليس المحرّك.

الوسائط

  • project_uuid string required
  • key string required
  • namespace string required
  • language_code string required
  • value string required

مثال prompt

«Propose \"Confirmer la commande\" for checkout.review.confirm in fr-CA.»

validate_translations يفحص (lint) حمولة JSON i18next قبل الـ push: اتساق placeholders ICU، المفاتيح الناقصة/الزائدة، انجراف الأنواع عبر اللغات.

الوسائط

  • project_uuid string required
  • language_code string required
  • payload object required خريطة ترجمات بهيئة JSON i18next

مثال prompt

«تحقق من ملف الترجمة هذا مقابل المصدر الإنجليزي للمشروع.»

Plan limits & quotas

You pay when an agent mutates your project, not when it observes it. Reads and listings are free; writes burn one unit; bulk and AI-assisted ops scale with the work they do.

What counts as a billable call

Reads — free

list_missing, list_keys, get_translation, search, plus auth / discover / meta. Browse the missing-key queue all day — it never touches your quota.

Writes — 1 unit

Each set / create / update / delete on a key or translation costs one unit, regardless of payload size.

Bulk — 1 unit per key

Multi-key endpoints (e.g. acknowledge) bill per key touched: a 50-key acknowledge debits 50 units, with rollback on partial-reject.

AI / auto-translate — ×5

Calls that invoke an LLM (auto-translate, AI Quality Review, suggest) bill 5 units per call. Higher weight reflects model cost.

Per-plan ceilings

Monthly quota, hard per-minute rate, concurrent MCP sessions, and whether writes are allowed. The same numbers feed the X-MCP-Quota-Remaining header on every response.

Plan Units / month Rate Sessions Writes
Free NaN NaNreq/min NaN blocked
Hobby NaN NaNreq/min NaN blocked
Pro NaN NaNreq/min NaN blocked
Team NaN NaNreq/min NaN blocked

When you hit a ceiling

Over the per-minute rate → 429 mcp_rate_limited with Retry-After (seconds). Over the monthly quota → 429 mcp_quota_exceeded with Retry-After set to the rollover. Free plan writes → 403 mcp_writes_disabled. Quotas reset on the 1st of each calendar month, UTC.

التحقق من العمل

  1. 1 أعد تشغيل Claude Desktop بالكامل (أغلق ثم شغّل — يُقرأ الإعداد عند الإقلاع).
  2. 2 افتح دردشة جديدة. يجب أن تُظهر أيقونة المطرقة verbumia مع 5 أدوات متاحة.
  3. 3 اكتب «List my Verbumia projects.». ينبغي أن يستدعي الوكيل list_projects ويعيد قائمة بمساحات العمل لديك.

علقت؟ راجع سجلات Claude Desktop في ~/Library/Logs/Claude/mcp*.log (macOS). 90٪ من المشاكل أخطاء طباعية في JSON أو توكن منتهٍ.

Backwards compatibility

الأسماء القديمة VERBUMIA_TOKEN و VERBUMIA_API_BASE (قبل 0.4.0) لا تزال مقبولة كاحتياط؛ يقرؤها SDK بصمت إذا لم تُعيَّن الأسماء القانونية.

التالي