Skip to main content

Getting Started

This guide walks you through setting up a CTP tool development environment.

Prerequisites

  • Node.js 18+ or 20+
  • npm, pnpm, or yarn
  • TypeScript 5.0+

Project Setup

1. Create a New Project

2. Install Dependencies

3. Configure TypeScript

Create tsconfig.json:

4. Project Structure

Create Your First Tool

Create src/tools/text-reverser.ts:

Register Tools

Create src/registry.ts:

Test Your Tool

Create src/index.ts:
Run with:
Expected output:

Next Steps

Creating Tools

Learn tool creation patterns

Validation

Input and output validation

Discovery Docs

Generate OpenAPI and MCP manifests

View Examples

Reference implementations