mcp-cli

mcp-cli is a skill for Claude Code, Codex from zonlabs/mcp-ts. It costs 48 tokens per session (1,710 once invoked), scanned A, original, MIT.

A guide for using the MCP CLI, a command-line tool for discovering and calling MCP servers. It covers local and remote servers, authentication, schemas, tool calls, and the gateway process that connects these commands.

In plain words
What is it for?
Use it to check the CLI version, list or search available servers, inspect tool schemas, call tools, authenticate remote connections, and troubleshoot gateway errors.
Why use it?
It prevents common setup and troubleshooting mistakes, such as using the wrong gateway state or adding remote servers to the wrong configuration file.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/zonlabs/mcp-ts/mcp-cli
Any agent
npx skills add zonlabs/mcp-ts --skill mcp-cli
Clone the repo
git clone --depth 1 https://github.com/zonlabs/mcp-ts

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/zonlabs/mcp-ts/mcp-cli.svg)](https://agentmods.dev/skills/zonlabs/mcp-ts/mcp-cli)
Your own site
<a href="https://agentmods.dev/skills/zonlabs/mcp-ts/mcp-cli"><img src="https://agentmods.dev/badge/skills/zonlabs/mcp-ts/mcp-cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,710 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00048 $0.01710
Opus 5 $0.00024 $0.00855
Sonnet 5 $0.00010 $0.00342
Haiku 4.5 $0.00005 $0.00171

Measured 3d ago against content hash 97bee09a4eb6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mcp-cli scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

import { execFile } from "node:child_process";
skills/mcp-cli/SKILL.md · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MCP CLI (mcpa | mcp-ts)

Overview

Use this skill for every task that invokes mcpa or mcp-ts. CLI 0.3.0 has one gateway: serve runs it in the foreground with live logs, while daemon start runs the same gateway in the background.

Normal list, search, schema, and call commands always use that gateway. They reuse a healthy managed or foreground gateway and auto-start the managed daemon when the gateway is stopped.

Remote MCP catalog

The CLI connects to the hosted gateway at https://api.mcp-assistant.in for authenticated access to remote MCP servers. Users manage those connections at https://mcp-assistant.in/mcp?tab=apps.

Servers connected or disconnected in the MCP Assistant app are synchronized automatically with the running CLI gateway and become available or unavailable in the remote catalog. Do not add app-managed remote servers to local mcp.json, and do not restart a healthy gateway to pick up connection changes. Use mcpa list --tools to inspect the current combined local and remote catalog.

Mandatory preflight

Complete these checks before MCP work:

  1. Resolve the executable and print its version.
    • PowerShell: Get-Command mcpa,mcp-ts -ErrorAction SilentlyContinue, then mcpa --version.
    • POSIX: command -v mcpa || command -v mcp-ts, then mcpa --version.
    • Pin that resolved executable or an explicit local node .../dist/bin/mcp-ts.js entrypoint for the whole session.
  2. If neither executable exists, stop and request approval to install @mcp-ts/cli or download it with npx. Never install or download silently.
  3. Require CLI version 0.3.0 or newer. If it is older, stop and request an upgrade; do not use pre-0.3.0 flags or behavior as a compatibility path.
  4. Run mcpa daemon status and follow the state table below.
  5. Run mcpa list --tools with the same pinned CLI. Verify the expected local and remote catalog before choosing a tool.
  6. If a remote server is missing because the session is absent or expired, run mcpa login, then repeat mcpa list --tools. Authentication failures are not gateway failures; do not restart the gateway to repair auth.

Read the full file on GitHub · 135 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 135 lines · 48 tokens per session scan A 97bee09a4eb6

Subscribe to this mod's changes

mcp-cli is a skill published in the GitHub repository zonlabs/mcp-ts (24 stars, last pushed 6d ago), licensed MIT. It adds 48 tokens to every session and 1,710 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

self-host-studio

Install and self-host deco Studio (the open-source control plane) on the user's own infrastructure. Use when the user wants to install, run, self-host, or deploy Studio locally (Docker, Rancher Desktop, kind, minikube) or on Kubernetes (managed or self-managed), or asks to "install Studio", "self-host decocms"…

decocms/studio · 117 tokens

add-mcp-tools

Guide for adding new MCP tools with consistent patterns for schemas, tool definitions, registry updates, and Better Auth integration.

decocms/studio · 27 tokens

brand

Create and maintain an org's brand as a folder the whole platform reads: colors, type, voice, logo and a deck theme. Use this whenever someone asks to "set up our brand", "make a brand kit", "apply our colors/fonts", or before producing branded artifacts (decks, pages, emails). One brand = one folder; everything that…

decocms/studio · 0 tokens

slides

Create and edit presentation decks as single self-contained HTML files with a live, editable preview and print-to-PDF export. Use when the user wants slides, a deck, or a presentation.

decocms/studio · 40 tokens

decocms-ui

Build or style React UI with the decocms product design system (@decocms/ui). Use when creating interfaces, pages, or components in a project that should look like decocms products, when the user mentions "design system", "@decocms/ui", "decocms style", or asks to make UI consistent with Studio. Covers installation…

decocms/studio · 91 tokens

pptx

Read and inspect existing .pptx PowerPoint files (text, speaker notes, slide images). Use only for reading uploaded PowerPoint files — to AUTHOR a deck use the slides skill instead.

decocms/studio · 41 tokens