---
title: "sbox-mcp-plus - s&box library"
description: "Extra MCP tools for the s&box editor — scene tab switching, correct editor status, and UI-safe screenshots. Drop-in library,"
canonical: "https://sbox.watch/zh-cn/libraries/kitsupanic/sbox_mcp_plus/"
generated_at: "2026-11-27T17:43:25.366Z"
---

# sbox-mcp-plus

Extra MCP tools for the s&box editor — scene tab switching, correct editor status, and UI-safe screenshots. Drop-in library,

- 类型: 库
- 标识符: kitsupanic.sbox_mcp_plus
- 创作者: kitsupanic
- 规范地址: https://sbox.watch/zh-cn/libraries/kitsupanic/sbox_mcp_plus/
- Markdown: https://sbox.watch/zh-cn/libraries/kitsupanic/sbox_mcp_plus/index.md
- sbox.game: https://sbox.game/kitsupanic/sbox_mcp_plus/
- 生成时间: 2026-11-27T17:43:25.366Z

## 统计

- 24小时热度: +0
- Terry 评分: --
- 收藏: 1
- 好评: 0
- 差评: 0
- 更新时间: 2026年10月14日
- 创建时间: 2026年8月14日
- 大小: 1.1 MB
- 文件: 30
- 标签: mcp

## 描述

Extra tools for AI assistants working in the s&box editor.

Install this library in your game project to let an MCP-compatible assistant switch scene tabs, capture cameras with UI text, inspect models, manage local multiplayer clients, and record input diagnostics.

The tools run inside the editor and connect through s&box's built-in sbox-cli MCP bridge. They appear in the extras toolset, with an x\_ prefix to keep their names separate from built-in tools.

Requirements

- Windows with s&box installed and a game project.
- An s&box build with the sbox-cli MCP bridge.
- Git and PowerShell 7 (pwsh) for the setup below.
- An MCP client that supports local stdio servers.

Quick start

-
Install the library. Open a terminal in your game project folder (the folder containing its .sbproj) and run:

- git submodule add https://github.com/kitsupanic/sbox-mcp-plus.git Libraries/kitsupanic.sbox\_mcp\_plus
git submodule update --init --recursive
-
Enable MCP communication. In the game's editor, enable Project Settings > AI > Enable MCP Communication.

-
Restart the editor with your game project open. Libraries are loaded at project startup, so the first installation needs a restart. Later source edits hotload.

-
Configure your MCP client (optional). If your client is already connected to this s&box project, skip to step 5. The library adds its tools to the existing connection; no additional server configuration is needed.

-
Otherwise, add this server to your client's MCP configuration:

- {
 "mcpServers": {
 "sbox": {
 "type": "stdio",
 "command": "pwsh",
 "args": \[
 "-NoProfile",
 "-File",
 "Libraries/kitsupanic.sbox\_mcp\_plus/Scripts/Connect-Sbox.ps1"
 \]
 }
 }
}
-
Set the server's working directory to your game project folder using your client's working-directory setting, or launch the client from that folder. The JSON above follows the included sample configuration; configuration location and accepted fields depend on your client.

-
Connect and discover the tools. Start or restart the client's MCP server. Ask your assistant to check editor\_status, then discover the extras toolset with list\_toolsets or search for x\_ with search\_tools.

The launcher looks for the engine in FACEPUNCH\_ENGINE (process scope, then Windows user scope), then the default Steam installation folder. For a custom Steam library, set FACEPUNCH\_ENGINE to the folder containing sbox.exe, or append "-EngineDirectory", "D:/SteamLibrary/steamapps/common/sbox" to the configuration's args, replacing the example path with your installation.

The connection uses stdio, with no HTTP URL or port to configure. The launcher only attaches to an already-running editor using --connect; it does not open an editor, and disconnecting leaves the editor running.

Try asking your assistant

- “Show the active scene, whether it has unsaved changes, and how many tabs are open.”
- “Open my menu scene and take a camera screenshot that includes the UI.”
- “Inspect this player model's bones, attachments, and animations.”
- “Record a short input trace in the current Play scene to help investigate mouse look.”

The assistant should discover each tool's current input schema before calling it. For complete behavior and limits, see the tool reference.

Tools

Scenes and cameras

ToolWhat it doesx\_open\_sceneOpen or activate a scene or prefab tab. Requires edit mode.x\_create\_sceneCreate and activate a new empty .scene beneath scenes/diagnostics/, without overwriting files.x\_editor\_statusRead the active tab, unsaved state, open-tab count, project, and Play/pause state.x\_camera\_screenshotCapture a scene camera, preserving UI text when resizing a capture in Play.x\_camera\_look\_atAim an active-scene camera at a world-space point, with undo.x\_set\_network\_modeSet an active-scene object's saved networking mode to Never, Object, or Snapshot, with undo.

Networking and local clients

ToolWhat it doesx\_network\_statusRead session state and connection rows with account and communication data omitted.x\_network\_start\_hostingStart hosting through the editor's supported network path.x\_network\_disconnectDisconnect the editor while leaving launched clients running.x\_network\_spawn\_instanceLaunch a local s&box client while hosting, with owned process-tree tracking.x\_network\_instancesList clients owned by this library during its current hotload lifetime.x\_network\_terminate\_instanceClose an owned client tree using its PID and exact launch token.x\_network\_migrate\_to\_new\_instanceCurrently unavailable: refuses before launching a client or transferring hosting.

Models

ToolWhat it doesx\_import\_model\_sourceImport an external FBX, OBJ, or DMX into a fresh Assets directory and return compilation/dependency evidence.x\_model\_skeletonRead model bounds, bones, attachments, material groups, and animation names.

Input diagnostics

ToolWhat it doesx\_input\_observeRead focus, input suppression, mouse visibility, action state, look input, and camera state.x\_input\_trace\_startStart a bounded trace in an explicitly identified, already-running Play scene.x\_input\_trace\_statusRead recording state, token, sample count, and limits.x\_input\_trace\_readRead recorded samples in pages using the trace token.x\_input\_trace\_stopStop the recorder without stopping Play.
Limitations and troubleshooting

SituationWhat to checkThe client cannot connectOpen the game in the editor, enable MCP communication, and check the client's working directory. Restart its MCP server after restarting the editor.sbox-cli.exe is not foundSet FACEPUNCH\_ENGINE or pass -EngineDirectory as described above.pwsh is not foundInstall PowerShell 7 and ensure it is available on the client's PATH.The extras tools are missingRestart the editor after installing the library, check for compilation errors with editor\_status, and rediscover the tools.An older configuration uses http://127.0.0.1:7269/mcpReplace it with the stdio configuration above.An unsaved scene cannot be opened by pathSelect it by its tab name; it has no saved resource path yet.
A few limits matter when using the tools:

- Screenshots in Play capture at the live viewport resolution and resize to the requested dimensions. Larger output does not add detail. Edit mode renders directly at the requested size.
- Local-client ownership resets on hotload or restart. Surviving clients keep running but are no longer listed or terminable by this library; close them manually. Termination requires both the PID and exact launch token.
- Model imports require edit mode and a fresh destination. Overwriting is unsupported. Native compilation can block the editor without a hard deadline; failures may retain partial files and report their paths.
- Input traces observe raw engine state. They do not inject input or prove physical-device input or gameplay acceptance. Traces are held in memory; read them before starting another trace or hotloading. Recording is limited to 2–600 editor frames and 1–30 seconds.

Some tools overlap with newer built-in tools. Their original workaround history and installed-runtime verification are documented in the CLI/tool audit.

Further documentation

- Tool reference — detailed behavior, guards, and workaround history.
- Model import reference — inputs, results, compilation evidence, and failure handling.
- CLI/tool audit — compatibility and native replacement checks.
- Development and checks — contributor workflow and validation commands.

Clients may also launch <engine>/bin/managed/sbox-cli.exe --connect directly. For your installed build's instructions, run sbox-cli --skill sbox-cli.

License

MIT © 2026 kitsupanic.
