srvdemo is a small Go + Wails desktop client used to demonstrate how to call MaClawSrv.
- Configure service address, admin secret, and API credential.
- Initialize demo data through admin APIs: create tenant, user, and credential, or use the one-click wizard.
- Inspect admin overview, dashboard, alerts, audit events, and tenant summary from the desktop demo so operator-facing APIs are visible without curl, including tenant quota headroom and per-user usage cards.
- Exchange
api_key + api_secretfor bearer token. - Read current user info and health status.
- Discover config schema.
- Read, validate, test, and update shared user config.
- Run a quick end-to-end flow that saves config, validates it, creates an instance, and sends the first message.
- Query instances, sessions, messages, runs, and usage summary.
- Exercise skill APIs including search, install, import, export, validate, improve, upload, status lookup, and market account lookup.
- Use one-click skill source templates for GitHub, Zip archive, SkillHub, and SkillMarket install flows.
- Inspect installed skills through selectable registry cards with quick get, validate, export, and delete actions.
- Browse paginated admin, MCP, and skill registry APIs directly from the demo by setting
limitandbeforecursors. - Review skill search results as cards and either quick-fill the install form or install directly from a selected result.
- Exercise MCP APIs including create, update, start, stop, health-check, tool discovery, and template-based setup.
- Refresh the latest conversation state from
session / messages / runendpoints. - Surface the latest request status in a shared operation banner, which helps during demos and troubleshooting.
- Copy request examples and payload drafts from the UI with one click.
- Start from generated client playbooks for bootstrap, config preflight, and first-message flows.
- Follow a dynamic quick guide that reflects current login, config, instance, and session progress.
The demo stores local connection settings in:
%USERPROFILE%\.srvdemo\settings.jsonon Windows$HOME/.srvdemo/settings.jsonon Unix-like systems
The file is written with owner-only intent.
go build ./srvdemoIf you use Wails tooling directly, the frontend is already prebuilt under frontend/dist and embedded by Go.
- Fill in
Base URLandAdmin Secret, then save settings. - In the admin panel, click
One-click bootstrapto auto-create a demo tenant, user, and credential, or create them manually. - The wizard auto-fills
api_keyandapi_secretback into the login form. - Use the
Admin Insightspanel when you want control-plane visibility such as global counts, dashboard trends, alert feeds, audit timelines, or tenant summary. - Click login, configure the user LLM settings, then use
Quick startor manually create an instance and send a message. - Use
Refresh conversation,Get session,List messages, andGet runto inspect the latest agent exchange.
Example service defaults:
- Base URL:
http://127.0.0.1:18080 - Login endpoint:
POST /api/v1/auth/token
- The demo UI now leans toward Chinese-language onboarding and operation guidance for local teams.