一个命令行接口,用于通过 stdio 和 HTTP 传输与 MCP(模型上下文协议)服务器交互。
概览
适用于MCP服务器的瑞士军刀 一个全面的命令行接口,用于与MCP(模型上下文协议)服务器交互。可发现、调用和管理任何兼容MCP服务器的工具、资源和提示符。支持多种传输方式、输出格式,并包含强大的模拟和代理服务器功能。 MCP 工具提供了一个多功能的 CLI 用于与模型上下文协议(MCP)服务器合作。它使您能够: - 发现和调用MCP服务器提供的工具 - 访问和利用MCP服务器暴露的资源 - 创建模拟服务器用于测试客户端应用 - 代理MCP请求到shell脚本以便便于扩展 - 创建交互式shell用于探索和使用MCP服务器 - 支持TypeScript的新MCP项目支架 - 以多种格式格式化输出(JSON、精美印刷、表格) - 保护并限制对特定工具和资源的访问 - 支持所有传输方式(HTTP、标准) ❕ 二进制以MCP形式安装,但也可以......
概述(AI 翻译)
MCP服务器用的瑞士军刀
一个全面的命令行界面,用于与MCP(模型上下文协议)服务器交互。
发现、调用并管理任何兼容MCP服务器的工具、资源和提示。
支持多种传输方式、输出格式,并包含强大的模拟服务器和代理服务器功能。
目录
- 概述
- MCP Inspector 与 MCP 工具的区别
- 安装
- 使用自制内容
- 来源
- 入门指南
- 特色
- 交通选择
- 输出格式
- 命令
- 互动壳牌
- 网页界面
- 脚手架项目
- 服务器别名
- LLM 应用配置管理
- 服务器模式
- 模拟服务器模式
- 代理模式
- 守卫模式
- 示例
- 基本用法
- 脚本集成
- 调试
- 贡献
- 路线图
- 许可证
概述
MCP 工具提供了一个多功能的 CLI 用于与模型上下文协议(MCP)服务器合作。它使您能够:
- MCP服务器提供的发现和调用工具
- 访问和利用MCP服务器暴露的资源
- 创建用于测试客户端应用的模拟服务器
- 向壳层脚本提供代理MCP请求,便于扩展
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Swiss Army Knife for MCP Servers
A comprehensive command-line interface for interacting with MCP (Model Context Protocol) servers.
Discover, call, and manage tools, resources, and prompts from any MCP-compatible server.
Supports multiple transport methods, output formats, and includes powerful mock and proxy server capabilities.
Table of Contents
- Overview
- Difference Between the MCP Inspector and MCP Tools
- Installation
- Getting Started
- Features
- Server Aliases
- LLM Apps Config Management
- Server Modes
- Examples
- Contributing
- Roadmap
- License
Overview
MCP Tools provides a versatile CLI for working with Model Context Protocol (MCP) servers. It enables you to:
- Discover and call tools provided by MCP servers
- Access and utilize resources exposed by MCP servers
- Create mock servers for testing client applications
- Proxy MCP requests to shell scripts for easy extensibility
- Create interactive shells for exploring and using MCP servers
- Scaffold new MCP projects with TypeScript support
- Format output in various styles (JSON, pretty-printed, table)
- Guard and restrict access to specific tools and resources
- Support all transport methods (HTTP, stdio)
Installation
Using Homebrew (for macOS)
brew tap f/mcptools
brew install mcp
❕ The binary is installed as
mcpbut can also be accessed asmcptto avoid conflicts with other tools that might use themcpcommand name.
From Source (for Windows and GNU/Linux)
go install github.com/f/mcptools/cmd/mcptools@latest
❕ The binary will be installed as
mcptoolswhen but can be aliased tomcptfor convenience.
安装
npx -y @modelcontextprotocol/server-filesystem /Users/fka/Desktop