
Lastsaas
io.github.jonradoff由 GitHub 帳號 jonradoff 發布v1.0.0更新於 Oct 24, 2026
Read-only admin MCP server for LastSaaS — dashboards, users, tenants, billing, logs, health.
發布方自己的服務:LLM Optimizer
概覽
針對 LastSaaS 執行個體的唯讀 MCP 伺服器,讓助理以自然語言查詢後台儀表板、使用者、租戶、帳務、日誌與系統健康資料。
- 可以做什麼
- 概覽與儀表板:軟體版本、執行環境、使用者與租戶數量、健康概況
- 租戶與使用者:支援搜尋與篩選的分頁清單,以及含成員、驗證方式與成員關係的詳細資料
- 財務:交易紀錄,以及營收、ARR、DAU、MAU 時間序列
- 日誌與健康:依嚴重程度與日期篩選的全文日誌搜尋、各等級計數、目前指標、時序健康資料、節點清單與整合狀態
- 設定與方案:執行階段設定變數、訂閱方案、權益鍵與點數包
- 安全與 Webhook:API 金鑰清單(僅預覽)、根租戶成員、Webhook 設定、事件類型與投遞紀錄
- 適用情境
- 適合自行架設 LastSaaS 執行個體、想用自然語言詢問自家後台資料的情境,例如營收趨勢、最近一小時的關鍵日誌,或某個租戶的方案與帳務狀態,不必開啟管理介面。
- 執行需求
- 需要一個可透過網路存取的執行中 LastSaaS 執行個體,以及以 mcp 參數啟動的 LastSaaS 命令列程式。需設定 LASTSAAS_URL 環境變數,並在 LASTSAAS_API_KEY 提供具管理員權限的根租戶 API 金鑰(於後台 API Keys 頁面建立)。以 macOS 桌面安裝包形式提供。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Lastsaas,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
LastSaaS
[CI] [codecov] [Go Report Card]
The last SaaS boilerplate you'll ever need.
LastSaaS is a complete, production-ready SaaS foundation built entirely through conversation with Claude Code. It gives you multi-tenant account management, authentication, role-based access control, white-label branding, Stripe billing, API keys, outgoing webhooks, a full admin interface, system health monitoring, credit-based usage tracking, and product analytics with telemetry — everything you need to launch a SaaS business, ready to customize for your specific product.
The bottleneck for building software isn't engineering capacity anymore — it's imagination. LastSaaS proves it: a single person with a clear vision and an AI agent can stand up what used to require a team and months of work. And because it was built with Claude Code, the codebase is fork-ready for agentic engineering — point an AI agent at it and keep building your product through conversation.
Why LastSaaS Exists
Every SaaS product needs the same boring foundation: user accounts, teams, roles, authentication, admin dashboards, billing, usage limits, branding, webhooks, API keys. Historically, building that foundation meant weeks of plumbing before you could write a single line of your actual product.
LastSaaS eliminates that. Fork it, point an AI agent at it, and start building your product on top of a foundation that already handles:
- Multi-tenant isolation with role-based access
- JWT authentication with refresh token rotation
- Google, GitHub, and Microsoft OAuth integration
- Magic link passwordless authentication
- MFA/TOTP with recovery codes
- Email verification and password resets
- Team invitations and member management
- Stripe billing with subscriptions, per-seat pricing, trials, and credit bundles
- Plan entitlements and billing enforcement middleware
- White-label branding with custom themes, logos, landing pages, and custom pages
- API key authentication (admin and user scopes)
- Outgoing webhooks with 19 event types and HMAC-SHA256 signing
- Credit-based usage tracking (subscription + purchased buckets)
- Promotion codes and coupon management via Stripe
- Product analytics dashboard (conversion funnel, KPIs, retention cohorts, engagement metrics)
- Telemetry event system with Go SDK and REST API for custom event tracking
- A full admin interface for managing everything
- Built-in API documentation (HTML and Markdown)
- Real-time system health monitoring
- Financial metrics dashboard (revenue, ARR, DAU, MAU)
- MCP (Model Context Protocol) server for AI-powered admin access
- CLI tools for server administration
- Auto-versioning with database migrations
- Production deployment on Fly.io
This is open-source infrastructure for the agentic era of software — where the person with the idea is also the person who ships it. The codebase follows consistent patterns that AI agents navigate fluently, so you can keep evolving it the same way it was built.
How It Compares
If you're evaluating SaaS boilerplates, you've probably looked at ShipFast, Supastarter, MakerKit, SaaS Pegasus, and Gravity. Here's why technical founders choose LastSaaS instead.
Free and open-source. ShipFast costs $169, MakerKit runs $199–599, Supastarter starts at $299, SaaS Pegasus charges $249/year, and Gravity is under $1K. LastSaaS is MIT-licensed — fork it, ship it, never pay a license fee. You own the code completely.
Go backend, not another Next.js project. ShipFast, Supastarter, MakerKit, and Gravity are all JavaScript/TypeScript stacks. SaaS Pegasus uses Django. LastSaaS pairs a Go backend with a React + TypeScript frontend — giving you compiled-binary deployment, low memory footprint (a 14MB Alpine container), and the concurrency model that Go is known for. If your SaaS will handle real traffic or you want a backend that isn't a Node.js monolith, this matters.
Genuine multi-tenancy. ShipFast has no multi-tenancy at all. SaaS Pegasus and Gravity offer basic team features but not true tenant isolation. LastSaaS gives you full multi-tenant architecture: tenant-scoped data isolation, three-tier RBAC (owner/admin/user), team invitations, ownership transfer, per-tenant activity logs, and per-tenant billing. This is the difference between "users can collaborate" and "each customer gets their own isolated workspace."
White-label branding built in. Most boilerplates give you a theme toggle at best. LastSaaS includes a full white-label system: custom app name, logo, colors, fonts, landing page, custom pages, CSS injection, favicon, configurable navigation with entitlement gating, and auth page customization. If you're building a platform where customers see your brand (not yours-plus-a-framework), this saves weeks.
Outgoing webhooks, not just Stripe webhooks. None of the alternatives — ShipFast, Supastarter, MakerKit, SaaS Pegasus, or Gravity — include an outgoing webhook system. LastSaaS ships with 19 event types across billing, team lifecycle, user lifecycle, credits, and security events, with HMAC-SHA256 signing, delivery tracking, and test events. Your customers can integrate with your platform from day one.
API keys with scoped access. ShipFast, Supastarter, and MakerKit don't include API key management. LastSaaS provides lsk_-prefixed API keys with admin and user authority scopes, SHA-256 hashed storage, and last-used tracking — ready for your customers to build integrations.
Health monitoring and financial dashboards. No competing boilerplate includes system health monitoring. LastSaaS collects CPU, memory, disk, HTTP, and MongoDB metrics every 60 seconds across all nodes, with 8 real-time charts, threshold alerting, and 30-day retention. The financial dashboard gives you revenue, ARR, DAU, and MAU time-series out of the box.
Product analytics with telemetry. No competing boilerplate includes product analytics. LastSaaS auto-instruments the customer journey — visitor → signup → plan page → checkout → paid conversion → upgrade — and visualizes it as a conversion funnel. The PM dashboard includes SaaS KPIs (MRR, ARR, ARPU, LTV, churn rate, trial conversion), retention cohort analysis, engagement metrics (DAU/WAU/MAU for paying subscribers), and a custom event explorer. A Go SDK and REST API let you track your own events with zero configuration.
MCP server for AI-native operations. This is unique to LastSaaS. A built-in Model Context Protocol server with 32 read-only tools lets you connect Claude (or any MCP-compatible AI) directly to your running application. Query your ARR trend, investigate error spikes, audit API keys, or review system health — all in natural language. No other SaaS boilerplate offers agentic admin access.
Built for AI-assisted development. LastSaaS was built entirely through conversation with Claude Code, and the codebase is designed to keep being built that way. Consistent patterns, clear naming, and a structure AI agents navigate fluently. Fork it, point an agent at it, describe your product, and keep going. The competing boilerplates were built for manual development — LastSaaS is built for the way software is made now.
Features
Authentication & Identity
- Email/password registration with bcrypt hashing
- Email verification via Resend
- Google, GitHub, and Microsoft OAuth with automatic account linking
- Magic link passwordless login via email
- MFA/TOTP two-factor authentication with setup wizard
- Recovery codes for MFA backup access
- JWT access tokens (30min) + refresh tokens (7 days) with rotation
- Account lockout after failed login attempts
- Password reset flow with secure tokens
- Password strength enforcement
- Session management — list active sessions, revoke individual or all sessions
- Session revocation on password change
Multi-Tenancy
- Root tenant (system admin) + customer tenants
- Users belong to tenants via memberships
- Roles: owner, admin, user with hierarchical permissions
- Team invitations with email notifications
- Ownership transfer between members
- Per-tenant activity log
- Tenant settings self-service
Billing & Credits (Stripe)
- Subscription plans with monthly and annual billing (configurable annual discount %)
- Pricing models: flat-rate or per-seat (with included seats, min/max seat limits)
- Free trials with configurable trial days per plan and trial abuse prevention
- Credit bundles for one-time purchases
- Dual credit buckets: subscription credits (reset or accrue) + purchased credits
- Stripe Checkout (redirect-based) for payment collection
- Stripe Billing Portal for customer self-service (payment methods, invoices)
- Multi-currency support with configurable default currency
- Stripe Tax automatic tax calculation
- Promotion codes and coupons — create and manage via admin UI, linked to Stripe
- Invoice generation — sequential invoice numbers, PDF download, tax breakdown
- Transaction history — per-tenant and admin-wide with search and filtering
- Financial metrics — revenue, ARR, DAU, MAU time-series with charting
- Billing enforcement middleware — blocks expired subscriptions from paid features
- Entitlement middleware — gate features based on plan (boolean and numeric entitlements)
- Billing waiver for special accounts (root tenant, demo accounts)
- Admin subscription management — cancel, modify, reassign plans
- Refund and dispute handling — webhook handlers for
charge.refunded,charge.dispute.created,charge.dispute.closed
White-Label Branding
- Custom app name, tagline, and logo (text, image, or both modes)
- Theme colors (primary, accent, background, surface, text) with auto-generated shade palettes
- Custom fonts (body and heading)
- Custom landing page with configurable HTML
- Custom pages served at
/p/{slug}with SEO metadata - Custom CSS injection
- Custom head HTML injection (analytics, meta tags)
- Favicon upload
- Media library for image/asset management
- Configurable navigation sidebar with entitlement-gated items
- Auth page customization (login/signup headings and subtext)
- Dashboard HTML customization
- Open Graph image support
API Keys
- Create API keys with
lsk_prefix - Two authority levels: admin (auto-resolves root tenant) and user (requires X-Tenant-ID)
- SHA-256 hashed storage — raw key shown only at creation
- Last-used timestamp tracking
- Admin UI for key management
- Supports both JWT and API key authentication on all endpoints
Outgoing Webhooks
- 19 event types across 5 tiers:
- Billing: subscription.activated, subscription.canceled, payment.received, payment.failed
- Team lifecycle: member.invited, member.joined, member.removed, member.role_changed, ownership.transferred
- User lifecycle: user.registered, user.verified, user.deactivated
- Credits & billing: credits.purchased, plan.changed, tenant.created, tenant.deactivated
- Audit & security: user.deleted, tenant.deleted, api_key.created, api_key.revoked
- HMAC-SHA256 payload signing with
whsec_-prefixed secrets - Delivery tracking with response codes, response bodies, and duration
- Test event delivery
- Secret regeneration
- Event type filtering per webhook
Admin Interface
- Dashboard with user/tenant counts, health overview, and business metrics
- User management — list, search, view profiles, edit, suspend, impersonate, delete with ownership preflight
- Tenant management — list, view, edit, plan assignment, status control, subscription management
- Financial overview — transaction history across all tenants, revenue/ARR/DAU/MAU charts
- Product analytics — conversion funnel, SaaS KPIs, retention cohorts, engagement metrics, custom event explorer
- Plan management — create, edit, archive, entitlements, per-seat configuration, trial days
- Credit bundle management — create, edit, sort, activate/deactivate
- Promotions — create and manage Stripe promotion codes and coupons
- Branding editor — theme colors, logos, fonts, landing page, custom pages, CSS, navigation
- API key management — create, view, revoke
- Webhook management — create, edit, delete, test, view delivery history
- Announcements — publish system-wide announcements
- System log viewer with severity filtering, search, and user filtering
- Configuration variable editor (strings, numbers, enums, templates)
- In-app messaging — send messages to individual users
- Root members — manage the admin team with invitations and role changes
- CSV export for users and tenants
- Admin impersonation — log in as any user for debugging
- System health monitoring (see below)
- Integration health checks — MongoDB, Stripe, Resend, Google OAuth status
- Three-tier admin access: user (read-only), admin (read-write), owner (destructive operations)
System Health Monitoring
- Automatic node registration with heartbeat (30s interval)
- Metrics collection every 60s: CPU, memory, disk, network, HTTP request stats, MongoDB stats, Go runtime
- HTTP metrics middleware with percentile latency tracking (p50/p95/p99)
- Threshold-based alerting (configurable warning/critical levels)
- 30-day automatic data retention via MongoDB TTL indexes
- Real-time dashboard with 8 time-series charts (Recharts)
- Aggregate, all-nodes overlay, and single-node filter modes
- Time range selection: 1h, 6h, 24h, 7d, 30d
- Integration health panel (MongoDB, Stripe, Resend, Google OAuth connectivity)
Product Analytics & Telemetry
- Conversion funnel — Visitors → Signups → Plan Page Views → Checkouts → Paid Conversions → Upgrades, with conversion rates at each step
- SaaS KPIs — MRR, ARR, ARPU, LTV, churn rate, trial-to-paid conversion rate, median time to first purchase, active subscriber count
- Retention cohorts — weekly or monthly cohort retention table with color-coded heatmap (tracks
lastLoginAtover time) - Engagement metrics — DAU/WAU/MAU for paying subscribers, average sessions per user, top features by usage, credit consumption trend
- Custom event explorer — browse all event types, view trend charts, filter by name and time range
- Telemetry Go SDK —
telemetry.Track()/TrackBatch()/TrackPageView()/TrackCheckoutStarted()/TrackLogin()for direct in-process event recording (no HTTP overhead) - Telemetry REST API —
POST /telemetry/track(anonymous, rate-limited) for page views;POST /telemetry/eventsand/telemetry/events/batch(authenticated) for custom events - Auto-instrumentation — registration, email verification, login, checkout, subscription activation/cancellation, and plan changes are tracked automatically
- 365-day retention — telemetry events auto-expire via MongoDB TTL index
- Rate limiting — 60 req/min per IP for anonymous tracking, 120 req/min per user for authenticated events
User Self-Service
- Profile editing (display name, email)
- Theme preference (light/dark)
- Password management
- MFA setup and management
- Session viewer with remote revocation
- Account deletion with data cleanup
- Data export (GDPR-friendly)
- Billing management (plan selection, credit purchases, invoice history, PDF download)
- Onboarding flow
Built-in API Documentation
- Interactive HTML API reference at
/api/docswith expandable endpoint details - Markdown API reference at
/api/docs/markdownfor integration in external docs - Comprehensive webhook event reference with payload descriptions
- Auto-versioned from the VERSION file
CLI Administration
lastsaas setup— Initialize the system (create root tenant + owner)lastsaas start/stop/restart— Server process managementlastsaas change-password— Reset any user's passwordlastsaas send-message— Send system messages to userslastsaas transfer-root-owner— Transfer root tenant ownershiplastsaas config list|get|set— Manage configuration variableslastsaas version— Show binary and database versionslastsaas status— Check system healthlastsaas mcp— Start the MCP server (see MCP Server below)
MCP Server (AI Admin Access)
A built-in Model Context Protocol server gives AI assistants like Claude read-only access to your admin data — dashboards, users, tenants, financials, logs, health, and more. Useful for asking questions like "what's our ARR trend?" or "show me critical logs from the last hour" in natural language.
- 32 read-only tools across 14 categories — no write operations, safe by design
- 2 resources —
lastsaas://dashboardandlastsaas://healthfor automatic context - API key authentication — requires a root-tenant API key, same auth as the admin API
- Stdio transport — runs locally, compatible with Claude Desktop and Claude Code
Tool categories:
- About — software version and environment
- Dashboard — user/tenant counts, health overview
- Tenants — list with filtering, detailed view with members
- Users — list with search, detailed view with auth methods and memberships
- Financial — transaction history, revenue/ARR/DAU/MAU time-series metrics
- Logs — full-text search with severity/category/date filters, severity counts
- Health — current system metrics, time-series health data, node list, integration status
- Config — list and inspect runtime configuration variables
- Plans — plan details, entitlement keys, credit bundles
- Announcements — list published and draft announcements
- Promotions — Stripe promotion codes with coupon details
- Security — API key inventory (previews only), root tenant members
- Webhooks — webhook configs, event type reference, delivery history
Security
- Security headers (CSP, HSTS, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy)
- Rate limiting on authentication endpoints
- Request body size limits
- NoSQL injection protection (regex input escaping)
- XSS protection via DOMPurify for injected HTML
- Trusted proxy IP resolution (Fly-Client-IP)
- Webhook signature verification (Stripe inbound, HMAC-SHA256 outbound)
- Idempotent webhook processing via unique event ID index
- System log injection detection with automatic critical alerts
- Refresh token rotation with family-based revocation
Production Ready
- Dockerized multi-stage build (Go + Node + Alpine)
- Fly.io deployment with auto-stop/auto-start machines
- SPA serving from the Go binary (no separate web server needed)
- CORS, security headers, rate limiting
- Graceful shutdown with connection draining
- Auto-versioning with database migration on startup
- Version notification messages to admin users after upgrades
Tech Stack
Prerequisites
- Go 1.25+ — install
- Node.js 22+ — install
- MongoDB — either:
- MongoDB Atlas (free M0 tier works fine)
- Local MongoDB Community Edition
- Git
Optional
- Resend API key — for email verification, password resets, and invitations
- Google OAuth credentials — for Google sign-in
- GitHub OAuth credentials — for GitHub sign-in
- Microsoft OAuth credentials — for Microsoft sign-in
- Stripe account — for billing (subscriptions, credit purchases, invoices)
- Fly.io account — for production deployment
Quick Start
1. Clone the repository
2. Run the setup script
This will prompt you for:
- Database name — the project identity (two projects sharing a name share the same user base)
- MongoDB URI — your Atlas connection string or
mongodb://localhost:27017 - JWT secrets — auto-generated
- Google OAuth credentials — optional, press Enter to skip
- Resend API key — optional, press Enter to skip
- App name and email settings
It writes a .env file and copies the config template.
3. Start the backend
The server starts on http://localhost:4290.
4. Start the frontend
In a separate terminal:
The frontend starts on http://localhost:4280.
5. Initialize the system
Run the CLI setup to create the root tenant and admin account:
This creates the root tenant (your admin organization) and the owner account. You can now log in at http://localhost:4280.
Setting Up Stripe Billing
Stripe integration is optional but required for paid subscriptions, credit bundle purchases, and invoice generation. If you skip this section, LastSaaS works as a free-tier-only platform.
1. Create a Stripe account
Sign up at stripe.com and complete onboarding. You can use test mode during development.
2. Get your API keys
Go to Stripe Dashboard → Developers → API keys and copy:
- Publishable key (starts with
pk_test_orpk_live_) - Secret key (starts with
sk_test_orsk_live_)
3. Create a webhook endpoint
Go to Stripe Dashboard → Developers → Webhooks → Add endpoint:
- Endpoint URL:
https://your-domain.com/api/billing/webhook- For local development with the Stripe CLI:
stripe listen --forward-to localhost:4290/api/billing/webhook
- For local development with the Stripe CLI:
- Events to subscribe to — select these 8 events:
checkout.session.completedinvoice.paidinvoice.payment_failedcustomer.subscription.updatedcustomer.subscription.deletedcharge.refundedcharge.dispute.createdcharge.dispute.closed
After creating the endpoint, copy the Signing secret (starts with whsec_).
4. Set environment variables
Add these to your .env file:
5. Create plans in the admin UI
Once the backend is running with Stripe configured:
- Log in as the root tenant owner
- Go to Admin → Plans and create your subscription plans
- Set pricing, billing intervals, trial days, entitlements, and credit allocations
- Optionally create credit bundles under Admin → Credit Bundles
- Optionally create promotion codes under Admin → Promotions
Stripe Products and Prices are created automatically when customers check out — you don't need to configure anything in the Stripe Dashboard beyond the API keys and webhook.
6. Go live
When you're ready for production:
- Switch to live mode in the Stripe Dashboard
- Create a new webhook endpoint with your production URL and the same 8 events
- Update your production environment variables with the live keys and webhook secret
Configuration
Config files live in backend/config/:
dev.example.yaml/prod.example.yaml— committed templatesdev.yaml/prod.yaml— your actual configs (gitignored)
Set LASTSAAS_ENV=dev or LASTSAAS_ENV=prod to select which config to load. Defaults to dev.
Secrets are referenced as ${ENV_VAR} in YAML and expanded from environment variables at load time. Default values use ${VAR:default} syntax.
Environment Variables
Project Structure
API Documentation
LastSaaS includes built-in, self-hosted API documentation:
- Interactive HTML reference:
GET /api/docs— expandable endpoint cards with request/response examples - Markdown reference:
GET /api/docs/markdown— for embedding in external documentation
The documentation is generated from code and always matches the running version. It covers all endpoints, parameters, request/response formats, and all 19 webhook event types with payload descriptions.
MCP Server Setup
The MCP server lets AI assistants query your admin data in natural language. It proxies read-only requests to the LastSaaS admin API using an API key.
Prerequisites
- A running LastSaaS instance (local or deployed)
- A root-tenant API key — create one in Admin → API Keys with admin authority
Usage with Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Usage with Claude Code
Add to your project's .mcp.json:
Build the CLI binary
Environment Variables
Available Tools (26)
MCP Examples
These examples show how the MCP tools work in practice. Each example lists the user prompt and the exact tool calls that execute behind the scenes.
Example 1: Check Business Overview
Prompt: "How's my SaaS doing today?"
Tool calls:
dashboard_stats— returns a snapshot:
Example 2: Investigate Revenue Trend
Prompt: "Show me our revenue trend for the last 30 days"
Tool calls:
get_financial_metrics— queries time-series data: Returns daily revenue data points (values in cents) for charting, e.g.:get_financial_metrics— follow up with ARR:
Example 3: Find a Specific Tenant
Prompt: "Look up the Acme Corp tenant and show me their details"
Tool calls:
list_tenants— searches by name: Returns matching tenants with IDs, plan names, and billing status.get_tenant— fetches full details using the tenant ID: Returns plan info, billing status, credit balances, subscription dates, and a full member list with roles.
Example 4: Search for Critical Errors
Prompt: "Were there any critical errors in the last hour?"
Tool calls:
search_logs— filters by severity and time: Returns log entries with timestamps, categories, messages, and metadata. For example:get_log_severity_counts— provides overall distribution:
Example 5: Monitor System Health
Prompt: "How's the system health? Are all integrations working?"
Tool calls:
get_system_health— returns current metrics:get_integrations— checks third-party connectivity:
Example 6: Audit API Key Usage
Prompt: "Show me all active API keys and when they were last used"
Tool calls:
list_api_keys— returns inventory (full keys are never exposed):
Example 7: Review Subscription Plans
Prompt: "What plans do we offer and how many subscribers does each have?"
Tool calls:
list_plans— returns all plans with pricing and subscriber counts:list_credit_bundles— shows available credit purchases:
Example 8: Check Webhook Delivery
Prompt: "Are our webhooks delivering successfully? Show me the recent history for the production webhook"
Tool calls:
list_webhooks— shows all configured webhooks:get_webhook— fetches delivery history for the production webhook: Returns recent delivery attempts with status codes, response times, and any failures:
Example 9: User Lookup and Membership
Prompt: "Find the user with email [email protected] and show me their tenant memberships"
Tool calls:
list_users— searches by email: Returns the matching user with ID, verification status, and last login.get_user— fetches full details: Returns:
Example 10: Health Metrics Deep Dive
Prompt: "Show me the CPU and memory trends across all nodes for the last 24 hours"
Tool calls:
list_nodes— identifies all server nodes:get_health_metrics— fetches aggregate time-series data: Returns data points every 60 seconds with CPU %, memory %, disk %, HTTP request counts, and latency percentiles — ready for charting.get_health_metrics— optionally drill into a specific node:
Deployment
Fly.io
LastSaaS includes a Dockerfile and Fly.io configuration for production deployment.
The Dockerfile builds both the Go backend and React frontend into a single ~14MB Alpine container. The Go binary serves the frontend SPA directly — no nginx or separate web server required.
Other Platforms
The Docker image works anywhere containers run. The only external dependency is MongoDB. Set the environment variables listed above and expose port 8080.
Fork It and Keep Building with AI
LastSaaS was built entirely through conversation with Claude Code — every feature, every handler, every component was described in natural language and implemented by an AI agent. But the real point isn't that it was built this way — it's that it's designed to keep being built this way.
The codebase follows consistent patterns, uses clear naming, and maintains a structure that AI agents navigate fluently. Fork it, point Claude Code at it, and start describing your product. The agent already understands the patterns — authentication, tenancy, billing, middleware, events — and builds on top of them naturally. You're not starting from scratch; you're continuing a conversation.
Here's what's already wired up for you:
- Add your product's data models in
backend/internal/models/ - Add API handlers in
backend/internal/api/handlers/ - Wire routes in
backend/cmd/server/main.go - Add frontend pages in
frontend/src/pages/ - Use the tenant context — every authenticated request carries the user's tenant, so your product logic gets multi-tenancy for free
- Use the credit system — check and deduct credits for usage-based features
- Use entitlements — gate features with
middleware.RequireEntitlement(db, "feature_name")andmiddleware.RequireActiveBilling() - Use the config store — add runtime-configurable settings without redeployment
- Use the event emitter — emit events from your handlers and they'll automatically be delivered to configured webhooks
- Use API keys — your endpoints automatically support both JWT and API key authentication
- Use the branding system — your UI inherits the white-label theme automatically via the BrandingContext
- Use the telemetry system — track custom events with
telemetry.Track()in Go orPOST /telemetry/eventsfrom external clients, and they'll automatically appear in the PM dashboard
Privacy Policy
LastSaaS is self-hosted software — you control your database, your hosting, and your data. The MCP server connects to your LastSaaS instance via the HTTP API using read-only tools — no data is transmitted to Metavert LLC or any third party.
For the full privacy policy, see: https://www.metavert.io/lastsaas-privacy-policy
License
MIT - Copyright 2026 Metavert LLC
來源:README.md,提交 51a20a7
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分