# Examples

For supported platforms, install options, readiness troubleshooting, and the
maintainer `npm run ci` path, see [`setup.md`](setup.md).

## Extension command

`extensions/index.ts` registers:

- `/roblox-studio-mcp-status`

Try locally:

```bash
pi -e .
```

Then run:

```txt
/roblox-studio-mcp-status
```

## Custom tools

`extensions/index.ts` currently registers:

- `roblox_studio_mcp_status`
- `roblox_studio_mcp_list_tools`
- `roblox_studio_mcp_list_studios`

`roblox_studio_mcp_status` locates StudioMCP on Windows or macOS and runs a lightweight initialize probe without keeping an MCP process alive.

`roblox_studio_mcp_list_tools` runs one-shot `tools/list` and returns a capped tool inventory when StudioMCP is callable.

`roblox_studio_mcp_list_studios` runs one read-only `list_roblox_studios` call with empty arguments and returns a capped Studio instance inventory plus setup guidance when no instances are open.

These inventory tools do not expose generic `tools/call` or mutation wrappers. See `skills/roblox-studio/SKILL.md` for the current scope and policy.

## Recommended workflow

Use this copy-and-run sequence after installing the package or trying locally with `pi -e .`:

1. Open Roblox Studio on Windows or macOS.
2. Check readiness with the command or tool:

```txt
/roblox-studio-mcp-status
```

```txt
roblox_studio_mcp_status
```

3. When output shows `callable: true`, inspect the MCP tool inventory:

```txt
roblox_studio_mcp_list_tools
```

4. List open Studio instances:

```txt
roblox_studio_mcp_list_studios
```

Each inventory tool starts StudioMCP on demand, returns capped read-only output, and shuts the child process down afterward. If readiness is `found_not_callable`, keep Roblox Studio open and rerun step 2 before steps 3–4.

## Agent Skill

`skills/roblox-studio/SKILL.md` tells the agent to prefer on-demand StudioMCP child processes and avoid long-running MCP registration.
