Skillpedia
الموصّلات (MCP)41k · #6821

mcp-servers

ما الذي تفعله

تُرشد هذه المهارة الذكاء الاصطناعي إلى إضافة خوادم MCP، التي تمنح المساعد وصولاً إلى خدمات خارجية، وإصلاحها. وهي مناسبة لمن يريد ربط أدوات مثل GitHub أو Linear أو Sentry بالذكاء الاصطناعي الخاص به.

متى تستخدمها

  • ✓عندما تريد ربط أداة مثل Linear أو Sentry أو GitHub بالذكاء الاصطناعي.
  • ✓عندما تفشل أداة MCP أو لا تظهر أدواتها في المساعد.
  • ✓عندما تحتاج إلى تسجيل الدخول إلى خادم MCP يستخدم تسجيل دخول OAuth.

رابط المهارة

https://github.com/PostHog/posthog/blob/master/packages/agent/packages/harness/src/extensions/mcp/skills/mcp-servers/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/PostHog/posthog/blob/master/packages/agent/packages/harness/src/extensions/mcp/skills/mcp-servers/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“ساعدني في ربط حسابي في Linear بالذكاء الاصطناعي عبر خادم MCP.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تشرح المهارة مكان ملف إعدادات MCP، وكيفية إضافة مدخل للخادم مع خياراته، ومتى يجب إعادة تحميل الإعدادات كي تظهر الأدوات الجديدة. وتغطي أيضاً الأخطاء الشائعة وخطوات تسجيل الدخول.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

MCP servers

This agent has a built-in MCP client. Servers are declared in mcp.json; their tools appear as mcp_<server>_<tool> once connected. The model can also always find and call MCP tools via a single mcp proxy tool (mcp({ search: "..." }) / mcp({ tool: "...", args }) without their schemas ever being loaded into context, and without a lifecycle: "lazy" server being connected until one of its tools is actually needed — see "Context window control" below.

Config files

File Scope
~/.pi/agent/mcp.json global (all projects)
<project>/.pi/mcp.json project-local, only honored in trusted projects

Project entries override global entries with the same server name; project settings keys override global ones per key. Prefer project-local config for project-specific servers, global for personal/general-purpose ones. Create the file if it doesn't exist.

Applying changes: config is read at session start. After editing mcp.json, tell the user to run /reload (this re-reads config, restarts servers, and refreshes tools). You cannot run /reload yourself.

Config format

{
  "settings": {
    "toolPrefix": "mcp",
    "requestTimeoutMs": 30000,
    "maxRetries": 3,
    "searchResultLimit": 15
  },
  "mcpServers": {
    "<server-name>": { ... }
  }
}

settings is optional. Server names: keep them short and lowercase; they become part of tool names.

Local (stdio) server — spawned as a subprocess

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/workspace"],
      "env": { "SOME_VAR": "literal-value" }
    }
  }
}
  • command is required; transport defaults to "stdio".
  • env values are literals merged over the parent environment — there is no ${VAR} interpolation. If a server needs a secret, ask the user to provide it or reference their shell environment by launching via a wrapper script.
  • Most published servers run via npx -y <package> (Node) or uvx <package> (Python). If unsure of the package name, search the web for "<product> MCP server".

Remote (HTTP) server

{
  "mcpServers": {
    "internal": {
      "transport": "streamable-http",
      "url": "https://mcp.example.com/mcp",
      "headers": { "Authorization": "Bearer <api-key>" }
    }
  }
}
  • transport: "streamable-http" (preferred) or "sse" (legacy); url required.
  • headers is for static API-key auth. Never invent keys — ask the user for theirs.

Remote server with OAuth (user login in browser)

{
  "mcpServers": {
    "linear": {
      "transport": "streamable-http",
      "url": "https://mcp.linear.app/mcp",
      "auth": { "type": "oauth" }
    }
  }
}
  • auth: { "type": "oauth" } is enough for most servers (discovery + dynamic client registration + PKCE are automatic). Optional fields: scope, clientId, clientSecret, redirectUrl (only for pre-registered clients), clientName.
  • After /reload, the first connection will fail with "Authentication required" — that is expected. Start the login yourself with the mcp_auth tool (opens the user's browser), or tell the user to run /mcp:auth <server-name>. Tokens are stored and refreshed automatically afterwards.
  • OAuth is only valid for streamable-http/sse, not stdio.
  • If dynamic client registration is rejected (e.g. a client-name policy error), set "clientName" in the auth object and retry.

Other per-server options

  • lifecycle: "lazy" (default — starts on first use of one of its tools via the mcp proxy tool, or manually with /mcp:start <name>) or "eager" (starts at session start). Use eager only for a server you want connected from the very first turn.
  • requestTimeoutMs, healthCheckIntervalMs: numeric overrides, rarely needed.
  • idleTimeoutMs: lifecycle: "lazy" only — auto-disconnect this many ms after the server's last tool call. Good for servers used in bursts, e.g. 600000 (10 min).
  • description: one-line summary shown by mcp search before this server has ever connected (its real tool list isn't known yet). Set this on lazy servers so the model can find them via search before the first connection.
  • directTools: false (default — all tools stay searchable-only via mcp), true (all tools load straight into context), or an array of MCP-side tool names to keep direct while the rest stay proxy-o
الأسئلة الشائعة

أين تُحفظ إعدادات MCP؟

في ملف mcp.json، إما في إعداداتك الشخصية أو داخل مجلد المشروع. وإعدادات المشروع تنطبق على ذلك المشروع فقط.

لماذا لا تظهر أدواتي الجديدة؟

تُقرأ الإعدادات عند بدء الجلسة، لذلك تحتاج عادةً إلى إعادة تحميل الإعدادات قبل أن تظهر الأدوات الجديدة.

هل تستطيع إعداد أي خدمة؟

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

التفاصيل

الوصف الأصلي من المؤلف

Install, configure, authenticate, and troubleshoot MCP (Model Context Protocol) servers for this agent. Use when the user asks to add/install/remove an MCP server, connect a tool like Linear/Sentry/Supabase/GitHub via MCP, set up mcp.json, or when MCP tools are failing or need OAuth login.

repo: PostHog/posthog

الشعبية

نجوم GitHub
41k
الترتيب
#6821
الترخيص
—
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة