شعار Add Connector

Add Connector

مؤسسةشائع
GetStream
add-connector

How to add a connector - a custom MCP server for one app (no code), or a new built-in in the router's catalog (a manifest YAML with sources, a consent test and a PR). Read before you add a provider, change a built-in manifest, or bump its revision.

نظرة عامة

الناشرGetStream
المستودعAgents
اسم المهارةadd-connector
النجوم
8.2K
التفريعات
709
الملفات المرفقة
تعليمات فقط
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها GetStream على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Add Connector في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/GetStream/Agents/tree/main/.claude/skills/add-connector
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/GetStream/Agents.git /tmp/Agents
mkdir -p .claude/skills
cp -r /tmp/Agents/.claude/skills/add-connector .claude/skills/add-connector
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Add Connector في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Add Connector تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Add Connector بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Add a connector

First decide which kind you need. Connecting an existing connector to an agent is in the connectors skill.

You wantKindCode change
One app uses its own MCP servercustom connectornone: the API or the dashboard
Every app can pick the provider from the catalogbuilt-ina manifest in acceleration/internal/connectors/providers/

A custom connector

Dashboard: Library › Connectors › New connector. API: POST /v1/agents/connectors (CustomConnectorRequest: id, name, endpoint or http, schemes, optional scopes, client, category, description, sync_hash, check_changes).

  • The id starts with custom_, for example custom_crm. Built-ins never use that prefix.
  • endpoint is the MCP server's https URL.
  • http is an HTTP API in place of an MCP server: base_url and tools, each tool with name, description, method, path, parameters and read_only (only on a GET or a HEAD). Send endpoint or http, not both. base_url must be a public https URL, and it is never shown again. oauth2_code is not available for one.
  • sync_hash is the fingerprint of the file the CLI synced the connector from. The connector returns it until a create without one, from the dashboard or the API, clears it.
  • check_changes: true refuses the create (409 unsynced_changes) when the newest revision has no sync_hash and says something else: a sync would write over a dashboard or API edit.
  • schemes is how a connection signs in: oauth2_code, bearer, api_key, or none.
  • A public server that needs no credential takes schemes: ["none"]. Create the connection, then connect it with PUT /v1/agents/connections/{id}/credentials and the body {"expected_revision": <its revision>}, with no values. The same empty write moves it to the connector's latest revision later, as a token saved again moves a bearer connection.
  • Then add a connection to it and bind it to an agent, as for any connector.
  • Delete answers 409 while an agent config binds it. The message names the bindings. Force deletes it anyway and leaves those bindings broken.

A built-in

A built-in is one YAML file, acceleration/internal/connectors/providers/<id>.yaml. The router embeds it and stores it in connector_definitions at every start. Read acceleration/internal/connectors/providers/AGENTS.md (rules) and the «Manifest» section of acceleration/internal/connectors/core/AGENTS.md (fields) before you write one.

Start from the closest existing file:

Your providerCopy
A hosted MCP server with OAuth and dynamic client registrationlinear.yaml
OAuth with an app the operator or customer registers, plus a token optiongithub.yaml
Receives messages (a channel)slack_bot.yaml, whatsapp.yaml
A bearer token onlylinq.yaml

Steps

  1. Write <id>.yaml. The id is the file name and never starts with custom_. Set revision: 1. Fill name, category, description, endpoints, schemes, client (registration: operator, customer, managed, dcr, cimd), scopes, refresh, rate_limit and sources. Add a channel block only if the provider sends messages. Set sensitive: true if the connector reads private data, and outbound: false on a source whose tools only read (providers/AGENTS.md), or list the tools that only read in its read_only_tools when others write (google_drive.yaml); left out, a tool counts as writing. A tool's needs_scopes is the scope the consent asks for; when the provider documents a broader scope that gives all it gives, list it under scopes.covered_by (google_drive.yaml), so a grant holding the broader one is not told to consent again. A source's headers are fixed request headers sent on every request, such as GitHub's X-MCP-Toolsets (github.yaml); a header the credential, the connection or MCP writes is refused.

  2. Cite every vendor fact. Put a comment beside each value with the vendor page and the date you opened it. A value with no source gets # unverified, and the PR lists it.

  3. Stream's own OAuth client (only if client.registration lists operator): set client.env: <ENV>. The deployment reads <ENV>_MCP_CLIENT_ID and <ENV>_MCP_CLIENT_SECRET. Add both to acceleration/README.md, «Configuration».

  4. A consent test. Every OAuth built-in has one in providers/consent_test.go. It runs oauth2_code against internal/connectors/fakeprovider, with the manifest's own endpoints pointed at the fake. New fake behaviour belongs in fakeprovider, not in the test.

  5. Run the checks from acceleration/:

    bash
    go test ./internal/store ./internal/connectors/...     # parses every manifest, runs consents
    go test ./internal/connectors/core -run TestCoreNamesNoProvider

    The store tests need Postgres (see providers/AGENTS.md, «Tests»). A test DB of your own: the go-testing and parallel-agents skills.

  6. Try it live. Start the router locally (dashboard skill), connect an account, bind one tool and call it in Playground. Then follow the connectors skill.

  7. Open the PR on the main branch. Its body lists the sources and every # unverified value.

Changing a built-in

  • Any change to what the manifest says needs a new revision. An edit without one stops the router from starting. A comment, spacing or key order is not a change.
  • Existing connections keep their pinned revision. They move to the new one at their next consent (OAuth) or token save. So a new field, such as api_base, reaches old connections only then. The API shows them outdated only when the new revision changes what they read (core.Manifest.ReadsAsConnection): a revision that changes only sensitive, outbound or read_only_tools leaves them current, since the config check reads those from the latest. channel.reply.flags reaches every connection at once: a reply reads it from the latest revision, and a revision that changes only it leaves them current.
  • To retire a broken revision, the new revision lists it in broken_revisions with a reason. Connections on it are asked to sign in again.
  • Never delete a file to remove a connector. Its revisions stay for the connections that pinned them.
  • Never revert by editing. A revert is a new revision with the old content.

Before you ask

QuestionAnswer
Which scheme?What the provider supports for an agent acting for someone: OAuth with PKCE (oauth2_code) when it has it, otherwise a token (bearer, api_key). Machine-to-machine OAuth is oauth2_client_credentials (salesforce.yaml)
Who registers the OAuth client?The provider's docs decide. An MCP server with dynamic registration: dcr. Otherwise operator (Stream's app), customer (the app's own), or both
Do I need Go code?No, unless the provider needs a hook. Then talk to the router owners first
Where does the redirect URI come from?<ROUTER_PUBLIC_URL>/v1/agents/connectors/oauth/callback. Register it at the provider

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

ماذا تفعل مهارة الذكاء الاصطناعي Add Connector؟

How to add a connector - a custom MCP server for one app (no code), or a new built-in in the router's catalog (a manifest YAML with sources, a consent test and a PR). Read before you add a provider, change a built-in manifest, or bump its revision.

لماذا تستخدم Add Connector على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Add Connector عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Add Connector في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/GetStream/Agents/tree/main/.claude/skills/add-connector. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Add Connector؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Add Connector؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Add Connector معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Add Connector مجانية؟

نعم. نشرها GetStream على GitHub بموجب ترخيص Apache-2.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

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

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