routecraft
Define TypeScript capabilities that send emails, manage calendars, and automate work. Expose them to the Routecraft agent, Claude, ChatGPT, Cursor, or any AI agent via MCP. AI uses your capabilities, not your computer.
About
Routecraft is a code-first automation platform for TypeScript. Write routes that send emails, manage calendars, and automate work. AI calls your code, not your computer.
Why Routecraft?
- ✅ AI that does real work - Send emails, schedule meetings, automate tasks
- ✅ Code, not configs - TypeScript all the way with full IDE support
- ✅ Works with Claude & Cursor - Expose tools via MCP automatically
- ✅ You stay in control - AI only accesses the routes you code
Quick Start
Write a tool
import { mcp } from '@routecraft/ai'
import { craft, mail } from '@routecraft/routecraft'
import { z } from 'zod'
// Define a tool AI can call
export default craft()
.from(mcp('send-team-email', {
description: 'Send email to team members',
schema: z.object({
to: z.string().email().refine(
email => email.endsWith('@company.com'),
'Can only send to @company.com addresses'
),
subject: z.string(),
message: z.string()
})
}))
.to(mail()) // Config loaded from context
Expose to Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"my-tools": {
"command": "npx",
"args": ["@routecraft/cli", "run", "./routes/tools.mjs"]
}
}
}
Now talk to Claude: "Send an email to [email protected] thanking him for yesterday's meeting"
Claude discovers your tool and uses it automatically. ✨
📚 Get Started | AI Examples | API Docs
Key Features
- Make AI useful - Send emails, schedule meetings, automate tasks
- Code-first - TypeScript with full IDE support, testing, and version control
- MCP native - Works with Claude Desktop, Cursor, and any MCP client
- Type-safe - Zod-powered validation ensures data integrity
- Deploy anywhere - Run locally, self-host, or use our upcoming cloud platform
Monorepo Structure
packages/routecraft– Core library (builder, DSL, context, adapters, consumers)packages/ai– AI and MCP integrations (mcp(), schema validation, discovery)packages/cli– CLI to run files or folders of routes and start contextsapps/routecraft.dev– Documentation site (docs, examples, guides)examples/– Runnable example routes and tests
Examples
Real-world automation:
- Email Assistant - Send and manage emails
- Calendar & Meetings - Schedule meetings automatically
- Travel & Booking - Search flights and book restaurants
Try it yourself: pnpm craft run ./examples/mcp-echo.mjs
Contributing
Contributions are welcome! Please read our contribution guide at https://routecraft.dev/docs/community/contribution-guide for guidelines on how to propose changes, add adapters, and write routes.
License
Licensed under the Apache 2.0 License.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi