mcpField
A
AI SVG Generator

AI SVG Generator

Remote
aisvg-generator.comMedia & Design0Updated 1w ago

About AI SVG Generator

A TanStack Start SaaS starter for developers building AI-powered products, with backend modules for payments, credits, auth, content, and administration. It also includes an MCP server and scoped agent tokens for back-office operations.

Key features

  1. 01Authentication and RBAC
  2. 02Payments, subscriptions, and credits
  3. 03AI task providers and tracking
  4. 04CMS, blog, and support tickets
  5. 05Agent API with audit log

Use cases

  1. 01Building a SaaS product with billing
  2. 02Adding credit-based AI tasks
  3. 03Managing users and content
  4. 04Allowing agents to access admin operations

MCP support

Includes an MCP server and scoped admin tokens, allowing agents to run back-office operations with an audit log.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://aisvg-generator.com/api/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

All endpoints
Streamable HTTPhttps://aisvg-generator.com/api/mcpAuth required

Tools

Details

From the project README

Application

A headless SaaS engine for building AI-powered products with Claude Code, on TanStack Start. Pre-wired business logic (payments, credits, subscriptions, auth, RBAC, i18n, CMS) with minimal UI — you build your product pages on top.

Related project: AI SVG Generator — create editable SVG vector graphics from text and images.

Quick Start

pnpm install
cp .env.example .env.development   # then fill in the values (AUTH_SECRET etc.)
pnpm db:push
pnpm rbac:init [email protected] --admin-password=your-password
pnpm dev

Open http://localhost:3000, sign in with the admin account, and configure payments, login providers, email, storage and AI at /admin/settings.

Local env lives in .env.development (gitignored). It is loaded by both Vite and the db:* scripts. Only VITE_APP_URL, VITE_APP_NAME, DATABASE_PROVIDER, DATABASE_URL, and AUTH_SECRET are required to boot.

Features

  • Auth — Email/password, Google/GitHub OAuth and Google One Tap via better-auth
  • Payment — Stripe, Creem, PayPal, Alipay, WeChat Pay: checkout, subscriptions, webhooks, refunds, coupons. Every grant is atomic and idempotent
  • Credits — FIFO consumption, expiration, auto-grant on signup, refunds
  • Guest posts — Paid articles: authors pay to submit, admins approve, request changes or reject with a refund; published with sponsored links
  • Support tickets — User tickets with a floating support button and an admin inbox
  • AI — Replicate, Gemini, Fal, Kie providers with task tracking and credit deduction
  • RBAC — Roles, permissions, wildcard matching, admin management
  • Agent API — Scoped admin tokens, an MCP server and an audit log, so agents can run the back office
  • API keys & invite codes — Key CRUD + validation; trial invite codes with batch generation
  • CMS & blog — Categories and posts, Markdown blog, MDX static pages
  • Bot notifications — Telegram / Feishu / WeCom messages for payments, tickets and guest posts
  • i18n — English-only UI and content via Paraglide JS; legacy /zh links redirect to English
  • Appearance — Optional admin-controlled color themes, font, size, sidebar layout and light/dark
  • Database — SQLite, PostgreSQL, MySQL, Turso and Cloudflare D1 via Drizzle ORM
  • Deploy anywhere — Node server, or Cloudflare Workers with D1 or Postgres via Hyperdrive
  • All code self-contained — no external packages for business logic

Tech Stack

  • TanStack Start (Vite 8 + nitro, React 19, TypeScript)
  • TanStack Query, Form, and Table for data, forms, and tables
  • shadcn/ui v4 (Base Nova style, Tailwind CSS 4)
  • better-auth + Drizzle ORM
  • Paraglide JS for i18n

Project Structure

src/
├── core/           # Infrastructure (db, auth, payment, email, storage, ai, notify, i18n)
├── modules/        # Business logic (payment, credits, subscriptions, guest-posts, apikeys, rbac, ...)
├── config/         # Env, DB schema templates, pricing catalog, feature defaults
├── routes/         # File-based routes (English-only, locale-free paths)
│   ├── settings/   # User center
│   ├── admin/      # Admin panel
│   └── api/        # Server routes (REST endpoints)
├── server/         # Server-only helpers shared by routes (admin ops, payment, ...)
├── blocks/         # Page sections that read i18n (disposable demo content)
├── components/     # Reusable UI, content via props (durable)
├── content/        # MDX static pages and blog posts
├── hooks/          # Shared react-query hooks
└── lib/            # Utilities (api-client, query-client, hash, resp, rate-limit, ...)

messages/en.json    # Translation source (flat dot-keyed)
project.inlang/          # Inlang project config
src/paraglide/           # Compiled messages + runtime (gitignored, generated)

User Center & Admin Panel

The user center (/settings) has profile, credits, billing, payments, API keys, support tickets and guest posts. Optional pages can be switched off at Settings → Users.

The admin panel (/admin):

SectionPages
OverviewStats and conversion funnel
UsersUsers (with activity timeline), Invite Codes, Roles, Permissions
BillingPayments, Subscriptions, Credits
ContentCategories, Posts, Guest Posts, Tickets
AgentAgent accounts, tokens and audit log
SettingsGeneral, Users, Auth, Payment, Email, Storage, AI, Analytics, Ads, Customer Service, Notify

Provider credentials live in admin Settings (encrypted at rest when CONFIG_ENCRYPTION_KEY is set), not in env files.

Commands

CommandDescription
pnpm devStart Vite dev server (port 3000)
pnpm buildProduction build
pnpm startRun the production server
pnpm db:setupCopy schema template for chosen database
pnpm db:pushPush schema to database (dev)
pnpm db:generateGenerate migration SQL (production)
pnpm db:migrateRun migrations (production)
pnpm db:studioDrizzle Studio GUI
pnpm rbac:initCreate roles + permissions + optional admin user
pnpm rbac:assignAssign role to user
pnpm admin:tokenManage agent tokens; sync-permissions after upgrades
pnpm cf:deployBuild and deploy to Cloudflare Workers

Claude Code Skills

SkillWhat it does
/quick-startBuild a complete SaaS from a brief or reference URL
/clone-websiteRebuild an existing website on this template
/new-moduleCreate a backend module (service + API)
/new-pageCreate a dashboard page with API wiring + nav entry
/new-static-pageCreate an MDX content page (legal, about, FAQ)
/design-themeRestyle the palette and fonts
/generate-imageAI-generate a decorative image for a page
/security-scanCheck the diff for secrets and vulnerabilities before a commit
/launch-auditResponsive, theme, SEO, performance and security sweep
/deploy-cloudflareDeploy to Cloudflare Workers (D1 or Postgres + Hyperdrive)
/sync-upstreamPull in the latest template changes

Agent guidance lives in AGENTS.md; upgrade steps for existing projects in UPGRADING.md.

Environment Variables

# Required (public vars use the VITE_ prefix; secrets stay server-only)
VITE_APP_URL=http://localhost:3000
VITE_APP_NAME=My App
DATABASE_PROVIDER=sqlite        # sqlite | postgres | mysql | turso | d1
DATABASE_URL=file:data/local.db
AUTH_SECRET=generate-with-openssl-rand-base64-32

# Optional
VITE_APP_DESCRIPTION=
VITE_APP_LOGO=/logo.svg
VITE_DEFAULT_LOCALE=en
CONFIG_ENCRYPTION_KEY=          # encrypts secrets saved in admin Settings

See .env.example for the full list.

License

This is proprietary software. See LICENSE for the full license agreement.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.