agentleFS
bmcszkbmcszk/agent-skills/skills/mcpc/SKILL.md

mcpc

Skill1 starsChanged 2 months agoMITView on GitHub

Use mcpc CLI to interact with MCP servers — call tools, read resources, manage sessions. Load this when you need to access any MCP server via the command line. Configured servers: context7, pixellab, MiniMax, zai-search, zai-reader, zread, zai-vision, gemini-cli, playwright, searxng. Keywords: mcpc, mcp client, model context protocol, mcp server, call tool, read resource, mcp session.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • apify/mcpctheir own version, first seen Oct 4, 2026

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use mcpc to interact with MCP (Model Context Protocol) servers from the command line.

    line 13
  2. Very specific:

    Not configured (pay-per-use platform API, NOT covered by coding plans): official generative MiniMax-MCP (uvx minimax-mcp: …

    line 33
  3. Very specific:

    Pitfall: No spaces around :=. Use quotes for values with spaces:

    line 123
  4. Very specific:

    Use --json for machine-readable output.

    line 130

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

mcpc: MCP command-line client

Use mcpc to interact with MCP (Model Context Protocol) servers from the command line. Generate shell commands instead of using function calling — more efficient, composable with pipes, and works across all agent types.

Configured servers

MCP servers are defined in ~/.mcpc/mcp.json. Connect via file:entry syntax:

mcpc connect ~/.mcpc/mcp.json:<entry> @<name>

Available servers: context7, pixellab, MiniMax, gemini-cli, playwright, searxng, plus Z.ai coding-plan servers (added 2026-09-16, key = ZAI_AUTH_TOKEN from ~/.config/environment.d/secrets.conf):

SessionEntryToolsNotes
@zai-searchzai-web-searchweb_search_primeremote, live-verified
@zai-readerzai-web-readerwebReaderremote, live-verified
@zreadzreadsearch_doc, read_file, get_repo_structureremote; repo_name = owner/repo
@zai-visionzai-visionanalyze_image, ui_to_artifact, OCR, …stdio npx @z_ai/mcp-server; local file paths only — URL fetch fails (400 图片输入格式/解析错误); Node ≥22
@minimaxMiniMaxweb_search, understand_imageuvx minimax-coding-plan-mcp, key = MINIMAX_CODING_KEY; local paths verified; search verified

Not configured (pay-per-use platform API, NOT covered by coding plans): official generative MiniMax-MCP (uvx minimax-mcp: TTS/video/image/music). Only add on explicit user request.

PATH pitfall: mcpc binary lives in ~/.bun/bin — absent from default non-login PATH. First line of any script: export PATH="$HOME/.bun/bin:$PATH" (else command not found, exit 127).

Verified quirks (2026-09-16): Z.ai/zread remote tools take owner/repo as repo_name; vision tools reject remote image URLs (HTTP 400 图片输入格式/解析错误) — download or generate a local file first (local paths verified OK on both @zai-vision and @minimax).

Quick reference

# List sessions and auth profiles
mcpc

# Show server info, capabilities, tools
mcpc @<session>

# Tools
mcpc @<session> tools-list
mcpc @<session> tools-list --full
mcpc @<session> tools-get <tool-name>
mcpc @<session> tools-call <tool-name> key:=value key2:="string value"

# Resources
mcpc @<session> resources-list
mcpc @<session> resources-read <uri>

# Prompts
mcpc @<session> prompts-list
mcpc @<session> prompts-get <prompt-name> arg1:=value1

# Async tasks
mcpc @<session> tools-call <tool> args --task
mcpc @<session> tools-call <tool> args --detach
mcpc @<session> tasks-list
mcpc @<session> tasks-result <taskId>

# Sessions
mcpc connect <server> @<name>
mcpc @<name> restart
mcpc @<name> close

# Search tools across sessions
mcpc grep <pattern>
mcpc @<name> grep <pattern>

# Authentication
mcpc login <server>
mcpc logout <server>

Connecting to servers

# From config file (preferred for local setup)
mcpc connect ~/.mcpc/mcp.json:playwright @pw

# Direct URL (remote servers)
mcpc connect mcp.apify.com @apify

# With bearer token
mcpc connect mcp.example.com @api --header "Authorization: Bearer $TOKEN"

# With OAuth profile
mcpc login mcp.example.com --profile work
mcpc connect mcp.example.com @api-work --profile work

Passing arguments

Arguments use key:=value syntax. Values are auto-parsed as JSON when valid:

# String values
mcpc @s tools-call search query:="hello world"

# Numbers, booleans (auto-parsed as JSON)
mcpc @s tools-call search limit:=10 enabled:=true

# Complex JSON values
mcpc @s tools-call search config:='{"nested":"value"}' items:='[1,2,3]'

# Force string type with inner JSON quotes
mcpc @s tools-call search id:='"123"'

# Inline JSON object (if first arg starts with { or [)
mcpc @s tools-call search '{"query":"hello","limit":10}'

# From stdin (auto-detected when piped)
echo '{"query":"hello"}' | mcpc @s tools-call search

Pitfall: No spaces around :=. Use quotes for values with spaces:

mcpc @s tools-call search "query:=hello world"

JSON output for scripting

Use --json for machine-readable output. JSON follows the MCP specification:

# Get tools as JSON
mcpc --json @s tools-list

# Call tool and extract result with jq
mcpc --json @s tools-call search query:="test" | jq '.content[0].text'

# Chain tools across sessions
mcpc --json @s1 tools-call get-data | mcpc @s2 tools-call process

# Batch operations
for tool in $(mcpc --json @s tools-list | jq -r '.[].name'); do
  mcpc --json @s tools-get "$tool" > "schemas/$tool.json"
done

Session management

Sessions are persistent named connections that maintain state. More efficient than reconnecting every command.

Session states:

StateMeaning
liveBridge running, server responding
connectingInitial connection in progress
disconnectedServer unreachable, auto-recovers
crashedBridge crashed, auto-restarts
unauthorizedAuth failed, needs login then restart
expiredServer rejected session, needs restart

Lifecycle:

mcpc connect ~/.mcpc/mcp.json:searxng @searxng    # Create
mcpc @searxng tools-call searxng_web_search query:="Go generics"  # Use
mcpc @searxng ping                                   # Health check
mcpc @searxng restart                                # Restart if stale
mcpc @searxng close                                  # Clean up

Schema validation

Validate tool schemas against snapshots to detect breaking changes:

# Save expected schema
mcpc --json @s tools-get search > expected.json

# Validate before calling
mcpc @s tools-call search --schema expected.json query:="test"

Proxy for sandboxed access

Expose MCP sessions without revealing credentials:

mcpc connect mcp.example.com @relay --proxy 8080 --profile ai-access
# Others connect to localhost:8080 with no access to original tokens

Exit codes

CodeMeaning
0Success
1Client error (invalid arguments)
2Server error (tool execution failed)
3Network error (connection/timeout)
4Authentication error

Debugging

mcpc --verbose @s tools-call my-tool           # Protocol details to stderr
mcpc tail_log @s                                # View bridge logs
cat ~/.mcpc/logs/bridge-@<session>.log          # Read log file

Related skills

Each MCP server has its own skill with tool-specific workflows:

  • context7 — Documentation lookup
  • pixellab — Pixel art generation
  • minimax — AI web search and image understanding
  • gemini — Google Gemini AI assistant
  • playwright-mcp — Browser automation
  • searxng — Web search and URL reading

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.