template-mcp-server

template-mcp-server

3.2

If you are the rightful owner of template-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The MCP Server is designed to facilitate the execution of model context protocols, allowing for seamless integration and interaction with various tools and platforms.

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