Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

mcp-cli

БесплатноБез исполняемых скриптовНе проверен

Use when a research task needs a single tool from a named MCP server that is not already mounted, and the `mcp` CLI (github.com/f/mcptools) is the way to call…

romiluz13от romiluz13★ 167 звёзд на GitHub

Об этом скилле

MCP CLI (Transient MCP Access)

Overview

The mcp CLI (from github.com/f/mcptools) discovers and invokes MCP server capabilities on-demand. Use it when a task needs ONE server's tool — a doc fetch, a single query, a quick lookup — instead of permanently mounting that server as an always-loaded integration.

This keeps accelerators transient: spun up for the task, used, and dropped. A permanently mounted MCP server costs context on every session whether you call it or not. The CLI costs nothing until you run it.

Composes with cc10x:research.

Prerequisite (manual, user-installed)

Check first: command -v mcp. The agent does not install it: building a third-party binary into the user's PATH is the user's decision, to be made from a release of github.com/f/mcptools that the user has reviewed.

If mcp is absent, report that the accelerator is missing and proceed with built-in tools — do NOT treat the missing binary as a task blocker (it is a fallback message, not a wall).

Flow: discover → call → release

1. Discover first — always. Never call a tool whose schema you have not seen — guessed params fail silently or hit the wrong tool.

mcp tools <server-command>                 # list tools
mcp tools --format json <server-command>   # full param schema for parsing
mcp resources <server-command>             # list resources
mcp prompts <server-command>               # list prompts

2. Lead read-only when exploring. Restrict the surface before you touch an unfamiliar server:

mcp guard --allow 'tools:read_*,list_*' --deny 'tools:write_*,delete_*' <server-command>

Drop the guard only once you know exactly which write you intend.

3. Call with params matching the discovered signature exactly (param:str, param:num, [optional]):

mcp call <tool_name> --params '<json>' -f json <server-command>

Output -f json for parsing, -f pretty for reading. Check exit code and stderr on failure — a non-zero exit is a real error, not a fallback message.

Server-command examples:

  • stdio: npx -y @modelcontextprotocol/server-filesystem /path
  • HTTP: pass the URL (auto-detected); SSE via --transport sse
  • auth: --auth-header "Bearer <token>", --auth-user user:pass, or -e ENV_VAR for docker servers

Aliases (only for repeated use in one task)

If you call the same server several times, alias it; remove it when the task ends so nothing lingers:

mcp alias add <name> <server-command>   # then: mcp tools <name>, mcp call ... <name>
mcp alias remove <name>                 # release when done

Aliases persist in ~/.mcpt/aliases.json. Cleaning them up is part of keeping the accelerator transient.

Полный SKILL.md на GitHub

Установить mcp-cli в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Bash

FAQ

Что делает скилл mcp-cli?

Use when a research task needs a single tool from a named MCP server that is not already mounted, and the `mcp` CLI (github.com/f/mcptools) is the way to call it. Not for servers already mounted, general MCP questions, or installing MCP servers.

Как установить скилл mcp-cli?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл mcp-cli запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить mcp-cli с