Skip to content

Latest commit

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date

L2MAS: Live2D Multi-Agent Animation System

PythonMCPA2ADockerLicenseVersion

Protocol-first Live2D multi-agent animation prototype for the 2026 agent ecosystem.

L2MAS explores how creative agents can plan, generate, voice, animate, review, and render Live2D animation through interoperable protocols. It uses A2A for agent collaboration, MCP 2025-11-25 + Streamable HTTP + Tasks for tool access, and a provider registry so cloud models and local models are first-class peers.

Qwen3.7-Max, Gemini Omni, Eleven v3, Textoon, and Live2D Cubism 5.3 are treated as 2026 capability baselines, not hard-coded dependencies.

At a Glance

SignalWhat to know
PurposePrototype a protocol-first, multi-agent Live2D animation pipeline.
Search keywordsLive2D, multi-agent AI, AI agents, MCP, Model Context Protocol, A2A, Agent2Agent, local AI, ComfyUI, Ollama, vLLM, FFmpeg, VTuber.
Runs todayDeterministic mock MVP plus a local FFmpeg video.compose smoke path.
Extension modelProvider registry and capability routing; agents call capabilities, not fixed model names.
Best forAI agent builders, Live2D/VTube tooling researchers, local AI workflow developers, and animation automation experiments.

Languages

English is the canonical documentation entry. Localized READMEs are limited to the top language set for Live2D technical development and community distribution: English, Simplified Chinese, Korean, Spanish, and Japanese.

LanguageREADME
EnglishREADME.md
简体中文README.zh-CN.md
한국어README.ko.md
EspañolREADME.es.md
日本語README.ja.md

Translation policy: docs/i18n/README.md.

Project Status

L2MAS is an early open-source prototype. The repository is designed around a two-stage roadmap:

StageGoalStatus
MVP prototypeRun a local end-to-end path: script -> storyboard -> model -> voice -> motion -> renderIn progress
v2.0 architectureEvolve into distributed A2A agents, MCP tool clusters, streaming task progress, Kubernetes, observability, security, and multi-tenant provider routingPlanned

Current agent skeletons:

AgentMVP rolev2.0 direction
DirectorStoryboard planning and orchestrationCross-agent task routing and quality gates
ModelingSample model, Textoon local pipeline, or mock Live2D model pathText/image-to-Live2D provider routing
VoiceCloud/local TTS or mock audio artifactEmotional TTS, voice conversion, STT integration
AnimationMotion and expression parameter planningMotion generation, lip-sync aware shot animation
RendererFFmpeg local compositionDistributed MCP render service

Planned v2.0 agents include Writer, Artist, LipSync, and QA.

Why This Exists

Most AI animation experiments bind directly to one model, one tool API, or one workflow graph. L2MAS instead separates the system into:

  • Generic protocol layer: A2A, MCP, task state, artifact schema, provider registry, and capability routing.
  • Specialized creative layer: Live2D, Textoon, VTube/Live2D runtime, FFmpeg, TTS/STT, video generation, and video editing providers.
  • Cloud/local parity: local providers are not a fallback afterthought; they are a supported deployment mode for privacy, cost control, offline work, and experimentation.

Agents call capabilities such as voice.generate or motion.generate. They do not call a fixed vendor model directly.

Architecture

flowchart TB
user["User / App / API"] --> director["Director Agent"]
director --> writer["Writer Agent v2.0"]
director --> artist["Artist Agent v2.0"]
director --> modeling["Modeling Agent"]
director --> voice["Voice Agent"]
director --> animation["Animation Agent"]
director --> renderer["Renderer Agent"]
voice --> lipsync["LipSync Agent v2.0"]
animation --> qa["QA Agent v2.0"]
subgraph protocol["Protocol and Routing Layer"]
a2a["A2A Agent Cards and Tasks"]
mcp["MCP 2025-11-25 Streamable HTTP and Tasks"]
registry["Provider Registry"]
artifacts["Artifact Schema"]
end
director --> protocol
modeling --> protocol
voice --> protocol
animation --> protocol
renderer --> protocol
subgraph providers["Cloud, Local, and Hybrid Providers"]
llm["LLM / Agent Providers"]
visual["Image, Video, Character Providers"]
live2d["Live2D / Textoon Tooling"]
speech["TTS / STT / Voice Conversion"]
ffmpeg["FFmpeg Render Pipeline"]
end
protocol --> providers
Loading

Capability Surface

The project standardizes on capability names that can be routed to cloud, local, or hybrid providers:

CapabilityPurpose
script.planscript planning, storyboard structure, shot metadata
character.generatecharacter concepts, visual references, style exploration
model.live2d.generateLive2D model generation or model artifact selection
voice.generatedialogue voice generation
speech.transcribespeech-to-text or phoneme preparation
voice.convertvoice conversion or cloning workflows
lip_sync.alignphoneme, viseme, and mouth-shape alignment
motion.generateexpression, pose, parameter, and motion sequencing
video.composescene composition and final render
video.editpost-generation video editing
quality.reviewscript, motion, audio, render, and policy review

Provider Registry

Provider registry is the central contract for model and tool routing. Example: config/provider_registry.example.json.

Required fields:

FieldMeaning
provider_idstable provider identifier
localitycloud, local, or hybrid
protocolopenai-compatible, ollama, mcp, comfyui, a2a, or custom-rest
capabilitiessupported capability names
endpointcloud API, local service URL, or MCP/A2A endpoint
modelsavailable model identifiers or workflow names
hardware_profileexpected hardware or runtime profile
priorityrouting priority; lower is preferred
fallbacksordered fallback provider IDs
privacy_moderemote, local-only, or hybrid
statusverified, experimental, template, or mock
live_test_envoptional environment variable that enables live provider tests
auth_envoptional API key environment variable
healthcheckoptional HTTP or binary probe metadata
verification_evidenceoptional evidence record required when status is verified

Provider availability is intentionally conservative. As of the current development state, local-ffmpeg is the only live-verified non-mock provider, with evidence recorded in docs/verification/local-ffmpeg.json. Other real adapters are contract-tested as experimental or held as template entries until a live service is validated.

Local Model Support

L2MAS treats local inference and local media pipelines as first-class runtime targets.

CategoryCloud baseline examplesLocal/self-hosted compatibility
LLM / AgentQwen3.7-Max, Claude, GPT, GeminiOpenAI-compatible endpoint, Ollama, vLLM, LM Studio, llama.cpp server
Image / video / characterGemini Omni, specialized image/video APIsComfyUI local API, Diffusers worker, Textoon local pipeline
TTS / STTEleven v3, cloud STT/TTS APIslocal TTS, Whisper, whisper.cpp
Voice conversioncloud voice conversion APIsRVC-like and SeedVC-like providers
Embedding / rerankcloud embedding/rerank APIslocal embedding services, OpenAI-compatible embedding endpoints
Render / composehosted media processingFFmpeg local, FFmpeg MCP server

Quick Start

Validate the current prototype configuration:

cp .env.example .env
docker compose config

Validate JSON configuration:

python3 -m json.tool config/a2a_config.json > /dev/null
python3 -m json.tool config/mcp_config.json > /dev/null
python3 -m json.tool config/provider_registry.example.json > /dev/null

Run the deterministic local MVP smoke tests:

python3 -m unittest discover -s tests -v

Generate a provider verification probe report without enabling live network probes:

python3 examples/probe_providers.py --output output/provider-probe.json

If FFmpeg is available, the non-mock path can produce a real local MP4 container for video.compose while earlier generation stages remain deterministic prototype artifacts.

Use a local LLM by starting any compatible endpoint, then prioritizing that provider in the registry:

  • Ollama: http://localhost:11434
  • vLLM OpenAI-compatible server
  • LM Studio local server
  • llama.cpp server
  • Any OpenAI-compatible endpoint

The MVP path must remain runnable with mock or local providers when cloud API keys are absent.

Documentation

DocumentPurpose
docs/architecture/two-stage-roadmap.mdMVP to v2.0 architecture roadmap
deployment_guide.mdEnglish deployment and evolution guide
deployment_guide.zh-CN.mdSimplified Chinese deployment guide
config/provider_registry.example.jsonprovider registry reference example
docs/provider-verification.mdprovider status, live verification, and disclosure policy
docs/i18n/README.mdlocalization policy
docs/github/repository-launch-checklist.mdGitHub publishing checklist and metadata
docs/github/discovery-profile.mdGitHub discovery profile, topics, labels, and community funnel
docs/releases/v0.1.0.mdv0.1.0 release notes
docs/releases/v0.2.0-draft.mdv0.2.0 draft notes and verification policy

Open Source

L2MAS is licensed under Apache-2.0.

Community filePurpose
CONTRIBUTING.mdcontribution workflow and validation
CODE_OF_CONDUCT.mdcommunity behavior expectations
SECURITY.mdprivate vulnerability reporting
SUPPORT.mdsupport channels and issue guidance
CHANGELOG.mdnotable changes
GOVERNANCE.mdmaintainer-led governance
CITATION.cffcitation metadata for GitHub

Do not commit API keys, private endpoints, proprietary model weights, commercial media, or unauthorized Live2D assets.

This project is not affiliated with Live2D Inc. Live2D, Cubism, and related names are trademarks or registered trademarks of their respective owners.

GitHub Discovery

Suggested repository description:

Live2D multi-agent animation prototype with MCP, A2A, provider routing, local AI, ComfyUI/Ollama/vLLM, and FFmpeg.

Suggested topics:

live2d, vtuber, animation-generation, text-to-animation, generative-ai, ai-agents, multi-agent, mcp, model-context-protocol, a2a, agent-to-agent, provider-registry, local-ai, openai-compatible, ollama, vllm, comfyui, diffusers, ffmpeg, python

More launch details: docs/github/discovery-profile.md.

Keywords

Live2D animation generation, multi-agent AI, AI agents, MCP, Model Context Protocol, A2A, Agent2Agent, provider registry, capability routing, local AI, Ollama, vLLM, LM Studio, llama.cpp, ComfyUI, Diffusers, FFmpeg, Textoon, TTS, STT, lip sync, VTuber automation, cloud local hybrid AI.

References

About

Live2D multi-agent animation prototype with MCP, A2A, provider routing, local AI, ComfyUI/Ollama/vLLM, and FFmpeg.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages