SDK Reference

TypeScript SDK Reference

Markdown

Installation

npm install @devcaster/core
pnpm add @devcaster/core
yarn add @devcaster/core
bun add @devcaster/core

Classes

ClassDescription
DevcasterThis is the core class for Devcaster.
AuthConfigsAuthConfigs class
ConnectedAccountsConnectedAccounts class
MCPMCP (Model Control Protocol) class
ToolkitsToolkits class
ToolsThis class is used to manage tools in the Devcaster SDK.
TriggersTrigger (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' }
});