JJ

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

10 stars 5 forks Качество 74 Тренд 12Apache-2.0

A Model Context Protocol (MCP) server that lets AI agents — Claude Code, Claude Desktop, Cursor, or any MCP-compatible host — drive the JHipster CLI to scaffold and evolve applications using...

Обзор

A Model Context Protocol (MCP) server that lets AI agents — Claude Code, Claude Desktop, Cursor, or any MCP-compatible host — drive the JHipster CLI to scaffold and evolve applications using (JHipster Domain Language). You describe the app or change you want; the agent translates it to JDL, validates it, and runs JHipster — while this server keeps every run . If you know JHipster but are new to MCP, start there and read in order: 1. Introduction — what an MCP server is, and the tools / resources / prompts model. 2. Installation — connect it to your host. 3. Getting started — your first guided session. 4. Tools reference · 5. Resources · 6. Prompts 7. How the server manages context 8. Advanced usage & customization 9. How it works (engine) Node.js 20+ and a working global jhipster CLI on your PATH (npm install -g generator-jhipster). The server spawns your existing jhipster binary — it does not bundle the generator. Full details in Installation.

README

Показан фрагмент оригинального README. Открыть оригинал.

jhipster-mcp

A Model Context Protocol (MCP) server that lets AI agents — Claude Code, Claude Desktop, Cursor, or any MCP-compatible host — drive the JHipster CLI to scaffold and evolve applications using JDL (JHipster Domain Language).

You describe the app or change you want; the agent translates it to JDL, validates it, and runs JHipster — while this server keeps every run non-interactive, sandboxed to a directory you name, and safe to preview before it writes.

📖 Documentation

Full user guide → docs/. If you know JHipster but are new to MCP, start there and read in order:

  1. Introduction — what an MCP server is, and the tools / resources / prompts model.
  2. Installation — connect it to your host.
  3. Getting started — your first guided session.
  4. Tools reference · 5. Resources · 6. Prompts
  5. How the server manages context
  6. Advanced usage & customization
  7. How it works (engine)

Roadmap: docs/ROADMAP.md.

Quick start

Prerequisites: Node.js 20+ and a working global jhipster CLI on your PATH (npm install -g generator-jhipster). The server spawns your existing jhipster binary — it does not bundle the generator. Full details in Installation.

Claude Code

claude mcp add jhipster -- npx -y jhipster-mcp

Claude Desktop / Cursor / other hosts

Add this to your host’s MCP config (e.g. claude_desktop_config.json), then restart:

{
  "mcpServers": {
    "jhipster": {
      "command": "npx",
      "args": ["-y", "jhipster-mcp"]
    }
  }
}

Then ask your host something like “Create a JHipster monolith in /tmp/demo with a Product entity.” See Getting started for a full walkthrough and more examples.

What’s inside (at a glance)

  • 13 tools — validate_jdl, create_app_from_jdl, import_jdl, add_entity, add_relationship, set_option, info, project_commands, upgrade_advisor, preview_upgrade, generate_ci_cd, generate_deployment, run_jhipster. (reference)
  • Resources — the JDL grammar plus live project state (yo-rc, entities, exported jdl). (reference)
  • Prompts — scaffold_crud_monolith, add_audit_fields, monolith_to_microservices. (reference)
  • Safe by design — directory scoping, empty-dir guard, no shell, JDL-injection guards, and isolated preview/dryRun. (details)

Development

npm run dev         # tsup --watch
npm run typecheck   # tsc --noEmit
npm run build       # tsup → dist/index.js
Открыть полный README на GitHub

Установка

npx -y jhipster-mcp
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "jhipster": { "command": "npx", "args": ["-y", "jhipster-mcp"] } } }