リアルタイムのステート、フレームデータ、および自動ファジングを使用して、AIエージェントが2Dウェブゲームの調査、構築、テスト、プレイを行うことを可能にします。
別名 debuffjp/debuff, @debuffjp/mcp
- スター
- 12
- ツール
- 22
- ダウンロード数(30日間)
- 11,216
- 最新バージョン
- 0.35.0
- 最終コミット
- 2026年11月14日
- ライセンス
- MIT
debuff MCPとは
debuffはMCPサーバーです。 リアルタイムのステート、フレームデータ、および自動ファジングを使用して、AIエージェントが2Dウェブゲームの調査、構築、テスト、プレイを行うことを可能にします。. 22個のツールを提供しており、inspect_project, list_assets, typecheckなどがあります。
プロジェクトのREADMEから生成された概要
debuff MCP server について
このMCP serverは、AIエージェントを介した2Dウェブゲームの構築とテストを可能にします。開発者は、プロジェクトの依存関係の調査、プロジェクト独自の構成を使用した型チェックの実行、およびサイズレポート付きのプロダクションビルドの実行ができます。このサーバーは、ライブゲームのタブに接続するか、再現可能なテストのためにプライベートなヘッドレスブラウザインスタンスを実行することで、ローカル環境で動作します。
エージェントは、シミュレーションを進めるgame_step、キーボードやタッチ操作をシミュレートするgame_input、検証済みのゲーム変数を調整するgame_paramsなどのツールを使用して、ゲームエンジンと対話できます。デバッグ用に、このサーバーはレンダリング時間を分析するgame_framesと、実行時問題のソース行を特定するgame_errorsを提供します。また、ランダムな入力でプレイしてクラッシュや無限ループを見つけるファジングツールも含まれており、それらの特定の失敗を再現するためのシナリオを自動的に生成します。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
debuff MCPのインストール方法
フォーマット検証日 2026年11月10日Cursor に追加Gooseに追加Claude Codeにdebuff MCPをインストール
$ claude mcp add debuff -- npx -y @debuffjp/mcpCursorにdebuff MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"debuff": {
"command": "npx",
"args": [
"-y",
"@debuffjp/mcp"
]
}
}
}VS Codeにdebuff MCPをインストール
.vscode/mcp.json
{
"servers": {
"debuff": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@debuffjp/mcp"
]
}
}
}VS Code CLIにdebuff MCPをインストール
$ code --add-mcp '{"name":"debuff","type":"stdio","command":"npx","args":["-y","@debuffjp/mcp"]}'Claude Desktopにdebuff MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"debuff": {
"command": "npx",
"args": [
"-y",
"@debuffjp/mcp"
]
}
}
}Codexにdebuff MCPをインストール
$ codex mcp add debuff -- npx -y @debuffjp/mcpCodex config.tomlにdebuff MCPをインストール
~/.codex/config.toml
[mcp_servers.debuff] command = "npx" args = ["-y", "@debuffjp/mcp"]
Gemini CLIにdebuff MCPをインストール
$ gemini mcp add -s user debuff npx -- -y @debuffjp/mcpGemini settings.jsonにdebuff MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"debuff": {
"command": "npx",
"args": [
"-y",
"@debuffjp/mcp"
]
}
}
}debuff MCPツール 22
READMEから検出inspect_projectlist_assetstypecheckbuildrun_testsrun_scenariosfuzzgame_startgame_stepgame_pausegame_framesgame_notes
| inspect_project | — | |
| list_assets | — | |
| typecheck | — | |
| build | — | |
| run_tests | — | |
| run_scenarios | — | |
| fuzz | — | |
| game_start | — | |
| game_step | — | |
| game_pause | — | |
| game_frames | — | |
| game_notes | — |
22個のツールをすべて表示ツールを折りたたむ
game_rewindgame_replaygame_inputgame_stategame_commandgame_capturegame_clipgame_errorsgame_stopreport_papercut
| game_rewind | — | |
| game_replay | — | |
| game_input | — | |
| game_state | — | |
| game_command | — | |
| game_capture | — | |
| game_clip | — | |
| game_errors | — | |
| game_stop | — | |
| report_papercut | — |
自動チェック
実行日 2026年11月12日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能合格
- オープンソースライセンス (OSI)合格
- 過去1年以内にコミットまたはリリースあり合格
- パッケージ名が有名なパッケージに酷似していない合格
- リモートエンドポイントがHTTPSを使用未チェック
- 破壊的なツールがラベル付けされている合格
- モデルへの隠れた指示がない合格
- パッケージおよびその依存関係に重大な勧告なし合格
README
GitHubで見る@debuffjp/mcp
An MCP server that lets AI agents inspect, build, test and play a debuff game. It uses the same evidence a human would want: real state, real frames, real test results.
Setup
New projects from npm create debuff include a .mcp.json, so MCP clients that read it (such as Claude Code) pick the server up automatically. For other clients:
claude mcp add debuff -- npx -y @debuffjp/mcp # Claude Code
{
"mcpServers": {
"debuff": { "command": "npx", "args": ["-y", "@debuffjp/mcp"] }
}
}
Run it from the game's folder, or pass --root <dir> (or set DEBUFF_ROOT).
As a Claude Code plugin, which also adds a skill that teaches Claude the workflow:
/plugin marketplace add debuffjp/debuff
/plugin install debuff@debuff
As a Codex plugin: codex plugin marketplace add debuffjp/debuff, then codex plugin add debuff@debuff.
For Claude Desktop, mcpb/manifest.json describes a desktop extension that asks for the game folder. Pack it from that folder with npx @anthropic-ai/mcpb pack.
Tools
| Tool | What it does |
|---|---|
inspect_project |
Dependencies, plugins and their contributions, assets, last build size |
list_assets |
Every asset with its type, size and importer, plus warnings and possibly unused ids |
typecheck |
Type-check with the project's own tsc; no browser needed. Vite doesn't type-check, so run it after edits |
build |
Production build plus size report; leaks must be empty |
run_tests |
Run the logic tests in tests/ (keiko): the real game in Node, no browser; failures carry the tick, scene and state |
run_scenarios |
Run scenarios/*.json headless; per-step results, errors, captures |
fuzz |
Play with random input; each crash, stuck state or back-and-forth loop comes with an explained error and a scenario that replays it |
game_start |
Attach to the live game, or open a private headless copy, paused (see below). Headless takes a viewport: [w, h]; reducedMotion forces it on or off |
game_step |
Advance fixed simulation steps (pausing first); returns state (quiet leaves out your inspect() data) |
game_pause |
Pause or resume a live game |
game_frames |
Recent frame breakdown: update/render ms, catch-up steps, quads, draw calls, long tasks; summary gives percentiles and the 3 slowest |
game_notes |
Moments the human flagged in the overlay, with the state at that tick |
game_rewind |
Live mode: take the human's game back (or forward) to a tick, paused, with its exact state then |
game_replay |
Save the live session up to a tick (for example a note's) as a scenario in .debuff/replays/ that reproduces it. From 0.31 it holds state checkpoints, so run_scenarios warns at the tick where the replay stops matching |
game_input |
press / release keys (and PointerRight / PointerMiddle); tap, pointer_down (with an optional kind: mouse, touch or pen), pointer_move, pointer_up; wheel (dy, dx); touch_down, touch_move, touch_up by contact id |
game_state |
Scene, tick, logical width/height, renderer, frame stats, reducedMotion, your inspect() data |
game_command |
Run a command the game registered with devTools({ commands }), with JSON args |
game_params / game_set_param |
Read and tune typed params (validated) |
game_capture |
The current frame as a PNG image; path also saves it in the project (thumbnails, store art). social: true letterboxes it into 1200×675 for X and Bluesky posts (added in 0.26) |
game_clip |
Live mode: start a rolling recording, save the last 15 s as a video in .debuff/captures/, stop. For devlogs and press kits; the human posts. Added in 0.26 |
game_errors |
Runtime errors, explained: whose problem (your code, a rejected call, a debuff bug), the source line, a hint |
game_stop |
Close the game. From 0.28, a headless game also closes after 15 idle minutes, and a call that takes over 60 s fails with game_hung |
report_papercut |
Report tooling friction in debuff, keiko, myaku, spryte or debuff.jp to papercuts.debuff.jp. Returns close matches instead of filing a duplicate; call again with hit: <id> or force: true. With hit, workaround fills the papercut's workaround when it has none (from 0.24.1). Added in 0.24 |
Tool calls that fail on setup twice in a week, or run far too long, are reported to papercuts.debuff.jp on their own, and the result says so (see debuff papercuts in the CLI README to turn it off). From 0.24.
Prompts
Workflows clients can offer as slash commands: playtest, fix-errors, tune-feel, add-mechanic, devlog-post (added in 0.26: capture a still and a clip, then draft short posts for the human to send) and explain-stutter.
Live and headless
If you have the game open under debuff dev, game_start attaches to that tab (mode live). The overlay shows an agent badge, and every pause, step and param change the agent makes appears in its activity log, where you can undo it. Type a note in the overlay ("jump feels floaty here") to flag a moment; the agent reads it, along with the game state at that tick, through game_notes. game_stop resumes your game and disconnects.
Otherwise, or with mode: "headless", the agent gets a private copy in a headless browser. Time only advances through game_step, so what it sees is reproducible, and a scenario can replay it exactly.
debuff MCPのよくある質問
debuff MCPをClaude Codeに追加するには
ターミナルでclaude mcp add debuff -- npx -y @debuffjp/mcpを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
debuff MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
debuff MCPが提供するツールは
22個のツールを提供しており、inspect_project, list_assets, typecheck, build, run_testsなどがあります。
Claude Codeでサーバーを実行するにはどうすればよいですか?
次のコマンドを使用して、Claude Codeにサーバーを追加できます:claude mcp add debuff -- npx -y @debuffjp/mcp。
AIエージェントはブラウザでゲームをプレイできますか?
はい、エージェントはブラウザのタブで実行中のライブゲームに接続するか、ヘッドレスブラウザでプライベートなコピーを実行できます。
ファズテスト中はどのようなことが行われますか?
ファズツールがランダムな入力でプレイを行い、クラッシュ、スタックした状態、またはループが発生した場合は、エラーの説明とともに再現可能なシナリオが提供されます。
エージェントは実行時エラーをどのように処理しますか?
game_errorsツールが実行時エラーの内容を説明し、ソース行の特定、および問題がコードにあるのか、拒否された呼び出しにあるのか、あるいはdebuffのバグによるものなのかを識別します。