关于 Swiss Army Knife for MCP Servers
Swiss Army Knife for MCP Servers(MCP Tools)是一个命令行工具,用于通过 stdio 和 HTTP 传输与 MCP 服务交互。它可以发现、调用和管理工具、资源与提示词,并提供 mock 服务与代理模式,适合开发和调试 MCP 服务的开发者。
主要功能
- 01列出并调用工具、资源与提示词
- 02支持 stdio、HTTP SSE 与 Streamable HTTP
- 03多种输出格式:表格、JSON 与美化 JSON
- 04交互式命令行 shell
- 05基于浏览器的 Web 界面
适用场景
- 01在命令行中快速查看 MCP 服务提供的工具
- 02在脚本中调用 MCP 工具并处理 JSON 输出
- 03调试和测试 MCP 服务的响应
MCP 相关
这是一个用于与 MCP 服务通信的客户端命令行工具,可连接任意兼容 MCP 的服务并调用其工具、资源与提示词。
配置
本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。
docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-serverGITHUB_PERSONAL_ACCESS_TOKEN密钥本地服务需要在你的电脑上安装运行环境(如 Node.js 18+)。各客户端的配置文件位置不同,请参考客户端文档。
ghcr.io/github/github-mcp-serverstdio工具
本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。
详细介绍
MCP 服务的瑞士军刀
用于与 MCP(Model Context Protocol)服务交互的全能命令行界面。
发现、调用和管理任意兼容 MCP 的服务提供的工具、资源和提示词。
支持多种传输方式和输出格式,并提供强大的模拟服务和代理服务功能。
目录
概述
MCP Tools 提供了一个功能多样的 CLI,用于处理 Model Context Protocol(MCP)服务。它支持:
- 发现和调用 MCP 服务提供的工具
- 访问和使用 MCP 服务公开的资源
- 创建模拟服务,用于测试客户端应用
- 将 MCP 请求代理到 Shell 脚本,以便轻松扩展
- 创建交互式 Shell,以探索和使用 MCP 服务
- 创建支持 TypeScript 的新 MCP 项目脚手架
- 以多种样式格式化输出(JSON、美化排版、表格)
- 防护并限制对特定工具和资源的访问
- 支持所有传输方式(HTTP、stdio)
安装
使用 Homebrew(适用于 macOS)
brew tap f/mcptools
brew install mcp
❕ 二进制文件安装为
mcp,也可以通过mcpt访问,以避免与其他可能使用mcp命令名称的工具冲突。
从源代码安装(适用于 Windows 和 GNU/Linux)
go install github.com/f/mcptools/cmd/mcptools@latest
❕ 二进制文件将安装为
mcptools,也可以为方便起见将其设为mcpt的别名。![]()
Windows 11 运行示例
快速入门
开始使用 MCP Tools 最简单的方式是连接到 MCP 服务并列出可用工具:
# List all available tools from a filesystem server
mcp tools npx -y @modelcontextprotocol/server-filesystem ~
# Call a specific tool
mcp call read_file --params '{"path":"README.md"}' npx -y @modelcontextprotocol/server-filesystem ~
# Open an interactive shell
mcp shell npx -y @modelcontextprotocol/server-filesystem ~
功能
MCP Tools 支持丰富的功能,可用于与 MCP 服务交互:
Usage:
mcp [command]
Available Commands:
version Print the version information
tools List available tools on the MCP server
resources List available resources on the MCP server
prompts List available prompts on the MCP server
call Call a tool, resource, or prompt on the MCP server
get-prompt Get a prompt on the MCP server
read-resource Read a resource on the MCP server
shell Start an interactive shell for MCP commands
web Start a web interface for MCP commands
mock Create a mock MCP server with tools, prompts, and resources
proxy Proxy MCP tool requests to shell scripts
alias Manage MCP server aliases
configs Manage MCP server configurations
new Create a new MCP project component
help Help about any command
completion Generate the autocompletion script for the specified shell
Flags:
-f, --format string Output format (table, json, pretty) (default "table")
-h, --help help for mcp
-p, --params string JSON string of parameters to pass to the tool (for call command) (default "{}")
Use "mcp [command] --help" for more information about a command.
传输选项
MCP Tools 支持多种传输方式,可用于与 MCP 服务通信:
Stdio 传输
使用 stdin/stdout 通过 JSON-RPC 2.0 与 MCP 服务通信。这适用于实现 MCP 协议的命令行工具。
mcp tools npx -y @modelcontextprotocol/server-filesystem ~
HTTP SSE 传输
使用 HTTP 和 Server-Sent Events(SSE)通过 JSON-RPC 2.0 与 MCP 服务通信。这适用于连接实现旧版 MCP 协议的远程服务。URL 以 /sse 结尾时会自动检测传输方式。
mcp tools http://localhost:3001/sse
# Example: Use the everything sample server
# docker run -p 3001:3001 --rm -it tzolov/mcp-everything-server:v1
注意: HTTP SSE 目前仅支持 MCP 协议版本 2024-11-05。
Streamable HTTP 传输(推荐)
通过 Streamable HTTP 使用 JSON-RPC 2.0 与 MCP 服务通信。这是连接实现 MCP 协议的远程服务的现代推荐方式。它支持流式响应和简单的请求/响应模式。这是 HTTP/HTTPS URL 的默认传输方式。
# Default transport for HTTP URLs
mcp tools http://localhost:3000
# Streamable HTTP transport (auto-detected from URL)
mcp tools http://localhost:3000
# Examples with remote servers
mcp tools https://api.example.com/mcp
mcp tools https://ne.tools
Streamable HTTP 的优势:
- 会话管理:支持使用会话 ID 的有状态连接
- 恢复能力:可重新连接并恢复中断的会话(服务器支持时)
- 响应灵活:支持流式响应和直接 JSON 响应
- 现代协议:采用最新的 MCP 传输规范
输出格式
MCP Tools 支持三种输出格式,以满足不同需求:
表格格式(默认)
mcp tools npx -y @modelcontextprotocol/server-filesystem ~
默认格式现在以彩色手册页样式显示工具:
read_file(path:str)
Read the complete contents of a file from the file system.
read_multiple_files(paths:str[])
Read the contents of multiple files simultaneously.
list_dir(path:str)
Lists the contents of a directory.
write_file(path:str, content:str)
Writes content to a file.
grep_search(pattern:str, [excludePatterns:str[]])
Search files with pattern.
edit_file(edits:{newText:str,oldText:str}[], path:str)
Edit a file with multiple text replacements
该格式的主要特性:
- 函数名称以粗体青色显示
- 必需参数以绿色显示(例如,
path:str) - 可选参数以黄色方括号显示(例如,
[limit:int]) - 数组类型以
[]后缀标示(例如,str[]) - 对象类型在花括号中显示其属性(例如,
{prop1:type1,prop2:type2}) - 嵌套对象以递归方式显示(例如,
{notifications:{enabled:bool,sound:bool}}) - 类型名称会缩短以提高可读性(例如,用
str代替string,用int代替integer) - 描述会缩进并以灰色显示
- 参数顺序保持一致,必需参数列在前面
JSON 格式(紧凑)
mcp tools --format json npx -y @modelcontextprotocol/server-filesystem ~
美化 JSON 格式(缩进)
mcp tools --format pretty npx -y @modelcontextprotocol/server-filesystem ~
命令
MCP Tools 包含多个用于与 MCP 服务交互的核心命令:
列出可用工具
mcp tools npx -y @modelcontextprotocol/server-filesystem ~
列出可用资源
mcp resources npx -y @modelcontextprotocol/server-filesystem ~
列出可用提示词
mcp prompts npx -y @modelcontextprotocol/server-filesystem ~
调用工具
mcp call read_file --params '{"path":"/path/to/file"}' npx -y @modelcontextprotocol/server-filesystem ~
调用资源
mcp call resource:test://static/resource/1 npx -y @modelcontextprotocol/server-everything -f json | jq ".contents[0].text"
或
mcp read-resource test://static/resource/1 npx -y @modelcontextprotocol/server-everything -f json | jq ".contents[0].text"
调用提示词
mcp get-prompt simple_prompt npx -y @modelcontextprotocol/server-everything -f json | jq ".messages[0].content.text"
查看服务器日志
使用会向服务器发起调用的客户端命令时,可以添加 --server-logs 标志,以查看与请求相关的服务器日志:
# View server logs when listing tools
mcp tools --server-logs npx -y @modelcontextprotocol/server-filesystem ~
输出:
[>] Secure MCP Filesystem Server running on stdio
[>] Allowed directories: [ '/Users/fka/' ]
read_file(path:str)
Read the complete contents of a file from the file system.
read_multiple_files(paths:str[])
Read the contents of multiple files simultaneously.
... and the other tools available on this server
执行这些命令时,这有助于调试或了解服务器端发生的情况。
交互式 Shell
交互式 Shell 模式允许你在单个会话中运行多个 MCP 命令:
mcp shell npx -y @modelcontextprotocol/server-filesystem ~
这会打开一个交互式 Shell,并提供以下功能:
mcp tools shell
connected to: npx -y @modelcontextprotocol/server-filesystem /Users/fka
mcp > Type '/h' for help or '/q' to quit
mcp > tools
read_file(path:str, [limit:int], [offset:int])
Reads a file from the filesystem
list_dir(path:str)
Lists directory contents
grep_search(pattern:str, [excludePatterns:str[]])
Search files with pattern
edit_file(edits:{newText:str,oldText:str}[], path:str)
Edit a file with multiple text replacements
# Direct tool calling is supported
mcp > read_file {"path":"README.md"}
...content of README.md...
# Calling a tool with complex object parameters
mcp > edit_file {"path":"main.go","edits":[{"oldText":"foo","newText":"bar"}]}
...result of edit operation...
# Get help
mcp > /h
MCP Shell Commands:
tools List available tools
resources List available resources
prompts List available prompts
call <entity> [--params '{...}'] Call a tool, resource, or prompt
format [json|pretty|table] Get or set output format
Special Commands:
/h, /help Show this help
/q, /quit, exit Exit the shell
Web 界面
MCP Tools 提供 Web 界面,可通过基于浏览器的 UI 与 MCP 服务交互:
# Start a web interface for a filesystem server on default port (41999)
mcp web npx -y @modelcontextprotocol/server-filesystem ~
# Use a custom port
mcp web --port 8080 docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
# Use SSE
mcp web https://ne.tools
Web 界面包括:
- 列出所有可用工具、资源和提示词的侧边栏
- 基于表单和基于 JSON 的参数编辑
- 格式化和原始 JSON 响应视图
- 根据工具架构自动生成的交互式参数表单
- 支持复杂参数类型(数组、对象、嵌套结构)
- 用于调用工具的直接 API 访问
启动后,可在浏览器中打开 http://localhost:41999(或自定义端口)访问该界面。
MCP Tools 提供脚手架功能,可使用 TypeScript 快速创建新的 MCP 服务:
mkdir my-mcp-server
cd my-mcp-server
# Create a project with specific components
mcp new tool:calculate resource:file prompt:greet
# Create a project with a specific SDK (currently only TypeScript/ts supported)
mcp new tool:calculate --sdk=ts
# Create a project with a specific transport type
mcp new tool:calculate --transport=stdio
mcp new tool:calculate --transport=sse
脚手架会创建完整的项目结构,其中包括:
- 使用所选传输方式(stdio 或 SSE)配置服务
- 配置采用现代 ES 模块的 TypeScript
- 使用正确的 MCP 接口实现组件
- 自动连接导入项并完成初始化
完成脚手架搭建后,即可构建并运行 MCP 服务:
# Install dependencies
npm install
# Build the TypeScript code
npm run build
# Test the server with MCP Tools
mcp tools node build/index.js
项目模板存储在以下位置之一:
- 本地
./templates/目录 - 用户主目录:
~/.mcpt/templates/ - Homebrew 安装路径(
/opt/homebrew/Cellar/mcp/v#.#.#/templates)
通过 Homebrew 安装时,模板会自动安装到主目录中。但如果通过源码安装,则需要运行 make install-templates。
服务别名
MCP Tools 支持保存和复用服务命令,并为其设置易记的别名:
# Add a new server alias
mcp alias add myfs npx -y @modelcontextprotocol/server-filesystem ~/
# List all registered server aliases
mcp alias list
# Remove a server alias
mcp alias remove myfs
# Use an alias with any MCP command
mcp tools myfs
mcp call read_file --params '{"path":"README.md"}' myfs
服务别名存储在 $HOME/.mcpt/aliases.json 中,让你无需反复输入冗长命令,即可方便地使用常用 MCP 服务。
大模型应用配置管理
MCP Tools 提供强大的配置管理系统,帮助你在多个应用中管理 MCP 服务配置:
🚧 目前仅支持 macOS。
# Scan for MCP server configurations across all supported applications
mcp configs scan
# List all configurations (alias for configs view --all)
mcp configs ls
# View specific configuration by alias
mcp configs view vscode
# Add or update a server in a configuration
mcp configs set vscode my-server npm run mcp-server
mcp configs set cursor my-api https://api.example.com/mcp --headers "Authorization=Bearer token"
# Add to multiple configurations at once
mcp configs set vscode,cursor,claude-desktop my-server npm run mcp-server
# Remove a server from a configuration
mcp configs remove vscode my-server
# Create an alias for a custom config file
mcp configs alias myapp ~/myapp/config.json
# Synchronize and merge configurations from multiple sources
mcp configs sync vscode cursor --output vscode --default interactive
# Convert a command line to MCP server JSON configuration format
mcp configs as-json mcp proxy start
# Output: {"command":"mcp","args":["proxy","start"]}
# Convert a URL to MCP server JSON configuration format
mcp configs as-json https://api.example.com/mcp --headers "Authorization=Bearer token"
# Output: {"url":"https://api.example.com/mcp","headers":{"Authorization":"Bearer token"}}
配置通过 $HOME/.mcpt/configs.json 中的中央注册表进行管理,并为以下应用预设了别名:
- VS Code 和 VS Code Insiders
- Windsurf
- Cursor
- Claude Desktop 和 Claude Code
系统会按来源分组,以彩色格式自动显示服务配置,包括命令行或 URL 信息、标头和环境变量。
mcp configs scan 命令会查找以下应用中的 MCP 服务配置:
- Visual Studio Code
- Visual Studio Code Insiders
- Windsurf
- Cursor
- Claude Desktop
示例输出:
VS Code Insiders
GitHub (stdio):
docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
Claude Desktop
Proxy (stdio):
mcp proxy start
My Files (stdio):
npx -y @modelcontextprotocol/server-filesystem ~/
附加功能
一次性将官方 GitHub MCP 服务添加到 Windsurf、Cursor 和 VS Code:
mcp configs set windsurf,cursor,vscode GitHub \
--env "GITHUB_PERSONAL_ACCESS_TOKEN=github_pat_xxx" \
docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
服务模式
MCP Tools 既可作为客户端运行,也可作为服务运行,并提供两种服务模式:
模拟服务模式
模拟服务模式会创建一个仿真的 MCP 服务,用于测试客户端,无需实现完整服务:
# Create a mock server with a simple tool
mcp mock tool hello_world "A simple greeting tool"
# Create a mock server with multiple entity types
mcp mock tool hello_world "A greeting tool" \
prompt welcome "A welcome prompt" "Hello {{name}}, welcome to {{location}}!" \
resource docs://readme "Documentation" "Mock MCP Server\nThis is a mock server"
模拟服务的功能:
- 完整的初始化握手
- 使用标准化架构列出工具
- 以简单响应调用工具
- 列出并读取资源
- 列出并获取提示词,支持替换参数
- 将详细的请求/响应日志记录到
~/.mcpt/logs/mock.log
使用提示词模板
对于提示词,系统会自动将 {{double_braces}} 中的任何文本识别为参数:
# Create a prompt with name and location arguments
mcp mock prompt greeting "Greeting template" "Hello {{name}}! Welcome to {{location}}."
客户端请求提示词时,可以提供这些参数的值,系统会将其替换到响应中。
代理模式
代理模式允许你将 Shell 脚本或内联命令注册为 MCP 工具,无需编写代码即可轻松扩展 MCP 功能:
# Register a shell script as an MCP tool
mcp proxy tool add_operation "Adds a and b" "a:int,b:int" ./examples/add.sh
# Register an inline command as an MCP tool
mcp proxy tool add_operation "Adds a and b" "a:int,b:int" -e 'echo "total is $a + $b = $(($a+$b))"'
# Register an inline command as an MCP tool with optional parameter
mcpt proxy tool add_operation "Adds a and b with optional result msg" "a:int,b:int,[msg:string]" -e 'echo "$msg$a + $b = $(($a+$b))"'
# Unregister a tool
mcp proxy tool --unregister add_operation
# Start the proxy server
mcp proxy start
使用代理服务运行 mcp tools localhost:3000,即可查看已注册的工具及其参数:
add_operation(a:int, b:int)
Adds a and b
count_files(dir:str, [include:str[]])
Counts files in a directory with optional filters
这种新格式清晰地展示了每个工具接受的参数,让工具的用法更易理解。数组以 [] 后缀表示(例如 str[]),类型名称也经过缩写,便于阅读。
工作原理
- 使用工具名称、描述和参数规范注册 Shell 脚本或内联命令
- 启动代理服务,由其实现 MCP 协议
- 调用工具时,参数会作为环境变量传递给脚本/命令
- 脚本/命令的输出会作为工具响应返回
- 如果脚本输出的是 Base64 编码的 PNG 图像(以
data:image/png;base64,为前缀),则会作为 ImageContent 对象返回。
示例脚本和命令
添加数字(add.sh):
#!/bin/bash
# Get values from environment variables
if [ -z "$a" ] || [ -z "$b" ]; then
echo "Error: Missing required parameters 'a' or 'b'"
exit 1
fi
# Perform the addition
result=$(($a + $b))
echo "The sum of $a and $b is $result"
生成二维码
此示例需要安装 qrencode 等工具。
# Register a tool to generate a QR code
mcp proxy tool qrcode "Generates a QR code" "text:string" \
-e 'echo -e "data:image/png;base64,$(qrencode -t png -o - "$text" | base64 -w 0)"'
内联命令示例:
# Simple addition
mcp proxy tool add_op "Adds given numbers" "a:int,b:int" -e 'echo "total is $a + $b = $(($a+$b))"'
# Customized greeting
mcp proxy tool greet "Greets a user" "name:string,greeting:string,formal:bool" -e '
if [ "$formal" = "true" ]; then
title="Mr./Ms."
echo "${greeting:-Hello}, ${title} ${name}. How may I assist you today?"
else
echo "${greeting:-Hello}, ${name}! Nice to meet you!"
fi
'
# File operations
mcp proxy tool count_lines "Counts lines in a file" "file:string" -e "wc -l < \"$file\""
配置和日志记录
- 工具在
~/.mcpt/proxy_config.json中注册 - 代理服务会将所有请求和响应记录到
~/.mcpt/logs/proxy.log - 使用
--unregister从配置中移除工具
防护模式
防护模式可根据模式匹配限制对特定工具、提示词和资源的访问。以下情况适合使用此模式:
- 限制可能存在危险的操作(写入或删除文件等)
- 限制 AI 助手或应用程序的功能
- 为敏感系统提供只读访问权限
- 创建用于测试或演示的沙盒环境
注意: 防护模式目前仅适用于 STDIO 传输(命令执行),不适用于 HTTP 传输。
# Allow only file reading operations, deny file modifications
mcp guard --allow 'tools:read_* --deny tools:write_*,create_*,delete_*' npx -y @modelcontextprotocol/server-filesystem ~
# Permit only a single specific tool
mcp guard --allow 'tools:search_files' npx -y @modelcontextprotocol/server-filesystem ~
# Restrict by both tool type and prompt type
mcp guard --allow 'tools:read_*,prompts:system_*' --deny tools:execute_* npx -y @modelcontextprotocol/server-filesystem ~
# Using with aliases
mcp guard --allow 'tools:read_*' fs # Where 'fs' is an alias for a filesystem server
工作原理
防护命令的工作方式如下:
- 创建一个位于客户端与 MCP 服务之间的代理
- 拦截并筛选发往
tools/list、prompts/list和resources/list的所有请求 - 阻止调用与允许模式不匹配的工具、提示词或资源
- 阻止对已筛选资源、工具和提示词的请求
- 将其他所有请求和响应原样传递
模式匹配
模式使用简单的 glob 语法,以 * 作为通配符:
tools:read_*- 匹配所有以「read_」开头的工具tools:*file*- 匹配名称中包含「file」的任何工具prompts:system_*- 匹配所有以「system_」开头的提示词
对于每种实体类型,可以指定:
--allow 'pattern1,pattern2,...'- 仅允许与这些模式匹配的实体--deny 'pattern1,pattern2,...'- 移除与这些模式匹配的实体
如果未指定允许模式,则默认允许所有实体(与拒绝模式匹配的实体除外)。
应用程序集成
你可以使用防护命令来保护应用程序中的 MCP 配置。例如,要将文件系统服务限制为仅允许读取操作,请将:
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/fka/Desktop"
]
}
改为:
"filesystem": {
"command": "mcp",
"args": [
"guard", "--deny", "tools:write_*,create_*,move_*,delete_*",
"npx", "-y", "@modelcontextprotocol/server-filesystem",
"/Users/fka/Desktop"
]
}
这样可以通过阻止任何修改操作,提供文件系统的只读视图。
你也可以在配置中使用防护命令的别名:
"filesystem": {
"command": "mcp",
"args": [
"guard", "--allow", "tools:read_*,list_*,search_*",
"fs" // Where 'fs' is an alias for the filesystem server
]
}
这样可以让配置更加简洁,更易于维护。
日志记录
- 防护操作会记录到
~/.mcpt/logs/guard.log - 日志包含所有请求、响应和筛选决策
- 使用
tail -f ~/.mcpt/logs/guard.log实时监控活动
示例
基本用法
列出文件系统服务中的工具:
mcp tools npx -y @modelcontextprotocol/server-filesystem ~
以格式美观的 JSON 输出调用工具:
mcp call read_file --params '{"path":"README.md"}' --format pretty npx -y @modelcontextprotocol/server-filesystem ~
使用防护模式筛选可用工具:
# Only allow file search functionality
mcp guard --allow tools:search_files npx -y @modelcontextprotocol/server-filesystem ~
# Create a read-only environment
mcp guard --deny tools:write_*,delete_*,create_*,move_* npx -y @modelcontextprotocol/server-filesystem ~
Streamable HTTP 用法
创建并运行本地 streamable HTTP 服务:
# Create a new MCP server with SSE transport (streamable HTTP not available in scaffolding)
mkdir my-sse-server && cd my-sse-server
mcp new tool:example_tool --transport=sse
# Install dependencies and build
npm install && npm run build
# Start the server (will run SSE transport)
npm start
在另一个终端中连接到本地服务:
# Connect to local SSE server (adjust URL based on your server's SSE endpoint)
mcp tools http://localhost:3000/sse
# Call a tool on the local server
mcp call example_tool --params '{"input": "test"}' http://localhost:3000/sse
# Use with different output formats
mcp tools --format pretty http://localhost:3000/sse
连接到远程 streamable HTTP 服务:
# Connect to a remote MCP server
mcp tools https://api.example.com/mcp
# Use SSE transport for legacy servers (auto-detected from /sse path)
mcp tools http://legacy-server.com/sse
# Example with authentication headers (when supported)
mcp tools https://authenticated-mcp-server.com
脚本集成
使用简单的 shell 脚本运行代理模式:
# 1. Create a simple shell script for addition
cat > add.sh << 'EOF'
#!/bin/bash
# Get values from environment variables
if [ -z "$a" ] || [ -z "$b" ]; then
echo "Error: Missing required parameters 'a' or 'b'"
exit 1
fi
result=$(($a + $b))
echo "The sum of $a and $b is $result"
EOF
# 2. Make it executable
chmod +x add.sh
# 3. Register it as an MCP tool
mcp proxy tool add_numbers "Adds two numbers" "a:int,b:int" ./add.sh
# 4. In one terminal, start the proxy server
mcp proxy start
# 5. In another terminal, you can call it as an MCP tool
mcp call add_numbers --params '{"a":5,"b":3}' --format pretty
调试
查看日志以调试代理或模拟服务:
# For the mock server logs
tail -f ~/.mcpt/logs/mock.log
# For the proxy server logs
tail -f ~/.mcpt/logs/proxy.log
# To watch all logs in real-time (on macOS/Linux)
find ~/.mcpt/logs -name "*.log" -exec tail -f {} \;
贡献
欢迎贡献!有关如何提交拉取请求、报告问题和参与项目的详情,请参阅我们的贡献指南。
路线图
计划在未来版本中推出以下功能:
- 身份验证:支持安全的身份验证机制
许可证
本项目采用 MIT 许可证。
致谢
感谢 Fatih Taskiran 设计徽标。
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。