Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计提醒

test-by-mcpc-cli测试 BY mcpc CLI

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

494

周安装

21

GitHub Stars

5

下载量

173
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:test-by-mcpc-cli(测试 BY mcpc CLI)
来源仓库:https://github.com/yigitkonur/skills-by-yigitkonur
仓库路径:skills/test-by-mcpc-cli
安装命令:
npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill test-by-mcpc-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill test-by-mcpc-cli

简介

用于辅助测试设计、自动化测试、用例整理和回归验证。

  • 适合编写单元测试、端到端测试或根据失败日志定位问题。
  • 需确认项目测试框架、运行命令和夹具数据后使用。
  • 涉及浏览器或外部服务时应区分本地模拟与生产环境。
  • test-by-mcpc-cli 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Test MCP Servers with mcpc

Use mcpc 0.2.x as the operator-facing harness for MCP server testing. This skill is written for the 0.2.0 through 0.2.4 command family, not the older 0.1.11 target-first CLI.

Trigger Boundary

Use this skill when you need to:

  • connect to a real MCP server over stdio or Streamable HTTP and verify the live surface
  • inspect tools, prompts, resources, templates, logging, subscriptions, or instructions from mcpc
  • reproduce auth, proxy, cleanup, task, or transport failures with the released CLI
  • script repeatable smoke checks in --json mode
  • compare a local stdio server with a deployed HTTP target

Do not use this skill when the main job is building the server or client itself. Use build-mcp-server-sdk-v1, build-mcp-server-sdk-v2, build-mcp-use-server, or build-mcp-use-client for implementation work.

Prerequisites

mcpc --version
mcpc --help

Prefer mcpc 0.2.x. This rewrite was verified against 0.2.4 and live-tested with:

  • https://research.yigitkonur.com/mcp
  • @modelcontextprotocol/server-everything over stdio and Streamable HTTP

If mcpc is missing, older, or your config shape is wrong, start with references/guides/installation.md. This skill documents raw mcpc behavior. Establish the plain CLI path first, then layer wrappers or harnesses back in only after the raw command path already works.

Minimal Read Sets

Do not load the whole skill by default. Use one of these bundles first, then widen only if the task forces you to.

Remote Streamable HTTP smoke test

Read these first:

  • references/commands/quick-reference.md
  • references/guides/http-testing.md
  • references/guides/discovery-search.md
  • references/guides/tool-resource-testing.md
  • references/guides/cleanup-maintenance.md

Local stdio plus task verification

Read these first:

  • references/commands/quick-reference.md
  • references/guides/stdio-testing.md
  • references/guides/async-tasks.md
  • references/guides/everything-server.md
  • references/guides/discovery-search.md
  • references/guides/tool-resource-testing.md
  • references/guides/cleanup-maintenance.md

Auth, proxy, or payment edge cases

Read these first:

  • references/commands/quick-reference.md
  • references/guides/authentication.md
  • references/guides/proxy-testing.md
  • references/guides/x402-payments.md
  • references/guides/cleanup-maintenance.md

Command Family Change

The 0.2.x CLI is session-first. Always create or reuse a named session before you run MCP operations.

# Remote Streamable HTTP target
mcpc connect https://research.yigitkonur.com/mcp @research
mcpc @research ping
mcpc @research tools-list

# Local stdio target from a standard mcpServers config
mcpc connect .vscode/mcp.json:filesystem @fs
mcpc @fs tools-list

Treat these forms as stale 0.1.11 syntax drift:

  • mcpc mcp.example.com tools-list
  • mcpc mcp.example.com connect @demo
  • mcpc --config.vscode/mcp.json filesystem connect @demo
  • mcpc --clean=sessions

Route migration work to references/patterns/session-first-syntax.md.

Standard Workflow

1. Verify the syntax family

  • Confirm mcpc --version reports 0.2.x.
  • Confirm examples use mcpc connect <server-or-file:entry> @session.
  • Validate the released CLI contract with plain mcpc, not a shell wrapper.
  • Treat old --config file entry and direct URL one-shot commands as obsolete.

2. Connect a stable session

Default to a fresh connect. Reach for session inventory only when reuse, cleanup, or stale-state diagnosis is the actual job.

# Remote URL; https:// is added automatically for non-local hosts
mcpc connect research.yigitkonur.com/mcp @research

# Localhost keeps http:// by default
mcpc connect 127.0.0.1:3011/mcp @everything-http

# Stdio via config entry
mcpc connect /tmp/everything-mcp.json:everything @everything-stdio

Use --no-profile when anonymous HTTP testing matters on a machine with saved OAuth profiles.

If you do need to inspect an existing session, narrow the lookup to the exact session name instead of reading the whole inventory first:

mcpc
mcpc --json | jq '.sessions[] | select(.name == "@research")'

If an older session for the same target is not live, do not assume that session is still the right test entrypoint. Either mcpc restart @session or create a fresh session with a new name. If mcpc restart @session returns Session not found, stop retrying that name and create a fresh session immediately. For Everything-specific work, prefer a fresh stdio session unless you intentionally started the streamableHttp server yourself.

3. Inspect before deep testing

mcpc @research
mcpc @research help
mcpc @research grep search
mcpc @research tools-list --full
mcpc @research resources-list
mcpc @research prompts-list

Prefer help and grep before heavy jq pipelines. If the acceptance criteria explicitly mention prompts, resources, or templates, add those list calls in the first pass instead of widening the read set later.

4. Validate schema and argument shape

mcpc @research tools-get web-search
mcpc --json @research tools-get web-search | jq '.inputSchema'
mcpc @research prompts-get some-prompt --schema ./expected-prompt-schema.json

key:=value still works, but arrays and objects should be sent as inline JSON literals or full JSON payloads. Route quoting edge cases to references/patterns/argument-parsing.md.

4b. Reality-check advertised capabilities

Do not trust capabilities alone. Check the server info, the tool metadata, and one real call.

mcpc --json @research | jq '.capabilities'
mcpc --json @everything-http tools-list | jq '.[] | {name, taskSupport: (.execution.taskSupport // "unspecified")}'

Rules:

  • if completions appears in server info, treat it as informational until you confirm the CLI actually exposes a command
  • if tasks appear in capabilities, still inspect per-tool execution.taskSupport
  • if a tool is marked task:required, prove it with one --task or --detach call before writing automation around it

5. Exercise the capability you care about

mcpc --json @research tools-call search-reddit '{"queries":["OpenAI MCP"]}'
mcpc @everything-http prompts-get args-prompt city:=Paris state:=Texas
mcpc @everything-http resources-read demo://resource/static/document/features.md
mcpc @everything-http logging-set-level debug

6. Treat JSON payloads as truth

RESULT=$(mcpc --json @everything-http tools-call trigger-sampling-request prompt:='"hello"')
echo "$RESULT" | jq '.isError // false'

A command can exit 0 and still carry "isError": true.

7. Use task mode deliberately

mcpc @everything-http tools-list --full
mcpc @everything-http tools-call simulate-research-query topic:='"mcpc tasks"' --task
mcpc @everything-http tools-call simulate-research-query topic:='"mcpc tasks"' --detach
mcpc @everything-http tasks-get <taskId>

Use --task when you need the final result in the CLI. Use --detach when a task ID is enough. mcpc 0.2.4 does not have a standalone tasks-result command.

8. Close or clean explicitly

mcpc close @research
mcpc clean
mcpc clean sessions logs

Use mcpc clean all only for a real reset. Do not run close and clean for the same session in parallel.

High-Signal Rules

  1. Connect first. If an example starts with mcpc <server> tools-list, it is stale.
  2. Prefer native discovery with mcpc @session, mcpc @session help, and mcpc grep before custom JSON filtering.
  3. Inspect isError, task status, and payload text instead of trusting human-mode success banners.
  4. Use --no-profile to force anonymous HTTP tests when saved OAuth state would pollute the result.
  5. Use mcpc clean..., not legacy --clean=... flags.
  6. If an old session is disconnected, reconnecting, expired, or crashed, do not reuse it blindly for a smoke test. Restart it or create a fresh session.
  7. Treat HTTP+SSE endpoints as unsupported for mcpc 0.2.x; use Streamable HTTP or stdio instead.
  8. Reach for --insecure only when the endpoint really uses a self-signed or otherwise untrusted certificate.
  9. When a tool is marked task:required, expect plain tools-call to fail until you add --task or --detach.
  10. Use plain mcpc as the documented baseline; wrappers can change quoting, TTY, and session-state visibility.
  11. Treat proxy /health as a liveness probe only. Verify proxy auth with a real MCP request on the exact release you ship before you depend on it.

Capability Boundary

Fully testable with first-class CLI support

  • stdio and Streamable HTTP
  • tools, prompts, resources, resource templates, logging, grep, proxy, x402, JSON scripting
  • task-enabled tool execution with --task, --detach, tasks-list, tasks-get, and tasks-cancel

Nuanced or partial in mcpc 0.2.4

  • roots: the client advertises roots capability, so servers like Everything may expose helper tools, but mcpc has no dedicated CLI to configure roots
  • sampling: servers may expose sampling demo tools because mcpc advertises sampling-related client capabilities, but the tool payload can still come back with isError: true
  • completions: appears in server capabilities, but there is no mcpc completions command
  • detached task results: tasks-get shows status, not the original tool result body

Not a first-class mcpc workflow

  • HTTP+SSE transport testing
  • elicitation commands from the CLI
  • standalone completion browsing
  • standalone detached-result retrieval after --detach

Reference Routing

Read the smallest relevant set for the branch you are in.

Core guides

FileRead when
references/guides/installation.mdInstalling mcpc, checking version drift, Linux keychain notes, or config format confusion.
references/guides/stdio-testing.mdTesting a local stdio server from mcpServers config using file:entry syntax.
references/guides/http-testing.mdTesting remote or localhost Streamable HTTP endpoints, path issues, TLS, headers, or --insecure.
references/guides/discovery-search.mdDiscovering tools, resources, prompts, and instructions with help, grep, and list calls.
references/guides/tool-resource-testing.mdRunning tools, prompts, resources, templates, subscriptions, and logging checks.
references/guides/async-tasks.mdUsing --task, --detach, and tasks-*, or debugging task-required tools.
references/guides/authentication.mdOAuth, bearer headers, profile selection, scopes, client credentials, and anonymous mode.
references/guides/session-management.mdUnderstanding session lifecycle, reconnect behavior, restart behavior, and multi-session workflows.
references/guides/cleanup-maintenance.mdSafe cleanup, hard resets, logs, and local mcpc hygiene.
references/guides/proxy-testing.mdExposing a session as a local MCP proxy for sandboxes or agent code.
references/guides/x402-payments.mdWallet setup, x402 sign, and --x402 session behavior.
references/guides/ci-cd-integration.mdCI smoke tests, isolated MCPC_HOME_DIR, scripted assertions, and cleanup traps.
references/guides/scripting-automation.mdShell automation patterns, error handling, JSON parsing, and reproducible scripts.
references/guides/everything-server.mdVerifying current mcpc behavior against the official Everything reference server.
references/guides/capability-coverage.mdMapping advertised capabilities to actual mcpc commands and known gaps.
references/guides/architecture.mdHigh-level mcpc design, session-first routing, and capability negotiation.
references/guides/bridge-internals.mdBridge process lifecycle, crash recovery, reconnect caveats, and log locations.

Commands, examples, and troubleshooting

FileRead when
references/commands/quick-reference.mdYou need the exact 0.2.4 syntax, flags, aliases, or cleanup forms fast.
references/examples/real-world-workflows.mdYou want complete end-to-end workflows for real targets like Research Powerpack or Everything.
references/examples/testing-recipes.mdYou want short copy-paste checks for smoke tests, schemas, tasks, grep, or cleanup.
references/troubleshooting/common-errors.mdYou hit stale syntax, bad config shape, task-required failures, expired sessions, or transport mismatches.

Patterns and advanced details

FileRead when
references/patterns/session-first-syntax.mdTranslating 0.1.11 examples to 0.2.x command-first syntax.
references/patterns/argument-parsing.mdQuoting arrays, objects, inline JSON, stdin, and key:=value edge cases.
references/patterns/schema-validation.mdValidating tool and prompt schemas in regression checks.
references/patterns/config-resolution.mdUnderstanding mcpServers config shape, file:entry, URL normalization, and path mistakes.
references/patterns/auth-precedence.mdDeciding between explicit headers, named profiles, default profile, --no-profile, and --x402.
references/patterns/output-formatting.mdUnderstanding human vs JSON mode, stderr behavior, exit-code caveats, and isError.
references/patterns/jq-patterns.mdAdvanced JSON filtering after native grep and help are not enough.
references/patterns/tool-filtering.mdComplementing grep with `tools-list --json
references/patterns/logging-debugging.mdUsing --verbose, bridge logs, and log inspection to explain failures.
references/patterns/notification-handling.mdTesting list-changed notifications, subscriptions, and server log messages.
references/patterns/pagination-caching.mdUnderstanding auto-pagination, tool cache refresh, and dynamic discovery behavior.
references/patterns/python-integration.mdDriving mcpc from Python subprocess workflows.
references/patterns/shell-advanced.mdInteractive shell behavior, discovery loops, and task usage inside shell.
references/patterns/data-model.mdThe JSON shapes behind session info, task status, cached metadata, profiles, and storage.

Guardrails

  • Do not teach 0.1.11 target-first syntax unless you are explicitly documenting migration.
  • Do not tell users to test HTTP+SSE with mcpc 0.2.x; use Streamable HTTP or stdio instead.
  • Do not assume tasks-get can recover the full detached result body.
  • Do not treat a green success banner as proof that the server call succeeded.
  • Do not assume advertised capabilities always mean polished CLI support.
  • Do not run mcpc clean all casually on machines with saved profiles.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.9%
按下载量换算67

Claude

29.97%
按下载量换算52

Cursor

19.56%
按下载量换算34

Gemini CLI

9.34%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/yigitkonur/skills-by-yigitkonur --skill test-by-mcpc-cli 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills