SDK Reference
TypeScript SDK Reference
Installation
npm install @devcaster/corepnpm add @devcaster/coreyarn add @devcaster/corebun add @devcaster/coreClasses
| Class | Description |
|---|---|
Devcaster | This is the core class for Devcaster. |
AuthConfigs | AuthConfigs class |
ConnectedAccounts | ConnectedAccounts class |
MCP | MCP (Model Control Protocol) class |
Toolkits | Toolkits class |
Tools | This class is used to manage tools in the Devcaster SDK. |
Triggers | Trigger (Instance) class |
Quick Start
import { Devcaster } from '@devcaster/core';
const devcaster = new Devcaster({
apiKey: process.env.DEVCASTER_API_KEY
});
// Get tools for a user
const tools = await devcaster.tools.get('user-123', {
toolkits: ['github']
});
// Execute a tool
const result = await devcaster.tools.execute('GITHUB_GET_REPOS', {
userId: 'user-123',
arguments: { owner: 'devcaster' }
});