Back to guides
beginner9 min2026-04-29

03 | MCP Setup and First Connectivity Check

Connect cwprep and cwtwb to Claude/Cursor/VS Code and verify with a minimal tool call.

mcpcwprepcwtwbsetup

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
  • pip is available in your terminal

Step 1: Install MCP Command

pip install "cwprep[mcp]"

Then verify:

cwprep-mcp --help

Step 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 cwprep and cwtwb appear 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.