mcp-tool-creator
MCP Tool Creator
Create a project-scoped MCP server that wraps docker compose exec commands into named tools.
The generated server lives in the project and is registered in .mcp.json.
Workflow
Five interactive steps. Ask for user input at each step before proceeding.
Step 1: Discover
Step 2: Design
Step 3: Generate
Python tool generation pattern:
@mcp.tool()
async def tool_name(param: str = "default") -> str:
"""Tool description.
Args:
param: Parameter description.
"""
return await run_docker_command("service", ["command", param])
Node.js tool generation pattern: Add to TOOLS array:
{
name: "tool_name",
description: "Tool description.",
inputSchema: {
type: "object",
properties: {
param: { type: "string", description: "Parameter description" },
},
required: [],
},
},
Add to HANDLERS map:
tool_name: async (args) => {
return await runDockerCommand("service", ["command", args.param || "default"]);
},
- Replace the
{{TOOLS_MARKER}}/{{HANDLERS_MARKER}}comments with generated code - For database tools with credentials, read defaults from docker-compose.yml env vars
- Show the generated file to the user for review
Step 4: Configure
Python server (system python3):
{
"mcpServers": {
"{{SERVER_NAME}}": {
"command": "python3",
"args": ["mcp-tools/server.py"]
}
}
}
Python server (venv, when system Python is locked):
{
"mcpServers": {
"{{SERVER_NAME}}": {
"command": "mcp-tools/.venv/bin/python",
"args": ["mcp-tools/server.py"]
}
}
}
Node.js server:
{
"mcpServers": {
"{{SERVER_NAME}}": {
"command": "node",
"args": ["mcp-tools/server.js"]
}
}
}
- Show the resulting
.mcp.jsonto the user
Step 5: Validate
Next steps:
- Restart Claude Code (or reload MCP servers)
- The following tools are now available: [list]
More from nicolas-codemate/claudecodeconfig
architect
Software architecture skill for designing high-quality implementation plans. Provides universal patterns, quality checklists, and architectural guidelines. Use during planning phase to ensure plans are well-structured, atomic, and follow best practices.
25pr-info
>-
1aep
Analyse-Explore-Plan methodology for thorough analysis and planning before development. Use when starting a new feature, investigating a problem, or needing to understand a codebase before making changes. Provides structured workflow with parallel exploration agents and clarification questions. Integrates with Architect skill for high-quality implementation plans.
1mentor-workflow
Coaching workflow orchestrator. Guides the developer through implementation without writing code.
1create-pr
>-
1analyze-ticket
Skill for analyzing ticket complexity and determining required workflow phases. Uses scoring system to classify tickets as SIMPLE, MEDIUM, or COMPLEX, which determines exploration depth and planning approach.
1