Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MIRAGEA_API_KEYYesYour key from miragea.ai (required). Read from the server's environment only.
MIRAGEA_REF_URLNoOptional default reference clip (public URL).
MIRAGEA_REF_TEXTNoOptional exact words of the default reference clip.
MIRAGEA_VOICE_IDNoOptional default saved voice, so the agent never has to ask.
MIRAGEA_OUTPUT_DIRNoOptional location where files go when no path is given (default ~/Miragea).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Voiceover, voice cloning and captions via the Miragea API. Start with check_setup if unsure. Use list_voices to find the user's saved voices; speak for any text (long text is split and joined automatically); transcribe for SRT/VTT captions of a local audio/video file; narrate_scenes for per-scene audio with exact durations (Remotion/HyperFrames/video timelines). Files are written to MIRAGEA_OUTPUT_DIR (default ~/Miragea) unless a path is given, and existing files are never overwritten. Only clone voices the user owns or has permission to use.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
check_setupA

Check the API key, ffmpeg, saved voices and output folder, with a fix for every problem found.

list_voicesB

List voices saved in the user's Miragea account (ids to pass as voice_id).

speakA

Turn text of any length into speech in a saved voice (voice_id) or a voice cloned from a public clip (reference_audio_url + its exact words in reference_text, billed at the cheaper 1x rate). Returns the saved file path and its exact duration in seconds. format: mp3, wav, flac, opus, aac. model: 'expressive' (default) or 'standard'. speed: 0.25-4.

transcribeB

Transcribe a local audio or video file into readable SRT and VTT captions (whole words, line-length and timing rules applied). style: 'standard' (2 lines x 42 chars) or 'shorts' (1-3 words, uppercase). Results are cached, so asking again for the same file is free.

narrate_scenesB

Voice a list of scenes (strings or {id, text}) as one audio file per scene and return each scene's exact seconds, durationInFrames and startFrame at the given fps, plus a narration.json manifest. captions=true also writes word-level captions.json in Remotion's Caption format. Unchanged scenes are cached and cost nothing on re-runs.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 5 tools

Disambiguation4/5

Each tool has a clearly distinct role: diagnostics (check_setup), voice enumeration (list_voices), single-text TTS (speak), caption generation from media (transcribe), and batch scene narration with frame timings (narrate_scenes). The only mild overlap is speak vs narrate_scenes, both doing TTS, but the descriptions make the boundary clear (single text+file path vs multi-scene timing manifest).

Naming Consistency5/5

All five names are snake_case and verb-first (check_setup, list_voices, speak, transcribe, narrate_scenes), with no camelCase or style mixing. The pattern is predictable and readable throughout.

Tool Count5/5

Five tools is well-scoped for a TTS/captioning server, with each tool earning its place (setup, voice discovery, synthesis, transcription, batch narration). Nothing feels redundant or padded.

Completeness4/5

The core lifecycle is covered: verify environment, discover voices, synthesize speech, transcribe media, and produce multi-scene narration with captions and manifests. Minor gaps exist—no tool to create/delete saved voices or to list/clean up generated output files—but agents can work around these via check_setup and speak's returned file path.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues