@ arbol-ai/ maximus
Maximus在Cloudflare工人上建立了组织范围API,人们和AI的特工们都这样称呼. 每个 路由是一个文件,它一次宣布它的处理器和合同,同一个工人通过HTTP为它服务 带有 OpenAPI 3.1 文件, 当路由命名时作为 MCP 工具, 并超越本地 RPC 到 Workers 你允许.
bun create maximus my-api
// routes/v1/notes/[noteId].get.ts
import { defineHandler, UuidSchema } from '@arbol-ai/maximus';
import { NoteSchema } from '#src/notes.ts';
/** GET /api/v1/notes/{noteId}, also the MCP tool get_note: one note of the caller's organization. */
export default defineHandler(
async ({ input, notes, fail }) => {
const note = await notes.find(input.noteId);
if (!note) {
return fail('NOTE_NOT_FOUND');
}
return note;
},
{
description: 'Read one note of the organization by its id.',
input: { noteId: UuidSchema },
output: NoteSchema,
failures: ['NOTE_NOT_FOUND'],
mcp: { name: 'get_note' },
}
);
这个包是框架。 它的根入有路线和操作,TypeBox schemas,指使和
范围、 错误目录和带有 OpenAPI 文档的 HTTP 处理器; 每个可选的能力都是一种
其自己的条目,例如: @arbol-ai/maximus/mcp, (中文(简体) ), /workers 或者说 /postgres工人只携带
输入。 软件包安装 maximus 命令和船舶 马克西穆斯的编码工具
内 skills/maximus/。 。 。 . maximus() 从 @arbol-ai/maximus/vite 制造 vite.config.ts 一个项目的一
配置 .
根据麻省理工学院的许可获释.