Skip to main content
Glama
Bosca Ceoil MCP
by boraswim
README.md
<img src="docs/media/logo.png" alt="" width="96" align="right">

# Bosca Ceoil MCP

[![Bosca Ceoil Composer: Game Music & SFX on Agensi](https://img.shields.io/badge/Bosca_Ceoil_Composer-on_Agensi-1f6feb)](https://www.agensi.io/skills/bosca-ceoil-composer-game-music-sfx)
[![M8ven Verified](https://m8ven.ai/badge/mcp/boraswim-bosca-ceoil-mcp-jzdduj?variant=verified&v=e98767865393ba98c040dd07fd66f9be)](https://m8ven.ai/mcp/boraswim-bosca-ceoil-mcp-jzdduj?s=readme)

An [MCP](https://modelcontextprotocol.io) server that lets AI tools compose music in [Bosca Ceoil Blue](https://yurisizov.itch.io/boscaceoil-blue). Ask your AI tool for a song, and watch the notes appear in the app's window. Listen to it, undo anything with Ctrl+Z, and export it to WAV, MIDI, XM or MML.

This is an unofficial companion project, not affiliated with Bosca Ceoil Blue or its authors. You get the app separately, and it isn't modified.

![An AI tool asks for a platformer loop, and the notes appear in Bosca Ceoil Blue](docs/media/hero.png)

![Demo: the request, the song playing in the app, and the measured result](docs/media/demo.gif)

The demo above is silent. [Watch it with sound](docs/media/demo.mp4) to hear the 8-bar loop the composer skill wrote for it.

## Setup

You need [Node.js](https://nodejs.org) 18 or newer, and [Bosca Ceoil Blue](https://yurisizov.itch.io/boscaceoil-blue) unpacked somewhere on your computer.

```bash
git clone https://github.com/boraswim/bosca-ceoil-mcp.git
cd bosca-ceoil-mcp
npm install
```

Then connect your AI tool. In the examples below, replace:

- `/path/to/bosca-ceoil-mcp` with the folder you cloned.
- `/path/to/boscaceoil-blue` with the app's executable or the folder it's in. Use forward slashes on Windows too.

Restart the AI tool afterwards, and ask it something like *"Write me a cheerful 8-bar chiptune in Bosca Ceoil."*

### Claude Code

```bash
claude mcp add bosca-ceoil --scope user -- node /path/to/bosca-ceoil-mcp/dist/index.js --app-path /path/to/boscaceoil-blue
```

### OpenAI Codex

```bash
codex mcp add bosca-ceoil -- node /path/to/bosca-ceoil-mcp/dist/index.js --app-path /path/to/boscaceoil-blue
```

Or add this to `~/.codex/config.toml`:

```toml
[mcp_servers.bosca-ceoil]
command = "node"
args = ["/path/to/bosca-ceoil-mcp/dist/index.js", "--app-path", "/path/to/boscaceoil-blue"]
```

### Google Antigravity

Add this to `~/.gemini/config/mcp_config.json`, or to `.agents/mcp_config.json` in a workspace. In the IDE, you can open it from the MCP Servers panel, with Manage MCP Servers and then View raw config.

```json
{
  "mcpServers": {
    "bosca-ceoil": {
      "command": "node",
      "args": ["/path/to/bosca-ceoil-mcp/dist/index.js", "--app-path", "/path/to/boscaceoil-blue"]
    }
  }
}
```

### Other tools

This is a standard MCP server over stdio, so any tool that supports those can use it, with the same command and arguments. The ChatGPT website and app only reach remote servers, so they can't use it.

## Options

| Argument | Environment variable | What it does |
| --- | --- | --- |
| `--app-path <path>` | `BOSCA_CEOIL_PATH` | Where the app is. Without it, the server looks through Downloads, Desktop, Applications, Games, Program Files and itch.io's folder for it. |
| `--headless` | `BOSCA_CEOIL_HEADLESS=1` | Runs the app with no window or sound. Useful for automation, but WAV exports take about twice as long, and unsaved work is lost 30 seconds after the AI tool disconnects. |

## What the AI tool can do

| Area | Tools |
| --- | --- |
| Songs | `create_song`, `open_song`, `save_song`, `import_midi`, `get_song`, `update_song` |
| Instruments | `list_voices`, `get_drumkit`, `add_instrument`, `update_instrument`, `remove_instrument` |
| Patterns | `add_pattern`, `update_pattern`, `clone_pattern`, `remove_pattern` |
| Arrangement | `edit_arrangement` |
| Playback | `play`, `pause`, `stop` |
| Export | `export_song`, `export_status`, `master_wav` |
| History | `undo`, `redo` |
| App | `app_status`, `launch_app`, `quit_app`, `focus`, `screenshot_app` |

### Releasing on Spotify and other platforms

Streaming platforms play every track at about the same loudness, so a quiet export sounds weak next to other music. `master_wav` masters an exported WAV for release. It brings the file to the platform's loudness target with one overall gain, and a look-ahead limiter keeps the true peak under the ceiling. Ask for a release when you request a song, for example *"Write a 2-minute chiptune track I can release on Spotify"*.

| `platform` | Target | Ceiling |
| --- | --- | --- |
| `streaming` (default) | -14 LUFS | -1 dBTP |
| `spotify`, `youtube`, `tidal`, `amazon_music` | -14 LUFS | -1 dBTP |
| `deezer` | -15 LUFS | -1 dBTP |
| `apple_music` | -16 LUFS | -1 dBTP |

Use `streaming` when a distributor such as DistroKid or CD Baby sends one file to every store. You can also set your own `target_lufs` and `true_peak_db`. The limiter turns peaks down by 6 dB at most by default. If that isn't enough to reach the target, the tool stops short and says so, rather than squash the music. The original export is left as it is.

Your work is protected. Replacing a song with unsaved changes, overwriting a file, or quitting with unsaved changes all fail unless the AI tool explicitly says that's intended. An edit is one undo step in the app, whether you or the AI made it.

## Composer skill

[`skills/bosca-ceoil-composer`](skills/bosca-ceoil-composer) is an optional skill that helps Claude write game music and sound effects with this server. It has sound effect recipes, tempo and arrangement guidance for game moments, notes on how the app behaves, scripts that measure exports, cut seamless loops, finish sound effects and find clashing notes in a song, and [demos](skills/bosca-ceoil-composer/assets/demos) you can listen to. The scripts need Python 3, and two of them need numpy.

To use it in Claude Code, copy that folder to `~/.claude/skills/`, or to `.claude/skills/` in your project. It's also listed on [Agensi](https://www.agensi.io/skills/bosca-ceoil-composer-game-music-sfx), where you can install it into Claude Code, Cursor, Codex and other agents. You still need this server set up.

![The skill's six steps: brief, write, export, measure, finish, listen](docs/media/workflow.png)

<table>
  <tr>
    <td><img src="docs/media/measured.png" alt="A loop's waveform with its peak, loudness and loop seam measurements"></td>
    <td><img src="docs/media/sfx.png" alt="Waveforms of the nine demo sound effects"></td>
  </tr>
</table>

The skill writes original material. Its guidance comes from aggregate measurements like tempo, length, density and pitch movement, and it contains no melodies or audio from these sources:

| Source | Used for | License |
| --- | --- | --- |
| [jsfxr](https://github.com/chr15m/jsfxr) | How retro sound effect presets are built | Unlicense |
| [Interface Sounds](https://opengameart.org/content/interface-sounds) by Kenney | UI sound measurements | CC0 |
| [100 CC0 SFX #2](https://opengameart.org/content/100-cc0-sfx-2) by rubberduck | Sound effect measurements | CC0 |
| [Indiscriminate MIDI Music](https://opengameart.org/content/indiscriminate-midi-music) by blitzdoughnuts | Arrangement statistics | CC0 |
| [Original MIDI Album](https://opengameart.org/content/original-midi-album) by roppychop | Checked for note grid fit | CC0 |
| [Procedural MIDI Music](https://opengameart.org/content/procedural-midi-music) by Drummyfish | Checked for note grid fit | CC0 |
| [Incompetech](https://incompetech.com/music/royalty-free/music.html) by Kevin MacLeod | Tempo and instrument data by feel, from the catalog's track list | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) |

## How it works

```
AI tool  <-- MCP over stdio -->  Node server  <-- JSON over local socket -->  bridge.gd, inside the app
```

The server starts the normal Bosca Ceoil Blue executable with Godot's `--script` option, which loads [`bridge/boot.gd`](bridge/boot.gd). That script starts the app as usual, and adds [`bridge/bridge.gd`](bridge/bridge.gd) to it. The bridge works on the app's own objects and undo system, so edits show up live and follow the app's rules, and exports use the app's own code. No files in the app's folder change.

- The bridge only listens on `127.0.0.1`, and requires a random token stored in `~/.bosca-ceoil-mcp/session.json`. That folder also holds `app.log`, the app's output from the last launch.
- The app stays open when the AI tool closes, so your song isn't lost. A new session reconnects to it.
- If you started the app yourself, the server can't reach it, and opens a second window. Save your work and close the first one, or open your song through the AI tool.

## Limits

- **Tested on:** Windows 11 with Bosca Ceoil Blue 3.1.2, using Claude Code and a scripted MCP client.
- **Not tested yet:** Codex and Antigravity, which follow their documented setup, and macOS and Linux, which should work the same way. Please report what you find.
- **Other app versions:** the bridge uses the app's internal code, so a future version could break it. You'd get an error saying so when starting up, and details in `app.log`.
- **Hearing:** AI tools can't hear the song. A WAV export reports its duration, peak, RMS, loudness in LUFS and true peak, which catches silent, clipped or quiet output, but only you can tell if it sounds good.
- **WAV exports** play the song through by default, so a long song takes as long as it plays. With `fast: true`, `export_song` renders it offline in a few seconds instead. In testing it matched the default export sample for sample, except with the compressor effect, whose live output also depends on what the app played before. It's opt-in while it gets more testing.
- **Filter automation** past step 16 is lost on saving, a limit of the app's file format.
- **App's scale quirk:** its `minor` scale is melodic, with a raised 6th and 7th. The server explains this to AI tools, since it's easy to trip over.

## Development

```bash
npm test
```

This builds the server and runs [`test/integration.mjs`](test/integration.mjs), which drives the real app without a window through a real MCP client. Set `BOSCA_CEOIL_PATH` to the app, or unpack it into a `ref` folder here. Your own settings aren't touched.

## License

[MIT](LICENSE). Bosca Ceoil Blue has its own [MIT license](https://github.com/YuriSizov/boscaceoil-blue/blob/main/LICENSE).

TDQS

A3.5/5.0

Scored across 28 tools

Disambiguation4/5

Each tool targets a clearly distinct resource or operation, and the descriptions actively disambiguate the risky pairs (create_song vs open_song vs import_midi all replace the song; add_pattern vs clone_pattern both create patterns). Minor soft spots remain: export_song vs export_status and launch_app vs app_status are adjacent, and 'focus' is broad enough to be mistaken for a view/selection helper, but the descriptions resolve these.

Naming Consistency4/5

The dominant pattern is verb_noun (create_song, update_pattern, remove_instrument, list_voices, export_status), applied consistently across the song/instrument/pattern families. Deviations are small and idiomatic: bare intransitive verbs (play, pause, stop, undo, redo) and noun-style status tools (app_status, export_status) break the strict pattern but remain predictable and readable.

Tool Count3/5

28 tools is at the heavy end and pushes past the comfortable 3-15 band, though the domain (song, instruments, patterns, arrangement, playback, export, app lifecycle) is broad enough that most tools map to a real operation. A few could be consolidated without loss, e.g. play/pause/stop, export_song/export_status, and launch_app/quit_app/app_status, which is why this lands borderline rather than well-scoped.

Completeness4/5

Coverage is strong across the full lifecycle: app start/stop, song create/open/import/save/export, instrument and pattern CRUD with cloning, arrangement editing, playback, and undo/redo. Gaps are minor and workaroundable: there is no per-pattern or per-instrument getter (get_song dumps everything) and no way to delete a song file or close a song without replacing it.