Skip to main content
Glama

diypets

diypets MCP server

Cross-platform desktop mascot engine written in Rust (~7.8 MB idle RAM), with multi-pet herds, a built-in 2D/SVG sprite studio, and an MCP server for coding agents.

Live sandbox: shivammahajan.com/diypets · Package: crates.io/crates/diypets

DIYPets built-in mascots

Install

Windows (PowerShell):

irm [https://raw.githubusercontent.com/smresponsibilities/diypets/main/install.ps1](https://raw.githubusercontent.com/smresponsibilities/diypets/main/install.ps1) | iex

macOS / Linux:

curl -fsSL [https://raw.githubusercontent.com/smresponsibilities/diypets/main/install.sh](https://raw.githubusercontent.com/smresponsibilities/diypets/main/install.sh) | bash

From source via Cargo:

cargo install diypets

Related MCP server: AVGE Engine

Usage

diypets                       # start desktop pet runner
diypets say "Build passed"    # trigger a speech bubble on the active pet
diypets mcp                   # run stdio MCP server for Claude / Cursor / Codex
diypets hooks install all     # auto-wire Claude Code & Cursor lifecycle hooks
diypets export-gif pet.xml    # export a lossless transparent looping GIF
diypets doctor                # print config path, logs, herd state, and build info
diypets --version             # print version, git commit, and target triple
diypets-settings              # open herd & behavior settings UI
diypets-creator               # open 2D/SVG pet studio

Right-click any pet or the system tray icon to drop a bouncy ball, toggle Follow Cursor, headpat, sleep, or clone up to 8 pets. Settings live in %APPDATA%\diypets\settings.toml (Windows) or ~/.config/diypets/settings.toml (macOS/Linux); rotating logs auto-prune after 7 days in the sibling logs/ directory.

What's included

Component

Details

Runner (diypets)

Per-pixel layered transparency (Win32 UpdateLayeredWindow, Cocoa, X11/Wayland), window-ledge walking, squash-and-stretch physics, fullscreen auto-hide, multi-pet herds (up to 8).

Packs

5 built-in pixel mascots (Highland Cow, Dog, Polar Bear, Goat, Stegosaurus) plus on-demand eSheep XML pack catalog (27+ community packs).

Studio (diypets-creator)

128x128 layered pixel editor, Marquee Select, Mirror X, Onion Skinning, 1-click Auto-Outline, SVG auto-rigging, 4x EPX RotSprite rotation, live sandbox, and XML export.

Agent MCP (diypets mcp)

Stdio & local HTTP bridge exposing pet_say, pet_react, pet_drop_ball, pet_spawn, pet_set_follow_cursor, and pet_status.

MCP configuration

Add to Claude Desktop, Cursor, or Claude Code (mcp.json):

{
  "mcpServers": {
    "diypets": {
      "command": "diypets",
      "args": ["mcp"]
    }
  }
}

Building & testing

cargo test --all-targets
cargo clippy --all-targets -- -D warnings
python scripts/validate_sprites.py   # checks sprite transparency, foot baselines, and generates walk GIFs

See CONTRIBUTING.md and TICKETS.md for open starter issues and roadmap items.

License

Dual-licensed under MIT or Apache-2.0.

Available Tools

7 tools
create_pet_from_svgA
Idempotent

Generate, auto-rig, install, and optionally spawn a brand-new animated DIYPets desktop mascot from a 128x128 2D SVG facing LEFT (accepts inline svg markup up to 64 KB or a local svg_path). Use when the user asks to create or draw a custom mascot.

Inputs: svg, name, spawn, author, +3 more.

drop_ballA

Drop a bouncy pixel toy ball onto the desktop for all active pets to chase and kick around.

Inputs: no named parameters.

list_herdA
Read-onlyIdempotent

Read-only query returning the count and pack IDs of all currently active DIYPets desktop mascots.

Inputs: no named parameters.

react_petA

Trigger a physical animation reaction and optional speech bubble on all active DIYPets desktop mascots (use when builds pass/fail, tests finish, or you want visual celebration; do not use when only showing text without hopping—use say instead).

Inputs: mood (required), text, duration_ms.

sayA
Idempotent

Display a calm floating speech bubble above the primary DIYPets desktop mascot without forcing a jump or disrupting ongoing walk/sleep state (use for non-intrusive status updates).

Inputs: text (required), duration_ms.

set_follow_cursorA
Idempotent

Toggle Play Mode cursor-following across all active desktop pets.

Inputs: enabled (required).

spawn_petA

Add another existing mascot pack to the active desktop herd (up to 8 simultaneous pets). Call list_herd first if you need to check active count.

Inputs: pack_id.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 7 tools

    Disambiguation4/5

    Each tool maps to a distinct action: spawn vs. create are differentiated by 'add existing pack' vs. 'generate from SVG', and react_pet vs. say are explicitly contrasted (hopping vs. calm bubble). Only spawn_pet/create_pet_from_svg carry mild residual overlap, but the descriptions resolve it.

    Naming Consistency4/5

    Nearly all tools follow a snake_case verb_noun pattern (spawn_pet, set_follow_cursor, list_herd, react_pet, create_pet_from_svg, drop_ball). The lone exception is the bare verb 'say', which is readable but breaks the pattern slightly.

    Tool Count5/5

    Seven tools is well-scoped for a desktop-pet server, with each tool covering a distinct capability (lifecycle, query, interaction, creation, toy). No tool feels redundant or padding.

    Completeness3/5

    The surface supports spawning and creating pets but has no way to dismiss/remove a pet from the herd or manage the 8-pet cap, and no tool lists available pack IDs that spawn_pet requires. These are notable gaps that will make agents guess or dead-end.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers