Metadata-Version: 2.4
Name: scenesonar-mcp
Version: 0.1.0
Summary: SceneSonar MCP - geometry telemetry for AI agents in Unity
Author: PaveltPhP
License: MIT
Project-URL: Homepage, https://github.com/PaveltPhP/scene-sonar
Project-URL: Repository, https://github.com/PaveltPhP/scene-sonar
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: mcp>=2.0
Requires-Dist: numpy>=1.23
Requires-Dist: pillow>=9.0

# scenesonar-mcp

MCP server for **SceneSonar** — geometry telemetry for AI agents working in a Unity scene.

It measures, per frame, where one mesh is relative to another (penetration depth, gaps,
contacts) and returns counts, an event stream and point-cloud images. This is touch, not
sight: it answers *where* and *when*, not *how it looks*.

## Install

```
pip install scenesonar-mcp
```

Requires the Unity package `com.scenesonar` (see the repository README).

## Configure

`~/.scenesonar/config.json`:

```json
{
  "projectPath": "D:/MyGame",
  "unityPath": "C:/Program Files/Unity/Hub/Editor/6000.0.0f1/Editor/Unity.exe",
  "outRoot": "D:/SceneSonarRuns"
}
```

Environment overrides: `SCENESONAR_PROJECT`, `SCENESONAR_UNITY`, `SCENESONAR_OUTROOT`.

## Add to an agent

```json
{
  "mcpServers": {
    "scenesonar": {
      "command": "scenesonar-mcp"
    }
  }
}
```

## Tools

- `sonar_start` — launch a run (Unity in batch mode; the editor must be closed);
- `sonar_status` — running / done / failed, sample count, log tail;
- `sonar_report` — max penetration, event counts, detector self-test, worst points, timeline;
- `sonar_events` — when a vertex entered or left another mesh;
- `sonar_view` / `sonar_slice` — point-cloud images and cross-sections;
- `sonar_clip` — GIF, render-vs-sonar pair, or worst frames;
- `sonar_list` / `sonar_config`.

## License

MIT.
