Trabuco

io.github.arianlopezc由 GitHub 账号 arianlopezc 发布v1.16.0更新于 Oct 24, 2026

Production Java Maven scaffolder (CLI + Claude Code plugin) for AI coding agents

已验证STDIO仅桌面开发者工具AI 与机器学习

概览

AI 生成的概览

Trabuco 可生成生产级多模块 Java Maven/Spring Boot 项目及配套的 AI 上下文文件,并以 MCP 服务器形式供助手调用脚手架操作。

可以做什么
  • 创建与脚手架:初始化新的多模块 Maven/Spring Boot 代码库,选择模块、数据库和 CI 工作流
  • 扩展项目:添加模块,并以增量方式补齐新版本引入的 AI 工具文件
  • 设计与建议:进行系统设计并为项目推荐架构
  • 迁移仓库:对现有 Spring Boot 仓库执行分阶段编排迁移,带审批关卡与回滚
  • 生成代理上下文:输出任务提示、Java 代码质量规范,以及面向 Claude Code、Codex、Cursor、Copilot 的规则文件
适用场景
适合新建 Java/Spring Boot 服务,或重构现有 Maven Spring Boot 仓库时使用,让编码助手从第一次提交起就了解项目约定,而不必每次会话重新讲解。
运行要求
以本地进程运行;README 推荐用 npx 或全局安装 CLI,也提供 Go 与 shell 安装方式。Claude Code 插件要求 trabuco CLI 在 PATH 中。生成的项目需要 Java、Maven 和 Docker(Testcontainers 与本地开发)。未声明认证或环境变量。
安装前请注意
迁移流程会就地改造现有仓库,但变更需在分阶段审批关卡确认,且每阶段 git 标签支持回滚,提交前应逐项审阅。生成的项目会写入磁盘,插件还会向 Claude Code 安装技能、子代理和钩子。启用生成的认证脚手架前请先审查。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Trabuco,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

████████╗██████╗ █████╗ ██████╗ ██╗ ██╗ ██████╗ ██████╗ ╚══██╔══╝██╔══██╗██╔══██╗██╔══██╗██║ ██║██╔════╝██╔═══██╗ ██║ ██████╔╝███████║██████╔╝██║ ██║██║ ██║ ██║ ██║ ██╔══██╗██╔══██║██╔══██╗██║ ██║██║ ██║ ██║ ██║ ██║ ██║██║ ██║██████╔╝╚██████╔╝╚██████╗╚██████╔╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚═════╝ ╚═════╝

Generate production-ready Java projects — with the AI context your coding agents need built in.

Starting a new Java project is slow — even with a coding agent helping. You set up Maven modules, wire databases and tests, copy boilerplate from that one project that "mostly works," and then spend the first hour explaining every architectural convention to Claude Code, Cursor, Copilot, or Codex from scratch. Hours pass before you write a single line of business logic. Trabuco exists because your time — and your agent's context window — is better spent building features, not fighting configuration or re-teaching conventions.

Trabuco is a command-line tool — and a Claude Code plugin — that generates both halves of a modern Java codebase: a complete, production-ready multi-module Maven project and the AI context that teaches coding agents how to work in it. Run trabuco init (or inside Claude Code, type /trabuco:new-project and describe what you need in plain English), answer a few prompts (or pass flags for automation), and you get a fully wired Spring Boot codebase alongside task-specific prompts, quality specifications, per-agent rule files, and workflow hooks already configured for Claude Code, Codex, Cursor, and GitHub Copilot. No templates to download, no manual setup, and no session spent bootstrapping your agent's understanding of the project.

The generated code is production-grade by default. Spring Boot with Spring Data JDBC (no JPA surprises), Flyway migrations, Testcontainers for real integration tests, Resilience4j circuit breakers, Google Java Format enforced by Spotless, ArchUnit rules that fail the build on layer violations, correlation-ID tracing, Prometheus metrics, OpenAPI + Swagger UI, and a global exception handler with sanitized responses. PostgreSQL, MySQL, MongoDB, or Redis — all configured with Docker Compose. JobRunr for background jobs; Kafka, RabbitMQ, AWS SQS, or GCP Pub/Sub for event-driven processing. The modular layout — Model, SQLDatastore / NoSQLDatastore, Shared, API, Worker, EventConsumer — has clean compile-time boundaries so API physically cannot import Worker code. Every opinion is deliberate: keyset pagination, no foreign-key constraints, Immutables at module boundaries, constructor injection only, bulk-bounded writes.

Alongside the code, Trabuco lays down an AI collaboration layer that the major coding agents load natively. The .ai/prompts/ directory ships task-specific guides (add-entity, add-endpoint, add-service, add-event, add-job, add-tool) plus JAVA_CODE_QUALITY.md — an authoritative specification covering architecture boundaries, exception handling, datastore performance (bulk I/O, keyset drain loops, denormalization), and testing standards. Per-agent rule files — CLAUDE.md for Claude Code, AGENTS.md for Codex, .cursor/rules/java.mdc for Cursor, .github/instructions/java.instructions.md for Copilot — wire those conventions into each tool's native discovery. Claude also gets .claude/skills/ for commit, PR, and review workflows; Codex and Cursor get hooks; Copilot gets setup steps. Every architectural convention lives in two places: enforced by the generated code and explained to the agents that will extend it.

Trabuco goes further. The AI Agent module ships production scaffolding for building AI agents themselves on Spring AI: tool calling, LLM input/output guardrails, multi-agent orchestration, knowledge-base integration, MCP server endpoint, the A2A (Agent-to-Agent) protocol, streaming responses, webhook callbacks, scope-based authorization, rate limiting, and correlation-ID tracing — wired, testable, and ready from the first commit. Trabuco itself is also an MCP server: run trabuco mcp and your coding agents invoke scaffolding operations natively (init_project, add_module, design_system, suggest_architecture).

Migrating an existing Spring Boot project is supported via trabuco migrate: an orchestrated 14-phase migration that transforms a Maven-based Spring Boot repo in place into a Trabuco-shaped multi-module project. Each phase is owned by a specialist that proposes structured changes you approve at a gate before they're committed; per-phase git tags provide atomic rollback. Start with trabuco migrate assess /path/to/repo. Full guide: docs/migration-guide.md.

Install

bash
# Recommended: use via npx (no install needed)claude mcp add trabuco -- npx -y trabuco-mcp
# Or install the CLI globallynpm install -g trabuco-mcp                                       # via npmgo install github.com/arianlopezc/Trabuco/cmd/trabuco@latest     # via Gocurl -sSL https://raw.githubusercontent.com/arianlopezc/Trabuco/main/scripts/install.sh | bash  # via shell

For per-agent MCP setup (Cursor, Copilot, Codex), offline tarballs, and binary fallback, see docs/manual.md#installation.

Quick start

bash
# Interactive — Trabuco asks what you needtrabuco init
# Or all flagstrabuco init --name=myapp --group-id=com.company.myapp \  --modules=Model,SQLDatastore,Shared,API --database=postgresql
cd myappmvn clean installcd API && mvn spring-boot:run

Your API runs at http://localhost:8080. For Worker, EventConsumer, AIAgent, and CI examples, see docs/manual.md#quick-start.

Claude Code plugin

Trabuco is published in Anthropic's community plugin marketplace. Inside Claude Code:

text
/plugin marketplace add anthropics/claude-plugins-community/plugin install trabuco@claude-community

You can also browse the catalog at claude.com/plugins, or pin to this repo directly (e.g. for unreleased changes) with /plugin marketplace add arianlopezc/Trabuco then /plugin install trabuco@trabuco-marketplace.

The plugin ships 8 skills (/trabuco:new-project, /trabuco:design-system, /trabuco:add-module, /trabuco:extend, /trabuco:migrate, /trabuco:doctor, /trabuco:suggest, /trabuco:sync), 17 specialist subagents (architect, AI-agent expert, migration orchestrator, 14 migration phase specialists), and an MCP server with 25 tools. Full plugin docs: plugin/README.md.

The plugin requires the trabuco CLI on PATH — install it first (or after; the SessionStart hook detects missing binaries and tells the assistant exactly what to do).

Highlights

  • Multi-module Maven — clean compile-time boundaries between Model, SQLDatastore/NoSQLDatastore, Shared, API, Worker, EventConsumer, AIAgent.
  • Spring Boot + Java — Spring Data JDBC (no JPA), Flyway migrations, virtual threads on by default, Testcontainers for real integration tests.
  • OIDC Resource Server scaffolding (auto-generated for API/AIAgent) — Spring Security dual SecurityFilterChain, JWT validation, scope-mapped authorities, RFC 7807 ProblemDetail handlers, RSA-signed e2e tests. Ships dormant — flip trabuco.auth.enabled=true and set OIDC_ISSUER_URI to validate tokens from Keycloak / Auth0 / Okta / Cognito / generic OIDC. No CLI flag, no half-installed projects. Full guide: docs/auth.md.
  • Production observability — RFC 7807 Problem Details, OpenTelemetry auto-instrumentation, Prometheus metrics, correlation IDs, health probes.
  • AI Agent module — Spring AI with tools, LLM guardrails, MCP server, A2A protocol, multi-agent orchestration, knowledge base, webhooks. The OIDC chain coexists with the legacy ApiKeyAuthFilter (governed by an independent property) for incremental migration.
  • AI collaboration layer — .ai/prompts/ task guides, JAVA_CODE_QUALITY.md spec, per-agent rule files for Claude Code / Codex / Cursor / GitHub Copilot.
  • Migration of existing repos — trabuco migrate runs a 14-phase orchestrated flow with per-phase approval gates and atomic rollback.
  • CI that knows your modules — --ci github emits a workflow with the exact Docker services your modules need.
  • Stay in sync with new releases — trabuco sync --apply adds AI-tooling files added in newer CLI versions, additively.

For the full feature list, see docs/manual.md#features.

Documentation

  • docs/manual.md — full CLI reference (installation, modules, MCP server, code quality, configuration options, every flag).
  • docs/migration-guide.md — migrating an existing Spring Boot project.
  • docs/README.md — full docs index, including design context (philosophy, pattern recipes, when not to use, limitations).
  • plugin/README.md — Claude Code plugin: skills, subagents, hooks, MCP server.

Requirements

  • Java (Trabuco auto-detects installed versions)
  • Maven
  • Docker (for Testcontainers and local development)

Contributing

Issues and pull requests welcome.

License

MIT — do whatever you want with it.


Built with Trabuco. Now go build something amazing.

来源:README.md,提交 c33210b

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v1.16.0最新Oct 13, 2026
  2. v1.15.2Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分