Skip to main content

frontone

MCP server that clones a backend GitHub repo, analyzes it using aja-codeintel, and scaffolds a complete React + Vite frontend with domain-aware design system.

Works with any MCP client: Claude Code, Cursor, GitHub Copilot (VS Code), Windsurf. No API key required.


Install

pip install frontone

Setup by client

Claude Code

Add to ~/.claude/claude_desktop_config.json:

{
  "mcpServers": {
    "frontone": {
      "command": "frontone",
      "env": {
        "GITHUB_TOKEN": "ghp_yourtoken"
      }
    }
  }
}

Then in Claude Code chat:

analyze_repo https://github.com/user/my-spring-app

or to fully scaffold:

scaffold_frontend https://github.com/user/my-spring-app

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "frontone": {
      "command": "frontone",
      "env": {
        "GITHUB_TOKEN": "ghp_yourtoken"
      }
    }
  }
}

GitHub Copilot (VS Code)

Add to .vscode/mcp.json:

{
  "servers": {
    "frontone": {
      "command": "frontone",
      "env": {
        "GITHUB_TOKEN": "ghp_yourtoken"
      }
    }
  }
}

Tools exposed

analyze_repo(repo_url)

Clones the repo and returns a complete structured JSON overview with everything the AI needs to build a working frontend:

Field What it contains
models Entity classes with all field names and types
relationships ManyToOne / OneToMany / ManyToMany edges
dtos Request / response / shared DTOs with fields
endpoints All routes with method, path, access (PUBLIC / AUTH / ADMIN)
swagger Live OpenAPI spec if app is running, otherwise runtime URL
auth JWT / OAuth2 / Session detection + how to send tokens
base_path Global API prefix (e.g. /api) + ready-to-use axios baseURL
pagination Spring Data Page response shape + which endpoints are paginated
validation @NotNull / @Size / @Email etc. per field — used to build Zod schemas
enums All enum types and their values — rendered as dropdowns

scaffold_frontend(repo_url)

Does everything analyze_repo does, then auto-detects the domain and writes a complete React + Vite project to C:/<repo-name>-frontend/.

Domain detection — picks design system automatically:

Domain Detected from models Design
finance BankAccount, Transaction, Balance, Operation Dark · emerald accent · monospace amounts
healthcare Patient, Doctor, Appointment, Pet, Vet, Visit Light · sky accent · rounded cards
ecommerce Product, Order, Cart, Inventory, Category Dark · orange accent · status badges
social Post, Comment, Like, Follow, Feed Dark · purple accent · engagement rows
admin anything else Light · indigo accent · compact tables

Generated file structure:

C:/<repo-name>-frontend/
├── index.html
├── package.json
├── tsconfig.json
├── vite.config.ts
├── tailwind.config.ts
├── .env.example
└── src/
    ├── main.tsx
    ├── App.tsx
    ├── types/
    │   └── index.ts                  (all models, DTOs, enums, PageResponse<T>)
    ├── lib/
    │   ├── axios.ts                  (baseURL + JWT interceptor + 401 redirect)
    │   ├── queryClient.ts
    │   └── utils.ts
    ├── api/
    │   ├── auth.ts                   (login, register, logout)
    │   └── <entity>.ts               (getAll, getById, create, update, remove)
    ├── store/
    │   └── authStore.ts              (Zustand, token persisted to localStorage)
    ├── components/
    │   ├── layout/
    │   │   ├── Sidebar.tsx           (working nav links, active state, mobile drawer)
    │   │   ├── Topbar.tsx            (user info, logout button)
    │   │   ├── Layout.tsx
    │   │   └── AuthGuard.tsx         (redirects to /login if no token)
    │   ├── ui/
    │   │   ├── Button.tsx
    │   │   ├── Input.tsx
    │   │   ├── Badge.tsx
    │   │   ├── Modal.tsx
    │   │   ├── DataTable.tsx
    │   │   ├── Pagination.tsx        (only on paginated endpoints)
    │   │   ├── StatCard.tsx
    │   │   ├── EmptyState.tsx
    │   │   ├── Skeleton.tsx
    │   │   ├── ConfirmDialog.tsx
    │   │   ├── SearchInput.tsx
    │   │   └── Select.tsx
    │   ├── <Entity>Columns.tsx       (column definitions per entity)
    │   └── charts/
    │       └── <Entity>Chart.tsx     (Recharts, only for entities with numeric fields)
    ├── pages/
    │   ├── Register.tsx              (only if /register endpoint exists)
    │   ├── Login.tsx
    │   ├── Dashboard.tsx             (stat cards + charts + recent items)
    │   ├── <Entity>List.tsx          (search, sort, pagination, delete confirm)
    │   ├── <Entity>Detail.tsx
    │   ├── <Entity>Form.tsx          (create + edit, Zod validation, enum dropdowns)
    │   └── admin/
    │       ├── UserList.tsx          (only if /admin/ endpoints exist)
    │       └── UserForm.tsx
    └── routes/
        └── index.tsx                 (all routes, protected by AuthGuard)

After scaffolding:

cd C:/<repo-name>-frontend
npm install
npm run dev

What the generated frontend does

  • Auth flow in correct order — Register (if endpoint exists) → Login → protected routes
  • Every API call is typed — uses exact paths from the backend, never guessed
  • Pagination — only on endpoints that actually return Page<T>, with correct ?page=0&size=20 params
  • Forms with real validation — Zod schemas built from @NotNull, @Size, @Email, @Min/@Max annotations
  • Enum dropdowns — Select components populated with real enum values from the backend
  • Working sidebar — every link points to a real route, active state via useLocation()
  • Charts on Dashboard — Recharts AreaChart / BarChart using real entity data
  • Skeleton loading — every async component has a loading state
  • Delete confirmation — every delete action shows a ConfirmDialog before calling the API

Private repos

Set GITHUB_TOKEN env variable. frontone injects it into the clone URL automatically.

set GITHUB_TOKEN=ghp_yourtoken    # Windows
export GITHUB_TOKEN=ghp_yourtoken # Mac/Linux

How it works

You → MCP client (Claude / Cursor / Copilot)
            ↓
      frontone MCP server
            ↓
      git clone repo to C:/
            ↓
      aja-codeintel deep analysis
        · models + fields
        · relationships
        · DTOs + fields
        · endpoints + auth roles
        · JWT / OAuth2 / Session detection
        · API base path prefix
        · Spring Data pagination detection
        · @NotNull / @Size / @Email validation constraints
        · enum types + values
        · live Swagger / OpenAPI fetch
            ↓
      detect domain → pick design system
            ↓
      build ordered file manifest
            ↓
      generate all React + Vite files
            ↓
      write to C:/<repo-name>-frontend/
            ↓
      return summary JSON to MCP client

Metadata

Release files for frontone 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for frontone 0.1.2
File Size Uploaded Provenance Actions
frontone-0.1.2.tar.gz 23.1 kB Without provenance Details for frontone-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for frontone 0.1.2
File Interpreter ABI Platform Actions
frontone-0.1.2-py3-none-any.whl Python 3 none any Details for frontone-0.1.2-py3-none-any.whl

Total release size: 45.8 kB

Release files / frontone-0.1.2.tar.gz

Download URL frontone-0.1.2.tar.gz
Size 23.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b20e1962f4ecfeb3a50bbb1d3308c645558745d39fcd139a6b661bc3d432ba8e
BLAKE2b-256 checksum
How to use checksums
7c2853f49d37cd465c9e44484d4ce17ef1e3c4a4f669ff15ff759244ea9beb4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / frontone-0.1.2-py3-none-any.whl

Download URL frontone-0.1.2-py3-none-any.whl
Size 22.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e7a36ccd6b7d95cb4ef91a6e63f9d0012050f365ee1ee28d767284182e7c6bce
BLAKE2b-256 checksum
How to use checksums
a08c4be7109b706f9a55c6cb216e9d14a62b098bd91c91e5711237405cfcc655
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for frontone 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page