template-mcp-server
0
The project aims to establish an MCP Server termed as 'reverse-mcp-server', featuring a tool for reversing strings and allowing a range of additional tools for more extensive functionalities.
MCP Server
Initial Execute Instruction Set
Warning: This will run claude in YOLO mode with no interactions.
# 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