AM

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

1081 stars 106 forks 品質 91 トレンド 45Apache-2.0

MCP用のユニバーサルCLIクライアントです。MCPCは永続セッション、stdio/HTTP、OAuth 2.1、タスク、コードモード用のJSON出力、AIサンドボックス用のプロキシ、x402などをサポートしています。

概要

mcpcはModel Context Protocol(MCP)用のコマンドラインクライアントであり、すべてのMCP操作をインタラクティブなシェル使用、スクリプト、AIエージェントのための直感的なコマンドにマッピングします。 mcpcはMCPにとってあなたの新しいスイスアーミーナイフです。MCPサーバーの手動検査やデバッグ、プレーンシェルで繰り返し可能なMCPワークフローをスクリプト化したり、AIコーディングエージェントに現代MCPの全機能を最も汎用的なインターフェースであるUNIXシェルで提供したりするのに手を伸ばしてください。 - 🔧 - ツール、プロンプト、リソース、非同期タスク、スキル、通知、stdioおよびStreamable HTTPを経由したログ。- 🔄 異なるサーバーへの複数のステート接続を並列に保つこと。- 🗺️ トークンを節約し精度を高めるために、関連するMCPツールをリアルタイムで見つけること。- 🔌 - JSON出力はjq、xargs、シェルパイプラインと組み合わせて、MCPワークフローのシェルスクリプトとして作成される。- 🔒 CIMDおよびDCRによるOAuth 2.1の完全サポート、認証情報保存にはOSキーチェーンを使用する。- 🤖 - プロキシMCPサーバー接続でAI生成コードから認証情報を保護。

概要(AI 翻訳)

mcpc はモデルコンテキストプロトコル(MCP)用のコマンドラインクライアントです すべてのMCP操作を直感的なシェルコマンドにマッピングします。

手動でMCPサーバーを点検・デバッグしたり、プレーンシェルで繰り返し可能なMCPワークフローをスクリプト化したり、 AIエージェントは単一の[Bash()ツール呼び出しで完全なMCPプロトコルを得られるようになり、任意のMCPとやり取りできます サーバーとその最新の機能、つまりUNIXシェルという最も汎用的なプログラミングインターフェースを使ったものです。

主な特徴:

  • 🔧 完全なMCPサポート - ツール、プロンプト、リソース、非同期タスク、スキル、通知、そしてstdioおよびStreamable HTTPを経由したログ記録。
  • 🔄 永続セッション - サーバープロトコルがステートフルであれステートレスであれ、複数のサーバーへの接続を並列に保つこと。
  • 🗺️ プログレッシブツール発見 - 関連するMCPツールを即座に見つけてトークンを節約し、精度を向上させる。
  • 🔌 コードモード - JSON出力はjq、xargsおよびMCPワークフロー用のシェルパイプラインと合成され、シェルスクリプトとして使われます。
  • 🔒 Secure - CIMDおよびDCRによるOAuth 2.1の完全サポート、認証情報保存にはOSキーチェーンを使用します。
  • 🤖 AIサンドボックス - プロキシMCPサーバー接続で、AI生成コードから認証情報を保護します。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

mcpc — a universal MCP CLI client

mcpc is a command-line client for the Model Context Protocol (MCP) that maps every MCP operation to an intuitive shell command.

Use it to manually inspect and debug MCP servers, to script repeatable MCP workflows in plain shell, or to give AI agents the full MCP protocol through a single Bash() tool call, so they can interact with any MCP server and its latest capabilities using the most universal programming interface there is: the UNIX shell.

Key features:

  • 🔧 Full MCP support - Tools, prompts, resources, async tasks, skills, notifications, and logging over stdio and Streamable HTTP.
  • 🔄 Persistent sessions - Keep connections to multiple servers alive in parallel, whether the server protocol is stateful or stateless.
  • 🗺️ Progressive tool discovery - Find relevant MCP tools on the fly to save tokens and increase accuracy.
  • 🔌 Code mode - JSON output composes with jq, xargs, and shell pipelines for MCP workflows as shell scripts.
  • 🔒 Secure - Full OAuth 2.1 support with CIMD and DCR, uses OS keychain for credentials storage.
  • 🤖 AI sandboxing - Proxy MCP server connections to protect credentials from AI-generated code.
  • 🪶 Lightweight - Minimal dependencies, works on Mac/Win/Linux, doesn’t use LLMs on its own.
  • 💸 Agentic payments - Experimental support for the x402 protocol on Base.

mcpc is the most MCP specification-compliant CLI client available: the only one that covers tools, resources, prompts, async tasks, and skills, plus the OAuth client-credentials and enterprise-managed authorization extensions, on the latest protocol version. Here’s how it compares to other MCP CLI clients (see Related work for the full table, legend, and notes):

Table of contents

GitHub で README 全文を見る

インストール

npx -y @modelcontextprotocol/server-filesystem /tmp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "apify": { "url": "https://mcp.apify.com", "headers": { "Authorization": "Bearer ${APIFY_TOKEN}" } }, "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"], "env": { "DEBUG": "mcp:*" } }, "local-package": { "command": "node", "args": ["/path/to/server.js"] } } }