
insiderphd/mcp-lite
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
軽量 mcp サーバー vibe を Cursor でコード化
概要
MCP (Model Context Protocol) クライアント ツールは、開発者やセキュリティ プロフェッショナルが脆弱性の MCP サーバーをテストするのに役立つように設計されています。 このツールは、MCP サーバーに接続し、利用可能なツールを一覧表示し、サーバーの設定に関する情報を提供できます。 - MCPサーバーからMCPサーバーに接続 - MCPサーバーから利用可能なすべてのツールを一覧表示 - MCPサーバー上でツールを呼び出して実行 - 外部サーバー情報を取得する - 🛡️脆弱性テストのためのセキュリティ重視の設計 - 自動化のためのJSON出力サポート - 複数の輸送タイプ(stdio、SSE、HTTPS)のサポート インストール後、mcp-clientコマンドはグローバルで利用できます。 次にnpmスクリプトを使用して直接実行します。 プロジェクトルートでMCPserver.jsonファイルを作成する(または --configオプションを使用してカスタムパスを指定します)。 設定形式は、MCP 規格に従います。 - : サーバーを実行するコマンド(例:.
概要(AI 翻訳)
MCP (Model Context Protocol) クライアント ツールは、開発者やセキュリティ プロフェッショナルが脆弱性の MCP サーバーをテストするのに役立つように設計されています。 このツールは、MCP サーバーに接続し、利用可能なツールを一覧表示し、サーバーの設定に関する情報を提供できます。
##特徴
- 設定ファイルからMCPサーバーに接続する
- MCP サーバーから利用可能なすべてのツールを一覧表示
- ☑ MCP サーバーのツールの呼び出しと実行
- 複数のサーバー情報を入手
- ️️ 脆弱性テストのためのセキュリティ重視の設計
- 自動化のためのJSON出力サポート
- 複数の輸送タイプ(stdio、SSE、HTTP/HTTPS)のサポート
インストール
###グローバルにインストール (推奨)
インストール後、[mcp-client]コマンドはグローバルで利用できます。
###開発のためにローカルにインストール
次にnpmスクリプトを使用して直接実行します。
要件
- Node.js >= 18.0.0
- npm >= 9.0.0
設定
プロジェクトルートで[MCPserver.jsonファイルを作成する(または--config]オプションを使用してカスタムパスを指定します)。 設定形式は、MCP 規格に従います。
設定オプション
- command: サーバを実行するコマンド (例: “node”, “npx”, “python”)
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP Client Tester
A generic MCP (Model Context Protocol) client tool designed to help developers and security professionals test MCP servers for vulnerabilities. This tool can connect to MCP servers, list available tools, and provide information about server configurations.
Features
- 🔌 Connect to MCP servers via configuration file
- 📋 List all available tools from MCP servers
- 🔧 Call and execute tools on MCP servers
- 🔍 Get detailed server information
- 🛡️ Security-focused design for vulnerability testing
- 📊 JSON output support for automation
- 🔄 Support for multiple transport types (stdio, SSE, HTTP/HTTPS)
Installation
Install Globally (Recommended)
npm install -g mcp-client-tester
After installation, the mcp-client command will be available globally:
mcp-client list
mcp-client servers
mcp-client info
mcp-client call
Install Locally for Development
git clone
cd cursor-mcp-client
npm install
Then use via npm scripts or run directly:
# Via npm scripts
npm start -- list
# Or run directly
node src/cli.js list
Requirements
- Node.js >= 18.0.0
- npm >= 9.0.0
Configuration
Create an MCPserver.json file in your project root (or specify a custom path using the --config option). The configuration format follows the MCP standard:
{
"mcpServers": {
"example-server": {
"command": "npx",
"args": ["-y", "@example/mcp-server"],
"env": {
"API_KEY": "your-api-key"
}
},
"sse-server": {
"transport": "sse",
"url": "http://localhost:3000/sse"
},
"http-server": {
"transport": "http",
"url": "https://api.example.com/mcp",
"apiKey": "your-api-key-here"
},
"http-server-with-headers": {
"transport": "http",
"url": "https://api.example.com/mcp",
"http": {
"headers": {
"Authorization": "Bearer your-token-here",
"X-Custom-Header": "value"
}
}
},
"oauth-server": {
"transport": "http",
"url": "https://api.example.com/mcp",
"oauth": {
"clientId": "your-client-id",
"clientSecret": "your-client-secret",
"redirectUrl": "http://localhost:8080/callback",
"tokenEndpointAuthMethod": "client_secret_basic",
"grantTypes": ["authorization_code"],
"responseTypes": ["code"]
}
}
}
}
Configuration Options
- command: The command to run the server (e.g., “node”, “npx”, “python”)
- args: Array of arguments to pass to the command
- env: Environment variables to set for the server process
- transport: Transport type (“stdio” default, “sse” for Server-Sent Events, “http” or “https” for HTTP/HTTPS)
- url: URL for SSE or HTTP transports
- apiKey: API key for HTTP transport (will be added as
Authorization: Bearerheader)
インストール
npx -y @example/mcp-server設定
{
"mcpServers": {
"example-server": {
"command": "npx",
"args": ["-y", "@example/mcp-server"],
"env": {
"API_KEY": "your-api-key"
}
},
"sse-server": {
"transport": "sse",
"url": "http://localhost:3000/sse"
},
"http-server": {
"transport": "http",
"url": "https://api.example.com/mcp",
"apiKey": "your-api-key-here"
},
"http-server-with-headers": {
"transport": "http",
"url": "https://api.example.com/mcp",
"http": {
"headers": {
"Authorization": "Bearer your-token-here",
"X-Custom-Header": "value"
}
}
},
"oauth-server": {
"transport": "http",
"url": "https://api.example.com/mcp",
"oauth": {
"clientId": "your-client-id",
"clientSecret": "your-client-secret",
"redirectUrl": "http://localhost:8080/callback",
"tokenEndpointAuthMethod": "client_secret_basic",
"grantTypes": ["authorization_code"],
"responseTypes": ["code"]
}
}
}
}