What You Will Learn
After this article, your AI client should call tools directly instead of returning plain text only.
Prerequisites
- Python and IDE setup already completed
pipis available in your terminal
Step 1: Install MCP Command
pip install "cwprep[mcp]"Then verify:
cwprep-mcp --helpStep 2: Configure MCP Server
Add this to your MCP client config:
{
"mcpServers": {
"cwprep": {
"command": "cwprep-mcp",
"args": []
}
}
}cwtwb follows the same pattern with your local executable path.
Step 3: Restart Client and Validate
- Restart Claude/Cursor/VS Code plugin
- Confirm
cwprepandcwtwbappear in tool list - Run a minimal test prompt
Suggested prompt:
Use cwprep to generate a minimal flow:
read orders table, filter sales > 100, output a tfl file.Validation Checklist
- A real tool call is triggered
- Structured output or file path is returned
- Not just "I cannot access local tools"
Common Issues
command not found: cwprep-mcp: use absolute executable path- Invalid config: check JSON commas and quotes
- Tool not shown: restart client and check again
Next Step
Move to basic cases: script first, then MCP.