> ## Documentation Index
> Fetch the complete documentation index at: https://mcp4rhino.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get started with Grasshopper

> Confirm Grasshopper tools in MCP4Rhino, run a first check, and optionally use the smoke script or skill.

Confirm the Grasshopper tools are available, then build a first parametric study.

## Prerequisites

* Usable **Rhino 8 licensing** on Windows or macOS with bundled **Grasshopper 1**.
* An AI client connected to MCP4Rhino. Follow the [quickstart](https://mcp4rhino.mintlify.site/quickstart.md) if you have not connected one yet.
* Python 3 is optional for the automated smoke tests.

An expired evaluation or view-only installation can prevent plugin loading. Grasshopper 2 is not needed or supported by these tools.

## Confirm Grasshopper tools

**1. Install or update MCP4Rhino**

Install MCP4Rhino from Package Manager or a [GitHub release](https://github.com/isque03/mcp4rhino/releases) `.yak`, apply changes, and fully restart Rhino. Grasshopper tools ship in the current stable package (**0.7** and later).

**2. Verify the loaded version**

Open **MCP4Rhino → Status…** and confirm the server is running. Ask your connected assistant:

```text theme={null}
Call get_support_info and confirm server_version is 0.7 or later.
Then call gh_help with topic index, gh_status, and get_document_units.
```

`gh_status` checks availability without forcing a load. An uninitialized `available: true` result is only an installation check; component discovery is the next load check.

## Verify Grasshopper loading

Open a Rhino document. Ask the assistant:

```text theme={null}
Search the installed Grasshopper component catalog for Number Slider.
Describe a supported result and report its component type ID, ports, and settings.
Also call get_document_info to check that ordinary Rhino tools still work.
```

If discovery fails, preserve the exact error and `help_topic`; see the troubleshooting table below.

## Build a first study

Start with [your first parametric array](https://mcp4rhino.mintlify.site/grasshopper/first-definition.md), then ask the assistant to load `gh_help` topics `examples/facade` and `examples/loft`.

For each study, inspect the native components and wires, change an independent control, and check the output count, branch paths, dimensions, and component diagnostics.

### Optional automated smoke tests

Download **grasshopper-smoke.py** from the [latest release assets](https://github.com/isque03/mcp4rhino/releases/latest). It needs Python 3, a running local MCP4Rhino server, and no extra Python packages or source checkout.

From the directory containing the downloaded file, run:

> [tab] macOS
>
> ```bash theme={null}
> python3 grasshopper-smoke.py --example array
> python3 grasshopper-smoke.py --example facade --bake
> python3 grasshopper-smoke.py --example loft
> ```

> [tab] Windows
>
> ```powershell theme={null}
> py -3 grasshopper-smoke.py --example array
> py -3 grasshopper-smoke.py --example facade --bake
> py -3 grasshopper-smoke.py --example loft
> ```
>
> Use `python` in place of `py -3` if your Python 3 installation does not provide the launcher.

The runner creates its own definitions, checks discovery and graph operations, solves, reads results, varies a control or repairs a tree mapping, and round-trips `.gh`/`.ghx` files. `--bake` also creates two Rhino geometry snapshots and checks retry behavior. It prints a JSON report with the final session, solution, saved file paths, and any baked object IDs, and leaves the final definition open.

If your MCP port differs from the default, pass `--endpoint` with the exact URL shown in Status. A script timeout does not prove a native solve stopped; inspect its job before submitting more work.

## Help your assistant use Grasshopper

The tools include `gh_help`, so local skill installation is optional. Ask for topic `design` when translating a brief into parameters, `data-trees` for branch matching, or `debugging` when repairing a definition.

For a client that supports local skills, download the `MCP4Rhino-<version>-skills.zip` asset from the [same release](https://github.com/isque03/mcp4rhino/releases/latest) and extract its `grasshopper-parametric-design` directory into the client's skills directory. For Codex, this is normally `~/.codex/skills`; for a Cursor project, `.cursor/skills`. Refresh the client's skill discovery after installation. MCP4Rhino does not install a skill into your AI client automatically.

## Troubleshooting

| Symptom | Action |
| - | - |
| `gh_` tools are missing | Confirm MCP4Rhino **0.7** or later is installed, apply changes, fully restart Rhino, and reconnect the client if it cached an old tool list. |
| `grasshopper_unavailable` | Call `check_rhino_license`; check view-only mode and whether bundled Grasshopper 1 opens in Rhino. Report the exact error. |
| `gh_status` looks available but discovery fails | The initial status is an installation check, not a load/solve test. Use the discovery error and its `help_topic` to diagnose. |
| Revision conflict or expired output | Inspect the current definition, reconcile edits, and solve again. Use the fresh revision/result IDs. |
| Busy or a long-running solve | Poll `gh_get_job`; cancellation is cooperative. Avoid submitting parallel canvas calls. |
| Other connection problems | Follow [How to troubleshoot](https://mcp4rhino.mintlify.site/howto/troubleshoot.md) and compare the client URL with Status. |

## Related

* [Capabilities and limits](https://mcp4rhino.mintlify.site/grasshopper/overview.md)
* [Build a parametric array](https://mcp4rhino.mintlify.site/grasshopper/first-definition.md)
* [Grasshopper tool reference](https://mcp4rhino.mintlify.site/grasshopper/tools.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.