关于 MCP Server
MCP Server 是用于搭建 MCP 服务的模板模式。README 展示了创建名为 `reverse-mcp-server` 的服务的初始执行指令,并提示其会以无交互的 YOLO 模式运行 claude。
主要功能
- 01MCP 服务搭建模板模式
- 02初始执行指令
- 03可配置服务名称和工具规格
适用场景
- 01启动新的 MCP 服务项目
- 02设定服务名称和初始工具
MCP 相关
该项目是用于搭建 MCP 服务的模板。README 未说明初始设置以外的服务能力。
配置
本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。
暂未收录安装方式
我们还没有获取到这个服务的安装包或远程地址,请按项目 README 中的说明安装。
工具
还没有获取到工具列表
本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。
详细介绍
MCP 服务
初始执行指令集
警告:这将以 YOLO 模式运行 claude,且不会进行任何交互。
# Define the Name of the MCP Server we are creating.
MCP_SERVER_NAME="reverse-mcp-server"
# Define the Spec for the initial tool we are making.
DETAILS=$(cat <<EOF
<mcpServerName>$MCP_SERVER_NAME</mcpServerName>
<toolSpec>
<toolsToExpose>
<tool>
<name>reverse_tool</name>
<description>String Reverse</description>
</tool>
</toolsToExpose>
</toolSpec>
EOF
)
# Define the tools that are allowed.
ALLOWED_TOOLS=(
"Bash"
"Edit"
"View"
"GlobTool"
"GrepTool"
"LSTool"
"BatchTool"
"AgentTool"
"WebFetchTool"
"Write"
)
# Establish the prompt
AI_PROMPT="
- Run git ls-files and eza --git-ignore --tree to understand the context of the project.
- Implement the Spec with:
$DETAILS
"
# Execute the Agent
claude -p $AI_PROMPT --allowedTools $ALLOWED_TOOLS --json
评论
支持 Markdown
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。