Skip to content

danielscholl/template-mcp-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Template Pattern for Bootstrapping a MCP Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published