Skip to content

Add media, wait_for and capture_audio tools to the MCP automation - #40

Merged
bubio merged 1 commit into
mainfrom
feat/mcp-media-audio
Nov 19, 2026
Merged

bubio merged 1 commit into
mainfrom
feat/mcp-media-audio

Conversation

@bubio

@bubio bubio commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • status が CD とテープの状態を返すようにした(CD が入っていても AI が気づけなかったため)
  • 新しいツール:cd(挿入・起動・取り出し)、disk_images、set_write_protect、load_memory_image、tape の boot
  • wait_for(画面に文字が出るまで、または画面が止まるまで実行)と capture_audio(音源別の音量の報告と WAV の保存)
  • AutomationHost に既定の実装付きで CD・書き込み保護・runFrames(_:beforeEach:afterEach:) を追加
  • typed C ABI ホストに任意のコールバック b88_mcp_app_session_set_frame_after / b88_mcp_app_session_set_write_protect を追加(加算のみ、既存関数は変更なし)
  • CD BIOS がなく起動できない CD は取り出してからエラーを返す

アプリ側の対応は bubio/Bubilator88 の別 PR(このリリースへのピン更新を含む)。

Test plan

  • swift test(1128 件)
  • 回帰スイート scripts/regression_compare.py(20 件 PASS)
  • headless bubilator88-mcp で CD 起動と取り出し後の BASIC 起動、テープ自動起動、.n80、wait_for、capture_audio を実ファイルで確認
  • macOS アプリ経由で同じ操作と、イメージ一覧・書き込み保護を確認

🤖 Generated with Claude Code

- status reports the CD and the cassette; new tools: cd (mount/boot,
  eject), disk_images, set_write_protect, load_memory_image, and tape boot
- wait_for runs until text appears or the screen settles; capture_audio
  reports loudness per source and can save a WAV
- AutomationHost gains mountCD/ejectCD/setWriteProtect, media names and
  runFrames(_:beforeEach:afterEach:), all with default implementations
- The typed C ABI host takes two optional callbacks
  (b88_mcp_app_session_set_frame_after / _set_write_protect) so the
  Windows app can hand over a frame's audio and keep its drive UI in step

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bubio
bubio merged commit ccb0190 into main Nov 19, 2026
6 of 9 checks passed
@bubio
bubio deleted the feat/mcp-media-audio branch November 19, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant