反向字符串工具

MCP服务器提供的反向字符串处理工具,支持多种命令行工具集成。

  • by danielscholl
  • 本地部署
  • 更新于
在 GitHub 查看 danielscholl/template-mcp-server

使用说明

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