When to Use Code Mode
Use MCP Tools When
- Interactive discovery and debugging
- Simple one-off operations
- Learning tool schemas
- AI agent-assisted work
Use Code Mode When
- Batch processing (100+ operations)
- Scheduled jobs and cron tasks
- CI/CD pipelines
- Complex data transformations
- Production applications
Installation
- Python
- TypeScript
Quick Start
- Python
- TypeScript
Patterns
Simple Script
One-off data operations:Batch Processing with Error Handling
Process large datasets with retry logic:Deploy as Custom Tool
Turn your script into a deployed API endpoint:Error Handling
Full API Reference
For complete method signatures, parameters, and return types, see:Python SDK Reference
Every method, every parameter
TypeScript SDK Reference
Every method, every parameter