Mastra
Use Chronary’s calendar tools in Mastra. new ChronaryToolkit(...).getTools() returns tools ready to pass to a Mastra Agent.
Install
Section titled “Install”npm install @chronary/toolkit @chronary/sdk @mastra/core# plus a model provider, e.g. @ai-sdk/openainpm install @ai-sdk/openaiQuickstart
Section titled “Quickstart”import { Agent } from '@mastra/core/agent';import { openai } from '@ai-sdk/openai';import { ChronaryToolkit } from '@chronary/toolkit/mastra';
const tools = new ChronaryToolkit({ apiKey: process.env.CHRONARY_API_KEY!,}).getTools();
const agent = new Agent({ id: 'scheduler', name: 'Scheduler', instructions: 'You manage the user’s calendar: check availability and book meetings.', model: openai('gpt-4o'), tools,});
const res = await agent.generate('Find a 30-min slot with Alex this week and book it.');console.log(res.text);Next steps
Section titled “Next steps”- All frameworks
- MCP Tools Reference — the full 65-tool surface
- Calendar-driven agent orchestration