MA

monadworks/agentify

开发工具

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

41 stars 1 forks 质量 59 趋势 0MIT

代理接口编译器——一个命令。每个代理都代表你的产品。将OpenAPI规范转化为MCP服务器、技能、CLAUDE.md、AGENTS.md 等。

概览

Agentify OpenAPI 输入。代理接口输出。 你的API有新用户,但它还不知道——AI代理。 Claude Code 读取 CLAUDE.md。光标读取 .cursorrules。Codex 和 Copilot 读取 AGENTS.md。如果你想让你的 API 作为工具可调用,你需要一个 MCP 服务器。那需要写入并保持与 API 规范同步的文件量很大。 Agentify 读取你的 OpenAPI 规范并全部写入。 一个命令最多可从单个 OpenAPI 规范生成: Agentify 支持各种规模的 API——从 13 个终端应用到 1,000+ 个终端平台。 每个生成的MCP服务器编译时均无TypeScript错误,并立即启动。不合规的规范(如httpbin)会被自动规范化并附带警告,而非拒绝。GitHub REST API——涵盖43个域的1,093个端点——生成了一个拥有1,093个工具的工作服务器。 Agentify 会将你的规格解析成中间表示(),然后运行可插拔的发射器来生成每个输出格式。

概述(AI 翻译)

Agentify OpenAPI 进来。代理接口退出。


你的API有新用户,但它还不知道——AI代理。

Claude 代码读取 CLAUDE.md。光标读取 .cursorrules。Codex 和 Copilot 读取 AGENTS.md。如果你想让你的 API 作为工具可调用,你需要一个 MCP 服务器。这需要写入并保持与 API 规范同步的文件量很大。

Agentify 读取你的 OpenAPI 规范并全部写入。

你得到了什么

一个命令可从单一 OpenAPI 规范生成最多 9 种格式:

格式 使用
MCP 服务器 Claude、ChatGPT、Copilot(带 Dockerfile)
CLAUDE.md 克劳德代码
特工.md 密码本,副驾驶,光标,双子座CLI
.cursorrules 光标IDE
技能特工平台
llms.txt 大型语言模型搜索引擎
GEMINI.md Gemini CLI
A2A 卡 谷歌代理对代理协议
CLI 一个独立的命令行工具,可以调用真实的 API

快速启动

示例输出:

在真实API上测试

Agentify 支持各种规模的 API——从 13 个终端应用到 1,000+ 个终端平台。

|API |端点 |域 |TypeScript |服务器启动 |

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

README

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


Your API has new users it doesn’t know about yet — AI agents.

Claude Code reads CLAUDE.md. Cursor reads .cursorrules. Codex and Copilot read AGENTS.md. And if you want your API callable as a tool, you need an MCP server. That’s a lot of files to write and keep in sync with your API spec.

Agentify reads your OpenAPI spec and writes them all.

npx agentify-cli transform https://petstore.swagger.io/v2/swagger.json

What You Get

One command generates up to 9 formats from a single OpenAPI spec:

Format Used by
MCP Server Claude, ChatGPT, Copilot (with Dockerfile)
CLAUDE.md Claude Code
AGENTS.md Codex, Copilot, Cursor, Gemini CLI
.cursorrules Cursor IDE
Skills Agent platforms
llms.txt LLM search engines
GEMINI.md Gemini CLI
A2A Card Google Agent-to-Agent protocol
CLI A standalone command-line tool that makes real API calls

Quick Start

# Transform any OpenAPI spec (Swagger 2.0 or OpenAPI 3.x)
npx agentify-cli transform https://petstore.swagger.io/v2/swagger.json

# Pick specific formats
npx agentify-cli transform ./my-api.yaml -f mcp claude.md agents.md

# Generate a standalone CLI tool
npx agentify-cli transform ./my-api.yaml -f cli -o my-api-cli

# Custom output directory and project name
npx agentify-cli transform https://api.example.com/openapi.json -o ./output -n my-project

Example output:

  Agentify v0.4.1
  Agent Interface Compiler

  +-- 20 endpoints detected -> SMALL API strategy
  +-- 3 domains identified (pet, store, user)
  +-- Auth: apiKey (SWAGGER_PETSTORE_API_KEY)
  +-- Strategy: Direct tool mapping — one tool per endpoint

  > Generated mcp + claude.md + agents.md + cursorrules + llms.txt + gemini.md + skills + a2a (15 files)
  > Output: ./swagger-petstore-mcp-server
  > Security scan: PASSED

Tested on Real APIs

在 GitHub 查看完整 README

安装

npx agentify-cli transform https://petstore.swagger.io/v2/swagger.json
新手?先看 mcpskill.org 教程 →