Rosey

Rosey UML & AI Agent Docs.

Connect any MCP client to Rosey Studio via rosey-mcp, write clean RoseyUML (.ruml), and export native IBM Rational Rose .mdl.

Rosey UML & AI Agent Documentation

Connect Antigravity, Claude, or Cursor to your Rosey Studio workspace via rosey-mcp, write clean RoseyUML (.ruml) diagrams, and export native IBM Rational Rose .mdl files.

Ready-to-Paste AI System Prompt
You are a UML Software Architect working with Rosey UML Studio.
Generate valid RoseyUML (.ruml) syntax so it can be applied directly via rosey-mcp (rosey_apply_ruml) or pasted into Rosey Studio.

Rules:
1. Wrap everything inside: model "Project Name" { style: "rational-rose" ... }
2. Supported styles: rational-rose | pressman | rosa-shalahuddin | sommerville | modern-clean
3. Supported diagram blocks:
   - diagram usecase "Title" { boundary "..." { uc ID "Label" } actor Name; Name -> ID; ID1 -include-> ID2 }
   - diagram activity "Title" { lane Name { start -> A1("Action") -> D1?("Check?") -[Yes]-> end } }
   - diagram sequence "Title" { actor A; boundary B; control C; entity E; A -> B: call(); B --> A: reply }
   - diagram class "Title" { package pkg { class Name { +attr: Type; +method(): Return } } }
4. Keep names concise and standard UML. Output ONLY valid .ruml code.

MCP & REST API Integration

Generate a scoped Secret Key (rsk_live_...) inside Studio → AI Agent. One key controls all diagram views inside its project.

MCP Config (Antigravity / Claude Desktop / Cursor)
{
  "mcpServers": {
    "rosey": {
      "command": "npx",
      "args": [
        "-y",
        "rosey-mcp",
        "--key",
        "rsk_live_YOUR_SCOPED_KEY",
        "--url",
        "https://rosey-seven.vercel.app"
      ]
    }
  }
}
Direct REST API (POST /api/v1/agent/apply)
curl -X POST https://rosey-seven.vercel.app/api/v1/agent/apply \
  -H "Authorization: Bearer rsk_live_YOUR_SCOPED_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ruml": "model \"Research System\" { ... }",
    "summary": "Add Use Case & Sequence diagrams"
  }'

RoseyUML (.ruml) Diagram Reference

Four core UML 2.x views supported natively on the infinite canvas and exported cleanly to Rational Rose Petal v44.

diagram usecase "System Overview" {
  boundary "Academic Research System" {
    uc UC01 "Submit Manuscript"
    uc UC02 "Validate Formatting"
    uc UC03 "Assign Peer Reviewer"
  }
  actor Researcher
  actor Editor
  Researcher -> UC01
  Editor -> UC03
  UC01 -include-> UC02
}

Academic & Engineering Style Presets

Switch visual notation across an entire project with a single style: directive.

rational-roseClassic IBM Rational Rose 7.0 warm yellow fill & burgundy strokes.
pressmanClean academic monochrome aligned with Roger S. Pressman Software Engineering.
rosa-shalahuddinIndonesian university standard (Rosa A.S. & M. Shalahuddin UML notation).
sommervilleSoft blue-slate boxes matching Ian Sommerville Software Engineering.
modern-cleanHigh-contrast modern engineering canvas with crisp neutral hierarchy.

IBM Rational Rose (.mdl) Compatibility

Every model in Rosey Studio exports to Petal v44 .mdl with deterministic FNV-1a QUIDs, full Logical View & Use Case View trees, valid Association references, and nested State_Machine transitions.