Skip to main content
Glama
Boltagon's Hoard MCP Server

Boltagon's Hoard MCP Server

by Luissalet
README.md
# Boltagon's Hoard

[Español](README.es.md)

![Boltagon's Hoard](app-icon.png)

## What it is

Boltagon is a local voice service for applications. It transcribes audio, interprets typed or spoken dictation, and turns text into speech. Its Python package is `cyrano_hoard` and its plugin ID is `cyrano`.

## What it does

- **Transcription.** Recognises speech from an upload or a local audio file. The caller can pass a language and vocabulary hints. The resident recogniser uses local models and can fall back to family transcription through the Hub. The response reports which route handled the audio.
- **Dictation.** Cleans up dictated text and can interpret Spanish (Spain) corrections and editing commands. When the caller supplies a schema, Boltagon returns validated field values with quotes from the original utterance, plus missing or ambiguous fields. A separate tool suggests when to end a turn from a partial transcript.
- **Dictation sessions.** Accumulate fields over several turns, including provisional results, typed corrections, cancellation and undo of the last change.
- **Text to speech.** Queues speech, streams PCM audio as it becomes available, and returns the completed WAV. It reuses cached phrases and can pause or release its voice worker while dictation remains available. The synthesis engine is configurable.
- **Speech preparation and voice profiles.** Normalises text for speech in Spanish (Spain) and English, including amounts, dates, times and units. It supports explicit pronunciations, timed pauses and per-person dictionaries. The **Try it** page lets you test dictation and voice, check recording levels, noise and transcript, and prepare local voice profiles from consented synthetic references.

## Limits

- The calling application handles dialogue, confirmation and any action taken with the proposed fields.
- The dictation rules are designed for Spanish (Spain). Resident speech synthesis supports Spanish (Spain) and English. The `voice_tts` gateway can route requests outside the resident's capabilities to a family provider through the Hub.
- Resident recognition and GPU synthesis require local model weights, a compatible runtime and Hub GPU admission. Custom profiles require a compatible synthesis engine, a per-app grant and a conversation ID.

## Run

Open **Boltagon's Hoard** on demand from Hoard Hub. Use **Try it** in the app to open the browser tools. The default local address is `http://127.0.0.1:5253`.

For development from a checkout with Python 3.11 or later:

```powershell
python -m venv .venv
.venv\Scripts\python -m pip install .
.venv\Scripts\python -m cyrano_hoard --no-browser
```

The default data directory is `data/`. Use `CYRANO_DATA_DIR` and `CYRANO_PORT` to select a different directory and port. Install `".[speech]"` in place of `.` for the resident recogniser. The [agent setup](FAUSTUS.md) covers recogniser configuration and model locations. The [voice guide](docs/VOICE.md) covers the separate synthesis runtime, weights and reference voice. Set `CYRANO_TTS_ENGINE=off` for dictation without synthesis.

## Connection with Faustus and Hoard Hub

The plugin manifest registers the service and its stdio MCP bridge, `mcp_server.py`. The bridge connects to a running instance using `CYRANO_URL` and `CYRANO_TOKEN_FILE` (normally `<data>/mcp-token`).

| Group | MCP tools |
| --- | --- |
| Transcription | `audio_capabilities`, `speech_transcribe`, `transcribe_file`, `transcribe_status`, `transcribe_cancel` |
| Dictation | `dictation_understand`, `dictation_audio`, `dictation_end_turn`, `dictation_phrase_bank` |
| Sessions | `dictation_session_open`, `dictation_session_get`, `dictation_session_turn`, `dictation_session_fix`, `dictation_session_cancel`, `dictation_session_undo` |
| Speech and pronunciation | `speech_normalize`, `voice_speak`, `voice_tts`, `voice_status`, `voice_cancel`, `voice_power`, `pronunciation_read`, `pronunciation_replace`, `pronunciation_undo` |
| Voice profiles | `voice_profile_check_take`, `voice_profile_create`, `voice_profile_list`, `voice_profile_test`, `voice_profile_delete` |

Use `cyrano_hoard.client.DictationClient` from Python or `/cyrano-client.js` from a web app. For direct calls from another local browser origin, list the exact origin in `CYRANO_WEB_ORIGINS`. See the [dictation contract](docs/CONTRACT.md), [audio compatibility routes](docs/AUDIO-COMPATIBILITY.md) and [voice profile guide](docs/VOICE-PROFILES.md).

## Project layout

- `cyrano_hoard/` contains the service, clients, dictation rules, audio workers and browser pages.
- `docs/` contains the API contracts. `tests/` contains the test suite.

## Licence

[MIT](LICENSE). See [third-party notices](THIRD_PARTY_NOTICES.md).