🔌 Integration Methods
| REST API | TypeScript SDK | MCP Server | |
|---|---|---|---|
| Package | None (HTTP) | @tangogroup/forge-sdk | @tangogroup/forge-mcp |
| Best for | Any language, CI/CD scripts, one-off calls | TypeScript/JavaScript applications, backend services | AI agents, LLM tool use, autonomous workflows |
| Auth | Bearer token header | Configured in constructor | Environment variables |
| Type safety | None (bring your own) | Full TypeScript types | N/A (MCP protocol) |
| Dependencies | None | Zero (native fetch) | @modelcontextprotocol/sdk, zod |
| Environments | Anywhere with HTTP | Node.js, browsers, edge runtimes | Node.js (stdio transport) |
| Coverage | All 42+ endpoints | All endpoints | 17 tools + 8 resources |
🎯 Choose Your Integration
REST API
Direct HTTP calls to the Platform API. Use from any language or environment. Full OpenAPI 3.1 spec with auto-generated endpoint documentation.
TypeScript SDK
Zero-dependency typed client for Node.js and browsers. Covers all endpoints with
ForgeClient methods, typed responses, and structured error handling.MCP Server
Model Context Protocol server that exposes Forge capabilities as tools and resources. Lets AI agents read platform state and take actions through their native tool-use interface.
⚡ Quick Comparison
REST API
Use the REST API when you need maximum flexibility, are working in a non-TypeScript language, or need a single HTTP call from a script or pipeline.TypeScript SDK
Use the SDK when you are building a TypeScript application and want typed responses, structured errors, and a clean method interface.MCP Server
Use the MCP server when you want AI agents to interact with Forge through the Model Context Protocol. The server exposes tools (for actions) and resources (for reads) that agents invoke through their standard tool-use interface.🤔 When to Use What
- Backend Service
- CI/CD Pipeline
- AI Agent
- Dashboard / Frontend
Building a backend service that manages agents, triggers workflows, or queries run status programmatically.Recommended: TypeScript SDKThe SDK gives you typed methods for every endpoint, structured error handling via
ForgeApiError, and zero additional dependencies.
