RR

routecraftjs/routecraft

开发工具官方

本页由 AI 翻译,技术细节请以原文为准。 查看原文

37 stars 4 forks 质量 78 趋势 20Apache-2.0

定义TypeScript功能,用于发送邮件、管理日历和自动化工作。通过MCP向Routecraft代理、Claude、ChatGPT、Cursor或任何AI代理开放。

概览

特工的工具。或者特工本身的束缚。 Routecraft 是一个用于 AI 自动化的 TypeScript 框架。能力是一种路由:一条从源端经过操作到目的地的类型化管道。同样的路由是 Claude 或 Cursor 的 MCP 工具,是你自己运行的代理工具、HTTP 端点或调度作业的工具,仅依赖其源代码。代理也是路由,模型调用和其他步骤之间有相同的保护栏。只有你为它编写路由,否则什么都无法到达。 craft-harness 是一个完整的代理,由 Routecraft 功能构建:聊天、沙盒壳、网页取用和搜索、工作区、内存、调度器、人工审批和编辑器功能。它们都是普通的能力路径,你可以在同一个屏幕上读取并切换。 实例是被隔离的,设置文件承载凭证,转录是一个文件——会话名。

概述(AI 翻译)

特工的工具。或者特工本身的束缚。

关于

Routecraft 是一个开源的 AI 自动化平台,你们团队共同构建它。能力是一种路由:一条类型化的管道,从源头经过运营,到目的地。同样的路由是任何代理或编辑器的 MCP 工具,也可以是你自己运行的代理的工具,HTTP 终端或调度作业的工具,仅取决于其源代码。在你的笔记本上验证,升级到团队框架,每个团队都可以在服务凭证上使用它,而不是用自己的。代理也是路由,模型调用和其他步骤一样有保护栏。只有你为它写路由,否则什么都无法到达。

五分钟:你拥有的经纪人

craft-harness 是一个完整的代理,由 Routecraft 功能构建:聊天、沙盒壳、网页抓取和搜索、工作区、内存、调度器、人工审批以及编辑器功能。它们都是普通路由,可以在一个屏幕上阅读并更改。

来自另一航站楼:

实例是墙状的,设置文件承载凭证,文字记录是一个名为--session的文件。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

About

Routecraft is the open source AI automation platform your teams build on together. A capability is a route: a typed pipeline from a source, through operations, to a destination. The same route is an MCP tool for any agent or editor, a tool for an agent you run yourself, an HTTP endpoint, or a scheduled job, depending only on its source. Prove it on your laptop, promote it to a team harness, and every team can use it on service credentials instead of their own. Agents are routes too, with the same guardrails around a model call as around any other step. Nothing is reachable until you write a route for it.

Five minutes: an agent you own

craft-harness is a complete agent built out of Routecraft capabilities: chat, a sandboxed shell, web fetch and search, a workspace, memory, a scheduler, human approvals, and the editor capabilities. Every one of them is an ordinary route in capabilities/ you can read on one screen and change.

bunx create-routecraft my-agent --example https://github.com/routecraftjs/craft-harness
cd my-agent
bun run setup            # generates the project's own secrets into .env and .routecraft/
# add LLM_API_KEY to .env
bun run dev

From another terminal:

bun run exec chat --session=demo --message="what can you do?"

The instance is walled, the settings file carries the credential, and the transcript is a file --session names. The same conversation is reachable over MCP at http://localhost:8081/mcp and from your editor over the Agent Client Protocol.

What a capability looks like

import { craft, mail } from '@routecraft/routecraft'
import { mcp } from '@routecraft/ai'
import { z } from 'zod'

const SendTeamEmail = 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(),
})
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "my-tools": { "command": "bunx", "args": ["@routecraft/cli", "run", "./capabilities/send-team-email.ts"] } } }