ديـرDeerالدليلDocs

MCP

اربط عميل MCP مثل Claude Desktop أو Cursor بمساحة عملك في دير ليقرأ مهامك ويعمل عليها، باسمك وفي حدود صلاحياتك.

ما هـو MCP

بروتوكول سياق النماذج (MCP) معيار مفتوح يتيح لعميل AI استدعاء أدوات في منتج آخر. ولكل مساحة عمل في دير خادم MCP خاص بها، فإذا ربطت به عميلاً استطاع عرض مهامك، وإن سمحت له، إنشاءها وتعديلها.

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

يعمل الاتصال دائماً باسم الشخص الذي أنشأه، ولا يتجاوز أبداً ما يستطيعه هذا الشخص في مساحة العمل، بل قد يكون أضيق منه: فأنت تختار صلاحية المهام عند إنشائه.

قبل أن تبـدأ

  • من ينشئ الاتصال. مالك مساحة العمل، والمشرفون ما لم يقيّد المالك وصولهم إلى MCP. أما الأعضاء والضيوف فلا يستطيعون فتح إعدادات MCP.
  • صلاحية المهام. تحتاج إلى صلاحية قراءة المهام. ولتمنح العميل قراءة وكتابة، يجب أن تملك أنت صلاحية تعديل المهام.
  • عميل متوافق. يجب أن يدعم العميل خوادم MCP البعيدة عبر Streamable HTTP، وأن يسمح بإضافة ترويسة Authorization برمز bearer.
  • حد أقصى. تتسع مساحة العمل لثلاثين اتصالاً مفعّلاً في الوقت نفسه.

إنشاء اتصـال

  1. افتح إعدادات MCP

    افتح الإعدادات ثم اختر MCP تحت مساحة العمل. يعرض تبويب الاتصالات عنوان الخادم الخاص بمساحة العمل هذه.

  2. ابدأ اتصالاً جديداً

    اختر اتصال جديد.

  3. سمِّ العميل

    اكتب في اسم العميل اسماً تتعرف عليه لاحقاً، كاسم التطبيق والجهاز: Cursor - work laptop. الحد الأقصى 80 حرفاً.

  4. اختر صلاحية المهام

    اختر من صلاحية المهام: قراءة ليعرض العميل المهام فقط، أو قراءة وكتابة ليستطيع أيضاً إنشاءها وتعديلها وإسنادها والتعليق عليها وحذفها.

  5. أنشئ الاتصال

    اختر إنشاء اتصال، فيعرض دير إعداد العميل ومعه رمز وصول جديد.

  6. احفظ الإعداد الآن

    اختر نسخ الإعداد والصقه في عميلك. يظهر الرمز مرة واحدة فقط، فدير لا يحتفظ إلا ببصمة منه ولا يستطيع عرضه مجدداً. اختر تم بعد أن تحفظه.

إعداد العميـل

يأتي الإعداد الذي يعطيك إياه دير بهذا الشكل:

JSON
{
  "mcpServers": {
    "moeen": {
      "url": "<workspace-mcp-url>",
      "headers": {
        "Authorization": "Bearer <token>"
      }
    }
  }
}
  • <workspace-mcp-url> هو عنوان الخادم المعروض في إعدادات MCP، وصيغته https://app.deerapp.co/api/mcp/<workspace-id>. اختر نسخ العنوان لنسخه.
  • <token> هو رمز الوصول الذي ظهر في النافذة، ويبدأ دائماً بـ mn_mcp_.
  • moeen مجرد اسم يعرضه عميلك للخادم، ويمكنك تغييره.

وتعرض بطاقة إعداد العميل في تبويب الاتصالات الشكل نفسه برمز مخفي، فتستطيع نسخ البنية لاحقاً ثم وضع رمزك المحفوظ فيها.

أضف دير إلى عميلك

يحفظ كل عميل خوادم MCP في ملف إعدادات خاص به. اختر التبويب الذي يناسب عميلك.

يشغّل Claude Desktop خوادم MCP من ملف إعداداته. وليصل إلى خادم بعيد بترويسة bearer، يمكنه استخدام الجسر مفتوح المصدر mcp-remote، وهو يحتاج إلى Node.js على جهازك.

افتح Claude Desktop، ثم Settings، ثم Developer، واختر Edit Config. وأضف دير تحت mcpServers:

claude_desktop_config.json
{
  "mcpServers": {
    "moeen": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "<workspace-mcp-url>",
        "--header",
        "Authorization:${DEER_AUTH_HEADER}"
      ],
      "env": {
        "DEER_AUTH_HEADER": "Bearer <token>"
      }
    }
  }
}

احفظ الملف وأعد تشغيل Claude Desktop، فتظهر أدوات دير في قائمة الأدوات عند بدء محادثة جديدة.

ما يستطيعه الاتصـال

صلاحية المهامالأدوات التي يراها العميل
قراءةtasks.list
قراءة وكتابةtasks.list وtasks.create وtasks.update وtasks.set_status وtasks.assign وtasks.add_comment وtasks.set_subtask وtasks.delete

لا يرى العميل إلا المهام التي تراها أنت، ومنها مهام الفرق الخاصة التي تنتمي إليها. وإذا تغيّرت صلاحياتك تغيّرت قائمة الأدوات معها. وتظهر علامة العميل على كل مهمة أنشأها أو عدّلها، فيعرف الجميع أن التغيير جاء عبر MCP.

ويتوقف tasks.delete دائماً حتى توافق عليه. تجد مرجع الأدوات كاملاً وخطوات الموافقة في أدوات MCP.

الموافقة على طلب

يمكنك أيضاً فتح الإجراءات ثم الموافقات لاتخاذ القرار. ولإعادة محاولة تعديل لا يحتاج إلى موافقة، راجع مفاتيح إعادة المحاولة.

إذا طلب العميل حذف مهمة، يظهر قسم طلبات الموافقة في تبويب الاتصالات لدى الشخص الذي أنشأ الاتصال. ويعرض كل طلب حذف مهمة وعنوان المهمة واسم العميل.

اختر السماح بالحذف أو رفض. وبعد الموافقة يظهر في الطلب «تمت الموافقة. يمكن للعميل إعادة الاستدعاء.»، فيكرر العميل الاستدعاء نفسه ومعه رقم الموافقة. وتنتهي صلاحية الطلب بعد 15 دقيقة من إرساله.

المتابعة والإلغـاء

يعرض جدول الاتصالات كل اتصالات مساحة العمل، وفي أعمدته: العميل، ويعمل باسم وفيه صاحب الاتصال، والصلاحيات، والاستدعاءات وفيه عددها، وآخر استخدام، والحالة: مفعّل أو ملغى.

لإيقاف عميل، اختر إلغاء في صفّه ثم أكّد. ويستطيع أي مالك أو مشرف لديه وصول إلى MCP إلغاء أي اتصال في مساحة العمل.

  • يتوقف الرمز عن العمل فوراً، ويُرفض أول استدعاء يرسله العميل بعدها.
  • تُحذف طلبات الموافقة المعلّقة لهذا الاتصال.
  • لا يمكن إعادة تفعيل اتصال ملغى. أنشئ اتصالاً جديداً إذا احتجت إلى الوصول مرة أخرى.

يُسجَّل في سجل التدقيق إنشاء كل اتصال وكل إلغاء وكل استدعاء أداة، ويظهر العميل منفّذاً يعمل باسم صاحبه.

ملاحظات أمنيـة

  • عامل الرمز معاملة كلمة المرور. من يحمله يستطيع العمل باسمك في حدود صلاحية الاتصال. لا تلصقه في محادثة أو تذكرة دعم أو مستند مشترك، ولا تضفه إلى أي مستودع.
  • اتصال لكل عميل. أنشئ اتصالاً منفصلاً لكل تطبيق ولكل جهاز، لتستطيع إلغاء واحد دون أن تتعطل البقية.
  • اختر أضيق صلاحية. استخدم قراءة ما لم يحتج العميل فعلاً إلى تعديل المهام.
  • الوصول مرتبط بك. يتوقف الاتصال إذا غادرت مساحة العمل، أو أُزيل وصولك إلى MCP، أو فرضت مساحة العمل التحقق بخطوتين ولم تفعّله بعد.
  • لا تستطيع صفحات الويب استعارته. يرفض دير طلبات MCP التي ترسلها صفحات من مواقع أخرى.
  • الحدود. يقبل عنوان MCP حتى 120 طلباً في الدقيقة من عنوان شبكة واحد، ولا يتجاوز جسم الطلب الواحد 15,029,592 بايت.

MCP

Connect an MCP client such as Claude Desktop or Cursor to your Deer workspace so it can read and work with your tasks, under your identity and permissions.

What MCP is

The Model Context Protocol (MCP) is an open standard that lets an AI client call tools in another product. Deer runs an MCP server for every workspace. When you connect a client to it, the client can list your tasks and, if you allow it, create and change them.

Every MCP tool is a Deer action. The client goes through the same permission check as the interface, its changes carry the client's mark, and each call is recorded in the audit log. Destructive requests stop until you approve them in Deer.

A connection always acts as the person who created it. It can never do more than that person can do in the workspace, and it can do less: you choose the task access when you create it.

Before you start

  • Who can create a connection. Workspace owners, and admins unless an owner has restricted their MCP access. Members and guests cannot open MCP settings.
  • Task access. You need permission to read tasks. To give a client Read & write, you need permission to change tasks yourself.
  • A compatible client. The client must support remote MCP servers over Streamable HTTP and let you set an Authorization header with a bearer token.
  • A limit. A workspace can have up to 30 active connections at a time.

Create a connection

  1. Open MCP settings

    Open Settings, then select MCP under Workspace. The Connections tab shows the Server endpoint for this workspace.

  2. Start a new connection

    Select New connection.

  3. Name the client

    Enter a Client name you will recognise later, for example the app and the device: Cursor - work laptop. Up to 80 characters.

  4. Choose the task access

    Under Task access, choose Read to let the client list tasks, or Read & write to let it create, edit, assign, comment on and delete tasks too.

  5. Create it

    Select Create connection. Deer shows the Client configuration with a new access token.

  6. Save the configuration now

    Select Copy configuration and paste it into your client. The token is shown once. Deer keeps only a fingerprint of it and cannot show it again. Select Done when you have saved it.

The client configuration

The configuration Deer gives you has this shape:

JSON
{
  "mcpServers": {
    "moeen": {
      "url": "<workspace-mcp-url>",
      "headers": {
        "Authorization": "Bearer <token>"
      }
    }
  }
}
  • <workspace-mcp-url> is the Server endpoint shown in MCP settings. It has the form https://app.deerapp.co/api/mcp/<workspace-id>. Select Copy URL to copy it.
  • <token> is the access token from the dialog. Tokens start with mn_mcp_.
  • moeen is only the name your client shows for the server. You can rename it.

The Client configuration card on the Connections tab shows the same shape with a hidden token, so you can copy the structure again later. Insert your saved token into it.

Add Deer to your client

Each client stores MCP servers in its own settings file. Use the tab for your client.

Claude Desktop starts MCP servers from its configuration file. To reach a remote server with a bearer header, it can use the open source mcp-remote bridge, which needs Node.js on your computer.

Open Claude Desktop, go to Settings, then Developer, and select Edit Config. Add Deer under mcpServers:

claude_desktop_config.json
{
  "mcpServers": {
    "moeen": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "<workspace-mcp-url>",
        "--header",
        "Authorization:${DEER_AUTH_HEADER}"
      ],
      "env": {
        "DEER_AUTH_HEADER": "Bearer <token>"
      }
    }
  }
}

Save the file and restart Claude Desktop. The Deer tools appear in the tools menu of a new chat.

What a connection can do

Task accessTools the client sees
Readtasks.list
Read & writetasks.list, tasks.create, tasks.update, tasks.set_status, tasks.assign, tasks.add_comment, tasks.set_subtask, tasks.delete

The client sees only the tasks you can see, including private teams you belong to. If your own permission changes, the tool list changes with it. Tasks a client creates or edits show its mark, so everyone can tell the change came from MCP.

tasks.delete always stops for your approval. The full tool reference and the approval flow are in MCP tools.

Approve a request

You can also decide in Actions, under Approvals. For a write that does not require approval, see retry keys.

When a client asks to delete a task, an Approval requests section appears on the Connections tab of the person who created the connection. Each request shows Delete task, the task title and the client name.

Select Approve deletion or Reject. After you approve, the request shows Approved. The client can retry the call. The client then repeats the same call with the approval ID. A request expires 15 minutes after the client made it.

Monitor and revoke

The Connections table lists every connection in the workspace with its Client, who it Acts as, its Scopes, the number of Calls, when it was Last used and its Status: Active or Revoked.

To stop a client, select Revoke on its row and confirm. Any owner or admin with MCP access can revoke any connection in the workspace.

  • The token stops working immediately, and the client's next call is refused.
  • Pending approval requests from that connection are deleted.
  • A revoked connection cannot be turned back on. Create a new connection if you need access again.

Every connection created, every revocation and every tool call is recorded in the audit log, with the client shown as the actor acting for its owner.

Security notes

  • Treat the token like a password. Anyone who has it can act as you within the connection's access. Never paste it into chat, tickets or shared documents, and never commit it to a repository.
  • One connection per client. Create a separate connection for each app and device, so you can revoke one without breaking the others.
  • Choose the least access. Use Read unless the client really needs to change tasks.
  • Access follows you. A connection stops working if you leave the workspace, if your MCP access is removed, or if the workspace requires two-step verification and you have not set it up.
  • Browser pages cannot borrow it. Deer refuses MCP requests sent by web pages on other sites.
  • Limits. The MCP endpoint accepts up to 120 requests a minute from one network address, and each request body can be up to 15,029,592 bytes.