mcpdo
ما الذي تفعله
تعلّم هذه المهارة الذكاء الاصطناعي كيف يستعمل أداة سطر الأوامر mcpdo للوصول إلى خوادم MCP. وهي مناسبة لمن يريدون أن يستعمل ذكاؤهم الاصطناعي أدوات وبيانات من الخوادم المتصلة.
متى تستخدمها
- ✓عندما تسأل أي خوادم MCP أو أدوات متصلة بك حاليًا.
- ✓عندما تريد أن يستدعي ذكاؤك أداة على خادم MCP متصل.
- ✓عندما تحتاج إلى قراءة مورد أو أمر من خادم MCP.
رابط المهارة
https://github.com/modelcontextprotocol/inspector/blob/main/skills/mcpdo/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أريد أن أعرف أي أدوات MCP متصلة بي الآن.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يعرض الذكاء الاصطناعي مدخلات الخوادم المتاحة ويتصل بأحدها، ثم ينفذ أوامر مثل عرض الأدوات أو استدعائها على هذا الاتصال المفتوح.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
mcpdo — MCP Inspector connection CLI
Connect to an MCP server once, then run many commands against that named connection.
mcpdo servers/list # catalog entries you can connect
mcpdo connect entry-name # connect a catalog entry
mcpdo connect https://example.com/mcp # ad-hoc HTTP/SSE target
mcpdo connect node server.js # ad-hoc stdio target
mcpdo connections/list # open connections
mcpdo @entry-name tools/list
mcpdo @entry-name tools/call <toolName> arg:=value
mcpdo @entry-name resources/list
mcpdo @entry-name resources/read <uri>
mcpdo @entry-name prompts/list
mcpdo --connection entry-name tools/list # flag form of @entry-name
mcpdo disconnect entry-name
The canonical flow is servers/list → connect <entry> → @entry <command>.
Run mcpdo help or mcpdo <command> --help for the full, authoritative list of
commands and flags (auth management, elicitation controls, daemon control, and
more).
How to think about mcpdo
- Connections extend your toolset. Treat every open connection's tools,
resources, and prompts as part of your available capabilities: when facing a
task (or before saying "I can't do that"), check
mcpdo connections/listand the connected servers'tools/list, and call those tools mid-task like any built-in tool. - Answer capability questions with it. "What MCP servers/tools do I have?"
includes mcpdo connections (
connections/list) and catalog entries that are connectable but not connected (servers/list). - Don't auto-connect. Catalog entries don't describe capabilities, and connecting can start an auth flow involving the human. Connect when the user directs it, or when a task clearly needs it — and say so first.
- Inspect via commands, not the filesystem. Entries, connections, auth
state, and daemon state all have read commands; never list or read
~/.mcp-inspectordirectly. The one exception is editing the catalog (below). - Make it always-on (optional). Skills load only on demand; for standing
awareness of mcpdo in a project, append
mcpdo agent-help --instructionsoutput to the project'sCLAUDE.md/AGENTS.md. (mcpdo agent-helpprints this guide;--skill-pathprints the installable skill file's path.)
The catalog
servers/list/servers/show <name>read the catalog: the writable entry file at~/.mcp-inspector/mcp.json(standardmcpServersshape), overridable per shell via--catalog <path>orMCP_CATALOG_PATH.servers/listprints the resolved source path.servers/*shows entries on disk;connections/*shows live daemon state. Two shells with different catalogs share the same connections.- There are no CLI edit commands, by design: add or remove entries by editing
the catalog file directly.
mcpdo connect entry --config path/to/mcp.jsoninstead connects an entry from a read-only foreign config file.
Conventions
--format jsonoutputs JSON; the default,--format text, is human-readable.- Always qualify commands with
@nameor--connection <name>(shorthand--conn) from an agent shell: with non-interactive (non-TTY) stdin, mcpdo requires an explicit connection and errors without one. Omitting it falls back to the most-recently-used connection only on an interactive TTY, or anywhere whenMCP_ALLOW_DEFAULT_CONNECTION=1is set. - Connections persist across separate
mcpdoinvocations and self-heal: a dropped transport (expired session, exited stdio child) transparently re-dials on next use with stored credentials. Don't monitor or reconnect manually; only anauth_requirederror needs action (re-runconnect).mcpdo disconnectends one connection;mcpdo daemon stopresets everything. - The
[legacy]/[modern]era tag onconnections/listis the negotiated protocol generation (legacy= classicinitializehandshake — current and fine, not deprecated). Informational only.
Auth
- Auth is automatic at connect time and stored for reuse (
mcpdo auth/list/mcpdo auth/clear).auth/listshows each stored URL with the catalog or connection names it is "known as" and a● livemarker when a current connection holds it, so the store entries line up with the servers you use.auth/clearaccepts either the store URL or one of those friendly names (mcpdo auth/clear hosted-everything); a name that resolves to n
الأسئلة الشائعة
هل أحتاج إلى الاتصال بخادم قبل استعماله؟
نعم. تتصل المهارة بالخادم أولًا، ثم تنفذ الأوامر على الاتصال المسمى.
كيف يجد الذكاء الاصطناعي الأمر الصحيح؟
تشير المهارة إلى مخرجات المساعدة في mcpdo، وهي تسرد المجموعة الكاملة من الأوامر والخيارات.
هل يستطيع قطع الاتصال عند الانتهاء؟
نعم. تتضمن المهارة أمر قطع الاتصال لكل اتصال.
التفاصيل
الوصف الأصلي من المؤلف
Access MCP (Model Context Protocol) servers and their tools, resources, and prompts through the mcpdo CLI — connections it holds extend your capabilities alongside any built-in MCP support. Use this skill for any question or task about MCP servers, connections, or tools (e.g. "what MCP servers am I connected to?", "what MCP tools do I have?"), and whenever a task requires inspecting, testing, or scripting against an MCP server (stdio or HTTP) rather than writing custom client code.
الشعبية
- نجوم GitHub
- 11k
- الترتيب
- #11793
- الترخيص
- —
- آخر تحديث
- 29/10/2026
التعليقات
- …
مهارات مشابهة
mcporter
394kيساعد وكيلك على عرض خوادم MCP وأدواتها واستدعائها وفحصها عبر HTTP أو stdio، وإدارة إعدادات تسجيل الدخول الخاصة بها.
fastmcp
260kيساعدك على بناء خادم MCP بلغة Python واختباره ونشره، ليمنح مساعدي الذكاء الاصطناعي وصولًا إلى واجهة برمجتك أو قاعدة بياناتك أو ملفاتك كأدوات.
mcp-oauth-remote-gateway
260kيرشدك خلال تسجيل الدخول عبر OAuth إلى خادم MCP بعيد، عندما يعمل Hermes على خادم لا يصله تسجيل الدخول العادي عبر المتصفح.