MCP ScannerCustom audit
All servers

jingcheng-chen/rhinomcp

RhinoMCP connects Rhino 3D to AI Agent through the Model Context Protocol (MCP)

Packagerhinomcp
Version0.5.2 in server/pyproject.toml
Publisherjingcheng-chen community
MCP Registrynot listed
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 1,216Forks 112Last push 2026-11-07npm downloads a month 28
Python 100.0%by source files the scanner reads
Code safetypartly tracedExposure6.1Prompts10.0Supply chain4.0Secrets10.0Transparency10.0
Analysis confidence75%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure6.1/10Fair

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chain4.0/10Poor

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.

  • In 60 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
  • 1 file exceeded the 524288 byte size limit and were parsed only up to it
  • 1 source file could be read only in part
  • 1 of 106 tools, prompts and resources could not be followed through the code
  • 2 places in the code register tools whose names are computed at run time; how many tools that makes cannot be read from the code

Top risks in plain words

  • CRITICAL3 production dependencies have known vulnerabilities (worst: critical).

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Give it a narrowly scoped token

    Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.

  • Update its vulnerable packages

    Use opentelemetry-api 1.45.2 or later, pillow 13.0.0 or later, pyjwt 2.15.0 or later.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 100 tools, 4 resources, 2 prompts. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

Read or write filesopen, create, change or delete files
(name computed at run time), assembly_command, asset_general_strategy, create_source, describe_command, describe_modeling_command and 15 more
24 of 106
Connect to the internet or other hostssend requests or open connections
analyze_objects, assembly_command, begin_undo_group, boolean_difference, boolean_intersection, boolean_union and 72 more
86 of 106
Read environment variablesoften where API keys are kept
analyze_objects, boolean_difference, create_object, create_source, delete_object, describe_modeling_command and 14 more
23 of 106

No tool was seen to: start other programs on the machine; read passwords, tokens or keys; touch sensitive locations.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

86 request addresses could not be settled from the code (built at run time).

Text it brings in from outside

Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.

  • files21 tools · (name computed at run time), assembly_command, asset_general_strategy +18
  • web or API responses78 tools · analyze_objects, assembly_command, begin_undo_group +75

Tool annotations

No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.

Tools, prompts and resources (106: 100 tools, 4 resources, 2 prompts)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

asset_general_strategyprompt Inspect, construct and verify Rhino geometry with the bundled modeling guide.Filesoutside text
Inspect, construct and verify Rhino geometry with the bundled modeling guide.
rhinoscript_workflowprompt CRITICAL: Workflow for writing RhinoScript Python code.
CRITICAL: Workflow for writing RhinoScript Python code.
    Follow this workflow to avoid syntax errors and hallucination.
modeling_guidance_resourceresource Read the same bundled guide through an MCP resource.Filesoutside text
Read the same bundled guide through an MCP resource.
resource_get_functionresource Get complete documentation for a specific function.Filesoutside text
Get complete documentation for a specific function.
resource_get_moduleresource Get all functions in a specific module with signatures.Filesoutside text
Get all functions in a specific module with signatures.
resource_list_modulesresource List all RhinoScript modules with function counts.Filesoutside text
List all RhinoScript modules with function counts.
    Browse this to discover what's available.
(name computed at run time)tool Filesoutside text
No description.
(name computed at run time)tool
No description.
analyze_objectstool Inspect validity, bounding dimensions, and volume for created objects.NetworkEnv varsoutside text
Inspect validity, bounding dimensions, and volume for created objects.
analyze_objectstool Analyze object validity and common geometry measurements.Networkoutside text
Analyze object validity and common geometry measurements.

    Provide exactly one target selector:
    - id: Analyze one object by GUID
    - name: Analyze one object by name
    - object_ids: Analyze multiple objects by GUID
    - selected: Analyze the current Rhino selection

    Returns:
    - object_count: Number of analyzed objects
    - analyses: Per-object reports with validity, bounding box dimensions,
      and type-specific measurements such as length, area, volume, centroid,
      closed/solid flags, and Brep/Mesh counts where available.
      For Breps, naked_edge_count counts all naked topological edges, including
      inner hole boundaries and excluding joined edges and seams.
assembly_commandtool Call an allowed command after reading its schema. Failures are recorded.FilesNetworkoutside text
Call an allowed command after reading its schema. Failures are recorded.
begin_undo_grouptool Make the next edits one undo step. Rhino normally records one undo step perNetworkoutside text
Make the next edits one undo step. Rhino normally records one undo step per
    tool call; inside a group every change to the document lands in one step,
    so a single Undo takes the whole change back.

    Use it around a multi-step change the user would undo as a whole, for
    example one object built from several create, boolean and modify calls.
    Call end_undo_group when the change is done. Groups do not nest.

    While a group is open:
    - undo and redo are refused, since the group's step is still being
      recorded; correct a mistake with modify_object or delete_object instead.
    - edits the user makes in Rhino, and edits from other MCP clients, join
      the group.

    The plugin also ends the group when no command arrives from this client
    for idle_timeout_seconds, and when the document is closed or another
    document becomes active. A reconnect after a timeout keeps the group. If
    the group ends without end_undo_group, the next change's result carries an
    _undo_group block saying so; begin a new group to group what follows.

    Parameters:
    - name: short name for the change, e.g. "Build chair frame". Rhino lists
      the step as "MCP: <name>".
    - idle_timeout_seconds: end the group after this many seconds without any
      command (default 120, at most 3600).

    Returns name, undo_description, document_name, idle_timeout_seconds and a
    message. Requires plugin 0.5.2.
boolean_differencetool Subtract closed-solid cutters from a base solid. On success deletes sourcesNetworkEnv varsoutside text
Subtract closed-solid cutters from a base solid. On success deletes sources
    and returns the resulting object IDs in the message. A cutter extending beyond
    both block faces can produce a through-hole. Inspect the result before claiming success.
boolean_differencetool Perform a boolean difference (subtraction) - subtract objects from a base object.Networkoutside text
Perform a boolean difference (subtraction) - subtract objects from a base object.

    Parameters:
    - base_id: The object ID (GUID) of the base object to subtract from
    - subtract_ids: List of object IDs (GUIDs) to subtract from the base
    - delete_sources: Whether to delete the source objects after operation (default: True)
    - name: Optional name for the resulting object
    - dry_run: Preview the result and its metrics without modifying the document (default: False)

    Returns:
    A message indicating the result of the operation.

    Note: Objects must be valid closed solids (Breps, Extrusions, or Surfaces).
boolean_intersectiontool Perform a boolean intersection - keep only the overlapping volume of objects.Networkoutside text
Perform a boolean intersection - keep only the overlapping volume of objects.

    Parameters:
    - object_ids: List of object IDs (GUIDs) to intersect (minimum 2)
    - delete_sources: Whether to delete the source objects after operation (default: True)
    - name: Optional name for the resulting object
    - dry_run: Preview the result and its metrics without modifying the document (default: False)

    Returns:
    A message indicating the result of the operation.

    Note: Objects must be valid closed solids (Breps, Extrusions, or Surfaces) that overlap.
boolean_uniontool Perform a boolean union on multiple solid objects, combining them into one.Networkoutside text
Perform a boolean union on multiple solid objects, combining them into one.

    Parameters:
    - object_ids: List of object IDs (GUIDs) to union together (minimum 2)
    - delete_sources: Whether to delete the source objects after union (default: True)
    - name: Optional name for the resulting object
    - dry_run: Preview the result and its metrics without modifying the document (default: False)

    Returns:
    A message indicating the result of the operation.

    Note: Objects must be valid closed solids (Breps, Extrusions, or Surfaces).
capture_viewporttool Capture a Rhino viewport as an image plus metadata saying what it shows.Networkoutside text
Capture a Rhino viewport as an image plus metadata saying what it shows.

    Parameters:
    - viewport: Target viewport to capture. Options:
        - "active": The currently active viewport (default)
        - "perspective": The perspective viewport
        - "top", "front", "right", "back", "left", "bottom": standard
          orthographic views
        - Or any custom viewport name defined in the document
    - width: Image width in pixels (default: 800, range: 100-4096)
    - height: Image height in pixels (default: 600, range: 100-4096)
    - show_grid: Show the viewport grid (default: True)
    - show_axes: Show world axes indicator (default: True)
    - show_cplane_axes: Show construction plane axes (default: False)
    - zoom_to_fit: Fit visible objects to the requested image dimensions (default: False)
    - format: "png" (default) or "jpeg" (smaller, lossy; saves context)
    - display_mode: Display mode name for this capture, e.g. "Shaded",
      "Wireframe", "Rendered", "Ghosted", "Technical", "Arctic". An unknown
      name is refused with the list of available modes.
    - camera_location / camera_target: [x, y, z] explicit camera for this
      capture; pass either or both. lens_length (mm) sets the 35mm-equivalent
      lens of a perspective view.
    - frame_object_ids: object ids to frame, or
      frame_bbox: {"min": [x, y, z], "max": [x, y, z]} world box to frame.
      An explicit camera (camera_location, camera_target or lens_length)
      cannot be combined with framing (frame_object_ids, frame_bbox or
      zoom_to_fit=True); the plugin refuses that with invalid_argument.

    Display mode, camera, lens and framing are temporary: the viewport is
    restored exactly as it was after the capture.

    Returns:
    The image, then a text block with a JSON object: viewport_name,
    display_mode, projection ("perspective" or "parallel"), width, height,
    camera_location, camera_target, camera_up, lens_length,
    scene_bounding_box ({min, max}, null for an empty document),
    visible_object_count and total_object_count. Read it to confirm the
    picture shows what you meant to look at.

    Example workflow:
    1. capture_viewport(viewport="perspective") - overall 3D view
    2. capture_viewport(viewport="top", zoom_to_fit=True) - plan view
    3. capture_viewport(frame_object_ids=[id], display_mode="Wireframe") - inspect one part
    4. capture_viewport(camera_location=[50, -80, 40], camera_target=[0, 0, 10]) - known angle
create_layertool Create a new layer in the Rhino document.Networkoutside text
Create a new layer in the Rhino document.

    Parameters:
    - name: The name of the new layer. If omitted, Rhino automatically generates the layer name.
    - color: Optional [r, g, b] color values (0-255) for the layer
    - parent: Optional parent reference. Use an exact full path such as "Assembly::Left"
      when names repeat; a simple name is accepted only when it identifies exactly one
      nondeleted layer. Missing or ambiguous parents and duplicate sibling names return errors.

    Returns:
    A message indicating the created layer name, or a clear creation error.

    Examples of params:
    - name: "Layer 1"
    - color: [255, 0, 0]
    - parent: "Assembly::Left"
create_objecttool Create a primitive. BOX params: width (X), length (Y), height (Z).NetworkEnv varsoutside text
Create a primitive. BOX params: width (X), length (Y), height (Z).

    ARC params: center (XYZ), radius and angle (degrees), from +X in the XY plane.
    POLYLINE params: points, a list of XYZ triples. Repeat the first point to close.
    CYLINDER params: radius, height, cap (true for a solid). Its base is at world
    origin and height runs along +Z; translation offsets it. BOX is centered at origin.

    Primitives use the plugin's default placement; translation offsets the result.
    The returned bounding box shows the actual extent. Units are millimeters.
create_objecttool Create a new object in the Rhino document.Networkoutside text
Create a new object in the Rhino document.

    Parameters:
    - type: Object type ("POINT", "LINE", "POLYLINE", "CIRCLE", "ARC", "ELLIPSE", "CURVE", "BOX", "SPHERE", "CONE", "CYLINDER", "SURFACE"). For pipes, use the dedicated `pipe` tool.
    - name: Optional name for the object
    - color: Optional [r, g, b] color values (0-255) for the object
    - params: Type-specific parameters dictionary (see documentation for each type)
    - translation: Optional [x, y, z] translation vector
    - rotation: Optional [x, y, z] rotation in radians
    - scale: Optional [x, y, z] scale factors

    The params dictionary is type-specific.
    For POINT, the params dictionary should contain the following keys:
    - x: x coordinate of the point
    - y: y coordinate of the point
    - z: z coordinate of the point

    For LINE, the params dictionary should contain the following keys:
    - start: [x, y, z] start point of the line
    - end: [x, y, z] end point of the line

    For POLYLINE, the params dictionary should contain the following keys:
    - points: List of [x, y, z] points that define the polyline

    For CIRCLE, the params dictionary should contain the following keys:
    - center: [x, y, z] center point of the circle
    - radius: Radius of the circle

    For ARC, the params dictionary should contain the following keys:
    - center: [x, y, z] center point of the arc
    - radius: Radius of the arc
    - angle: Angle of the arc in degrees

    For ELLIPSE, the params dictionary should contain the following keys:
    - center: [x, y, z] center point of the ellipse
    - radius_x: Radius of the ellipse along X axis
    - radius_y: Radius of the ellipse along Y axis

    For CURVE, the params dictionary should contain the following keys:
    - points: List of [x, y, z] control points that define the curve
    - degree: Degree of the curve (default is 3, if user asked for smoother curve, degree can be higher)
    If the curve is closed, the first and last points should be the same.

    For BOX, the params dictionary should contain the following keys:
    - width: Width of the box along X axis of the object
    - length: Length of the box along Y axis of the object
    - height: Height of the box along Z axis of the object

    For SPHERE, the params dictionary should contain the following key:
    - radius: Radius of the sphere

    For CONE, the params dictionary should contain the following keys:
    - radius: Radius of the cone
    - height: Height of the cone
    - cap: Boolean to indicate if the cone should be capped at the base, default is True

    For CYLINDER, the params dictionary should contain the following keys:
    - radius: Radius of the cylinder
    - height: Height of the cylinder
    - cap: Boolean to indicate if the cylinder should be capped at the base, default is True

    For SURFACE, the params dictionary should contain the following keys:
    - count : ([number, number]) Tuple of two numbers defining number of points in the u,v directions
    - points: Flattened interpolation points (not control vertices), with the second grid index varying fastest.
      For degree selection and a validated biquadratic panel recipe, consult get_modeling_guidance("verification").
    - degree: ([number, number], optional) Degree of the surface (default is 3, if user asked for smoother surface, degree can be higher)
    - closed: ([bool, bool], optional) Two booleans defining if the surface is closed in the u,v directions

    Returns:
    A dict with success, id, name, type, message, plus bounding_box (the new
    object's axis-aligned extent) and, for curve-like types, geometry — each
    present only when the plugin reported it. Exceptions propagate as MCP tool errors.

    Examples of params:
    - POINT: {"x": 0, "y": 0, "z": 0}
    - LINE: {"start": [0, 0, 0], "end": [1, 1, 1]}
    - POLYLINE: {"points": [[0, 0, 0], [1, 1, 1], [2, 2, 2]]}
    - CIRCLE: {"center": [0, 0, 0], "radius": 1.0}
    - CURVE: {"points": [[0, 0, 0], [1, 1, 1], [2, 2, 2]], "degree": 3}
    - BOX: {"width": 1.0, "length": 1.0, "height": 1.0}
    - SPHERE: {"radius": 1.0}
    - CONE: {"radius": 1.0, "height": 1.0, "cap": True}
    - CYLINDER: {"radius": 1.0, "height": 1.0, "cap": True}
    - SURFACE: {"count": (3, 3), "points": [[0, 0, 0], [1, 0, 0], [2, 0, 0], [0, 1, 0], [1, 1, 0], [2, 1, 0], [0, 2, 0], [1, 2, 0], [2, 2, 0]], "degree": (3, 3), "closed": (False, False)}

    Primitive placement before optional transforms:
    - BOX is centered at world origin. Its bounds are [-width/2, -length/2, -height/2] to [width/2, length/2, height/2]. For an unrotated box whose minimum corner is [x,y,z], pass translation=[x+width/2, y+length/2, z+height/2] during creation.
    - CYLINDER has its base-circle center at world origin and extends along +Z from 0 to height. Translation places the base center, not the middle of the cylinder. To span Z from z0 to z1, use height=z1-z0 and translation=[center_x, center_y, z0].
    These rules describe unrotated, unscaled primitives. Inspect the returned bounding_box when applying additional transforms.
create_objectstool Create multiple objects at once in the Rhino document.Networkoutside text
Create multiple objects at once in the Rhino document.

    Parameters:
    - objects: A list of dictionaries, each containing the parameters for a single object

    Each object should have the following values:
    - type: Object type ("POINT", "LINE", "POLYLINE", "BOX", "SPHERE", etc.)
    - name: Optional name for the object
    - color: Optional [r, g, b] color values (0-255) for the object
    - params: Type-specific parameters dictionary (see documentation for each type in create_object() function)
    - translation: Optional [x, y, z] translation vector
    - rotation: Optional [x, y, z] rotation in radians
    - scale: Optional [x, y, z] scale factors

    Returns:
    A message indicating the created objects.

    Examples of params:
    [
        {
            "type": "POINT",
            "name": "Point 1",
            "params": {"x": 0, "y": 0, "z": 0}
        },
        {
            "type": "LINE",
            "name": "Line 1",
            "params": {"start": [0, 0, 0], "end": [1, 1, 1]}
        },
        {
            "type": "POLYLINE",
            "name": "Polyline 1",
            "params": {"points": [[0, 0, 0], [1, 1, 1], [2, 2, 2]]}
        },
        {
            "type": "CURVE",
            "name": "Curve 1",
            "params": {"points": [[0, 0, 0], [1, 1, 1], [2, 2, 2]], "degree": 3}
        },
        {
            "type": "BOX",
            "name": "Box 1",
            "color": [255, 0, 0],
            "params": {"width": 1.0, "length": 1.0, "height": 1.0},
            "translation": [0, 0, 0],
            "rotation": [0, 0, 0],
            "scale": [1, 1, 1]
        },
        {
            "type": "SPHERE",
            "name": "Sphere 1",
            "color": [0, 255, 0],
            "params": {"radius": 1.0},
            "translation": [0, 0, 0],
            "rotation": [0, 0, 0],
            "scale": [1, 1, 1]
        }
    ]
create_planar_regiontool Create one planar Brep face from closed coplanar boundary curves.Networkoutside text
Create one planar Brep face from closed coplanar boundary curves.

    The outer curve bounds the face and each distinct inner curve becomes one
    hole. Inner loops must be strictly inside the outer loop and mutually
    disjoint and nonnested. Input curves are preserved.

    Returns the created object id and face/loop counts. Exceptions propagate as
    MCP tool errors.
create_sourcetool Create exactly one declared new file; never overwrite an existing file.FilesEnv varsoutside text
Create exactly one declared new file; never overwrite an existing file.
delete_layertool Delete a layer in the Rhino document.Networkoutside text
Delete a layer in the Rhino document.
    If name is provided, it will try to delete the layer with the given name.
    If guid is provided, it will try to delete the layer with the given guid.
    If neither is provided, it will return an error.

    Parameters:
    - name: The name of the layer to delete.
    - guid: The guid of the layer to delete.

    Returns:
    A message indicating the layer was deleted.

    Examples of params:
    - name: "Layer 1"
    - guid: "00000000-0000-0000-0000-000000000000"
delete_objecttool Delete one construction object by ID in the dedicated experiment document.NetworkEnv varsoutside text
Delete one construction object by ID in the dedicated experiment document.
delete_objecttool Delete an object from the Rhino document.Networkoutside text
Delete an object from the Rhino document.

    Parameters:
    - id: The id of the object to delete
    - name: The name of the object to delete
    - all: If True, delete every object in the document. Only when the user
      asked to clear the whole model. It is one undo step, so one Undo brings
      everything back; locked objects stay and are reported as skipped_count.

    Exactly one of id, name, or all=True must be provided. Errors propagate
    as MCP tool errors.
describe_capabilitiestool Describe what this MCP server itself can do.Networkoutside text
Describe what this MCP server itself can do.

    Unlike get_commands, which lists Rhino's own application commands (Box,
    Circle, ...) for use with run_command, this lists the MCP command surface:
    every command the server handles and whether it is read-only, so you can
    discover what is callable here instead of guessing a name.

    Returns:
    - version: the plugin version
    - command_count: how many commands the server handles
    - commands: a list of {name, read_only, supports_dry_run}, sorted by name.
      supports_dry_run is absent on plugins older than the flag; read that as no.
    - perception: the opt-in envelope flags (include_delta, include_health) and
      what each attaches to a mutating command's result
    - server_version: this Python server's version
    - plugin_matches_server: whether plugin and server versions agree (null when
      either is unknown)
    - update_advice: which side is older and how to update it, or null
describe_commandtool Read an allowed command schema. Available: create_layer, create_object,Filesoutside text
Read an allowed command schema. Available: create_layer, create_object,
    update_object_attributes, get_object_attributes, get_objects, delete_object.
    BOX is centered at origin; translation offsets it. Units are millimeters.
    Use full layer paths when names repeat. No shell, code, import or export.
describe_modeling_commandtool Read the exact existing RhinoMCP parameter schema before using a command.FilesNetworkEnv varsoutside text
Read the exact existing RhinoMCP parameter schema before using a command.

    Available: create_object, create_objects, modify_object, modify_objects,
    delete_object, extrude_curve, loft, sweep1, pipe, offset_curve,
    boolean_difference, boolean_union, analyze_objects, get_objects,
    create_layer, update_object_attributes.
    BOX is centered on origin; rotation/scale use the world bounding-box center.
    CURVE points are control points, not necessarily interpolation points.
    Extrusion/sweep/loft leave their source curves; remove construction geometry.
    Units are millimeters. No arbitrary code, shell, import, or file operations.
end_undo_grouptool End the undo group begun with begin_undo_group. Its changes become oneNetworkoutside text
End the undo group begun with begin_undo_group. Its changes become one
    undo step, and later edits get their own steps again.

    Parameters:
    - force: end a group another client began (end_reason "forced"). Only for
      a group whose client is gone; without it, ending another client's group
      is refused.

    Returns ended=true with the group's name, command_count and
    duration_seconds. With no group open it returns ended=false instead of
    failing; last_group then says why the previous group already ended (for
    example idle_timeout), and edits made after that have their own undo steps.
    Requires plugin 0.5.2.
execute_rhinocommon_csharp_codetool Execute RhinoCommon C# code directly in Rhino.NetworkEnv varsoutside text
Execute RhinoCommon C# code directly in Rhino.

    This tool allows you to execute C# code that uses the RhinoCommon API directly.
    The code is compiled and executed at runtime using Roslyn.

    IMPORTANT NOTES:
    ================
    1. The code runs in a scripting context with the following globals available:
       - `doc`: The active RhinoDoc (Rhino.RhinoDoc)
       - `output`: A StringBuilder to capture output (use output.AppendLine("..."))

    2. Common namespaces are pre-imported:
       - System, System.Collections.Generic, System.Linq
       - Rhino, Rhino.Geometry, Rhino.DocObjects, Rhino.Commands

    3. Use `output.AppendLine()` to return results to the caller (like print() in Python)

    Parameters:
    - code: The C# code to execute

    Example Usage:
    --------------
    Task: "Create a sphere at the origin"

    ```csharp
    var sphere = new Sphere(Point3d.Origin, 5.0);
    var brep = sphere.ToBrep();
    doc.Objects.AddBrep(brep);
    doc.Views.Redraw();
    output.AppendLine($"Created sphere with radius 5 at origin");
    ```

    Task: "List all curves in the document"

    ```csharp
    var curves = doc.Objects.FindByObjectType(ObjectType.Curve);
    output.AppendLine($"Found {curves.Length} curves:");
    foreach (var obj in curves)
    {
        output.AppendLine($"  - {obj.Id}: {obj.Name ?? "(unnamed)"}");
    }
    ```

    Task: "Create a line between two points"

    ```csharp
    var start = new Point3d(0, 0, 0);
    var end = new Point3d(10, 10, 0);
    var line = new Line(start, end);
    doc.Objects.AddLine(line);
    doc.Views.Redraw();
    output.AppendLine($"Created line from {start} to {end}");
    ```

    Common Mistakes to Avoid:
    - Forgetting to use `output.AppendLine()` to return results
    - Not calling `doc.Views.Redraw()` after adding objects
    - Using types without their namespace (use Point3d, not Rhino.Geometry.Point3d)

    Returns:
    - success: Whether the code executed successfully
    - output: Any output from output.AppendLine() calls
    - message: Error message if failed (includes compilation errors)

    Document changes the script makes are recorded as one undo step, so a
    single `undo` reverses them, including after a script that fails partway.
    They are not rolled back automatically. Files written, network calls and
    processes started by the script are outside Rhino's undo and stay.

    Safety: this tool compiles+runs arbitrary C# inside Rhino. Gated by the
    RHINO_MCP_ENABLE_CSHARP env var (default on for local dev). Set to "0"
    to refuse calls — recommended when the MCP server is exposed to
    untrusted clients.
execute_rhinoscript_python_codetool Execute RhinoScript Python code in Rhino.NetworkEnv varsoutside text
Execute RhinoScript Python code in Rhino.

    CRITICAL - BEFORE USING THIS TOOL:
    =================================
    You MUST call get_rhinoscript_docs() or search_rhinoscript_functions() first
    to find the correct function signatures. DO NOT guess function names or parameters.

    Required Workflow:
    1. Call get_rhinoscript_docs("your goal") to find relevant functions
    2. Read the documentation carefully - note exact signatures and parameter types
    3. Write code using ONLY the documented signatures
    4. Call this tool with the code

    Parameters:
    - code: The RhinoScript Python code to execute

    Code Requirements:
    - Import rhinoscriptsyntax: `import rhinoscriptsyntax as rs`
    - Use print() to return output/results to the caller
    - Use EXACT function signatures from documentation
    - Handle None returns from functions that might fail

    Example Workflow:
    -----------------
    Task: "Create a loft surface between two curves"

    Step 1: get_rhinoscript_docs("loft surface curves")
            -> Returns AddLoftSrf documentation with exact signature

    Step 2: Read that AddLoftSrf takes object_ids (list of curve GUIDs)

    Step 3: Write and execute:
    ```python
    import rhinoscriptsyntax as rs

    # Get the curves (assumes they exist)
    curves = rs.GetObjects("Select curves for loft", rs.filter.curve)
    if curves:
        loft = rs.AddLoftSrf(curves)
        print(f"Created loft: {loft}")
    ```

    Common Mistakes to Avoid:
    - Using non-existent functions (ALWAYS verify with docs first)
    - Wrong parameter order (check signature carefully)
    - Wrong parameter types (e.g., passing Point3d when list expected)
    - Forgetting to import rhinoscriptsyntax

    Returns:
    - success: Whether the code executed successfully
    - output: Any print() output from the script
    - message: Error message if failed

    Document changes the script makes are recorded as one undo step, so a
    single `undo` reverses them, including after a script that fails partway.
    They are not rolled back automatically. Files written, network calls and
    processes started by the script are outside Rhino's undo and stay.

    Safety: this tool runs arbitrary Python inside Rhino. Gated by the
    RHINO_MCP_ENABLE_RHINOSCRIPT env var (default on for local dev). Set to
    "0" to refuse calls — recommended when the MCP server is exposed to
    untrusted clients.
extrude_curvetool Extrude a profile by a world XYZ vector. Cap a closed planar profile toNetworkEnv varsoutside text
Extrude a profile by a world XYZ vector. Cap a closed planar profile to
    create a solid. The original curve remains; delete it separately if unwanted.
extrude_curvetool Extrude a curve along a direction vector to create a surface or solid.Networkoutside text
Extrude a curve along a direction vector to create a surface or solid.

    Parameters:
    - curve_id: The curve ID (GUID) to extrude
    - direction: Extrusion direction as [x, y, z] vector (e.g., [0, 0, 10] for 10 units up)
    - name: Optional name for the resulting object
    - cap: If True and curve is closed, caps the ends to create a solid (default: True)

    Returns:
    - Dictionary with result_id (created object ID) and message

    Example:
        # Create a circle and extrude it upward to make a cylinder
        circle = create_object(type="CIRCLE", params={"center": [0,0,0], "radius": 5})
        result = extrude_curve(curve_id=circle_id, direction=[0, 0, 10], name="cylinder")
get_commandstool List Rhino command names available in the current session.Networkoutside text
List Rhino command names available in the current session.

    Use this together with `run_command` to discover what is invokable before guessing
    a command name. Filter is a case-insensitive substring match — pass "boolean" to
    find every boolean-related command, "view" for view commands, and so on.

    Parameters:
    - filter: Optional case-insensitive substring. Empty string returns all commands.
    - loaded_only: If True (default), only commands from currently loaded plugins are
                   returned. Set False to also include commands from unloaded plugins.

    Returns a JSON object: {"count": N, "commands": ["Box", "Circle", ...]}
get_contexttool Get a bounded snapshot of where you stand in Rhino. Call this first.Networkoutside text
Get a bounded snapshot of where you stand in Rhino. Call this first.

    Returns, for the active document and active viewport only:
    - document_name, document_path (null when untitled or unsaved)
    - units, absolute_tolerance, angle_tolerance (degrees)
    - current_layer (full path) and layer_count
    - object_count and objects_by_type (top 8 types by count, descending)
    - selection_count and selected_ids (first 20)
    - viewport: name (also as viewport_name), projection ("perspective" or
      "parallel"), display_mode, camera_location and camera_target as
      [x, y, z], camera_up and lens_length
    - scene_bounding_box {min, max}, null when the document is empty
    - grasshopper_definition_count (open Grasshopper definitions)

    Reading the context changes nothing. For the layer hierarchy and
    per-layer counts use get_document_summary; for objects use get_objects.
get_document_summarytool Get a lightweight summary of the current Rhino document.Networkoutside text
Get a lightweight summary of the current Rhino document.

    This returns aggregated statistics about the model without individual object details:
    - Document metadata (name, units, tolerance, dates)
    - Total object count
    - Object counts grouped by type (e.g., 50 curves, 30 surfaces)
    - Object counts grouped by layer
    - Model-wide bounding box encompassing all objects
    - Full layer hierarchy with parent-child relationships and per-layer object counts

    Use this tool first to understand the model composition before querying specific objects.
    For detailed object information, use get_objects with filters.
get_modeling_guidancetool Read the versioned Rhino modeling guide bundled with this server.Filesoutside text
Read the versioned Rhino modeling guide bundled with this server.

    Consult transforms for anchors and world-origin rotation, planar_regions for
    faces with holes, organization for layer assignment, verification for checking
    results, or recovery after uncertain edits. overview lists the workflow and
    topics. Works without a Rhino connection; does not change documents.
get_module_functionstool Get all functions in a specific RhinoScript module with their signatures.Filesoutside text
Get all functions in a specific RhinoScript module with their signatures.

    Parameters:
    - module_name: The module name (e.g., "curve", "surface", "mesh", "transformation")

    Use list_rhinoscript_modules() first to see available modules.

    Returns:
    - All functions in the module with signatures and brief descriptions
get_object_attributestool Get lightweight object metadata and custom user strings.Networkoutside text
Get lightweight object metadata and custom user strings.

    Parameters:
    - id: The id of the object to inspect
    - name: The name of the object to inspect

    Returns:
    A dictionary containing object name, layer, color/material sources,
    visibility/lock state, and user_strings. If both id and name are provided,
    id is used.
get_object_infotool Get detailed information about a specific object in the Rhino document.Networkoutside text
Get detailed information about a specific object in the Rhino document.
    The information contains the object's id, name, type, all custom user attributes and geometry info.
    Provide at least one selector: id or name of the object to get information about.
    If both are provided, id takes priority.
    If neither selector is known, use get_objects first to discover objects and their ids or names.

    Returns:
    - A dictionary containing the object's information
    - The dictionary will have the following keys:
        - "id": The id of the object
        - "name": The name of the object
        - "type": The type of the object
        - "layer": The layer of the object
        - "material": The material of the object
        - "color": The color of the object
        - "bounding_box": The bounding box of the object
        - "geometry": The geometry info of the object
        - "attributes": A dictionary containing all custom user attributes of the object

    Parameters:
    - id: The id of the object to get information about
    - name: The name of the object to get information about
get_objectstool Query objects in the Rhino document with filtering and pagination.Networkoutside text
Query objects in the Rhino document with filtering and pagination.

    Use this tool to retrieve specific subsets of objects after first calling
    get_context (or get_document_summary for per-layer counts) to understand
    the model composition.

    Parameters:
    - offset: Number of objects to skip (default: 0)
    - limit: Maximum objects to return (default: 50, max: 200)
    - layer_filter: Return only objects on this layer (name or full path)
    - type_filter: Return only objects of this type:
        POINT, LINE, POLYLINE, CIRCLE, ARC, CURVE,
        BOX, SPHERE, CONE, CYLINDER, SURFACE, BREP, EXTRUSION, MESH
    - bbox_filter: Return objects within bounding box [[min_x,min_y,min_z],[max_x,max_y,max_z]]
    - include_geometry: Include detailed geometry data (default: true, false for lightweight listing)
    - ids: Return only objects with these ids; ids not in the document are simply absent
    - selected_only: Return only objects that are currently selected (default: false)
    - include_hidden: Also return hidden objects and objects on hidden layers (default: false)
    - include_locked: Also return locked objects and objects on locked layers
      (default: true; set false to list only what select_objects can select)

    A layer_filter naming a layer that does not exist returns an empty listing.

    Returns:
    - objects: Array of object information
    - total_matching: Total count matching filters
    - offset, limit: Applied pagination
    - has_more: Whether more objects are available
    - filters: The filters that were applied

    Example: Get all curves on layer "Walls":
        get_objects(layer_filter="Walls", type_filter="CURVE")

    Example: List what is selected right now, hidden objects included:
        get_objects(selected_only=True, include_hidden=True)

    Example: Get next page of results:
        get_objects(offset=50, limit=50)
get_or_set_current_layertool Get or set the current layer in the Rhino document.Networkoutside text
Get or set the current layer in the Rhino document.
    If name is provided, it will try to set the current layer to the layer with the given name.
    If guid is provided, it will try to set the current layer to the layer with the given guid.
    If neither is provided, it will return the current layer.

    Parameters:
    - name: The name of the layer to set the current layer to.
    - guid: The guid of the layer to set the current layer to.

    Returns:
    A message indicating the current layer.

    Examples of params:
    - name: "Layer 1"
    - guid: "00000000-0000-0000-0000-000000000000"
get_reference_imagetool Read one calibrated reference image. No candidate or hidden model access.FilesNetworkEnv varsoutside text
Read one calibrated reference image. No candidate or hidden model access.
get_reference_imagetool Read one explicitly named public reference screenshot from the task prompt.FilesNetworkEnv varsoutside text
Read one explicitly named public reference screenshot from the task prompt.
get_review_imagetool Receive one saved reference or candidate PNG. Use only exact image IDsFilesEnv varsoutside text
Receive one saved reference or candidate PNG. Use only exact image IDs
    listed in the review prompt. No live Rhino operations or arbitrary file paths.
get_rhinoscript_docstool Get comprehensive RhinoScript documentation for a topic.Filesoutside text
Get comprehensive RhinoScript documentation for a topic.

    This is the PRIMARY tool to use before writing any RhinoScript Python code.
    It searches for relevant functions and returns complete documentation including
    signatures, parameters, return values, and examples.

    Parameters:
    - topic: What you want to accomplish (e.g., "loft surface between curves", "boolean operations", "extrude curve")
    - include_examples: Whether to include code examples (default: True)
    - max_functions: Maximum number of function docs to return (default: 5)

    Returns:
    - Comprehensive documentation for the most relevant functions

    CRITICAL: You MUST call this tool before using execute_rhinoscript_python_code.
    Using functions without checking their documentation leads to syntax errors.

    Example usage:
    1. User asks: "Create a loft surface between two curves"
    2. Call: get_rhinoscript_docs("loft surface curves")
    3. Read the returned documentation carefully
    4. Write code using ONLY the exact signatures shown
get_selected_objects_infotool Get detailed information about the currently selected objects in RhinoNetworkoutside text
Get detailed information about the currently selected objects in Rhino

    Parameters:
    - include_attributes: Whether to include the custom user attributes of the objects in the response
gh_add_componenttool Add a Grasshopper component to the active canvas.Networkoutside text
Add a Grasshopper component to the active canvas.

    Provide component_name or component_guid. If both are supplied, the GUID is
    resolved first to avoid ambiguous names.
gh_batch_get_component_type_infotool Inspect multiple Grasshopper component types and I/O maps in one call.Networkoutside text
Inspect multiple Grasshopper component types and I/O maps in one call.

    Each selector needs name/component_name or guid/component_guid. Prefer GUIDs
    when search returns ambiguous names.
gh_batch_search_componentstool Search multiple Grasshopper component names and return ranked matches.Networkoutside text
Search multiple Grasshopper component names and return ranked matches.

    The legacy results field keeps the best match for each query. Use matches or
    ambiguous to disambiguate names like "Square" or "Grid" by category,
    subcategory, nickname, or GUID before creating components. Each match
    carries obsolete and hidden flags, and current components rank first;
    avoid an obsolete or hidden match unless the user asks for it.
gh_build_graphtool Create and wire a Grasshopper graph in one batched canvas operation.Networkoutside text
Create and wire a Grasshopper graph in one batched canvas operation.

    Each component needs an alias plus component_name or component_guid. Use
    aliases in connections, values, groups, and preview_policy; the response
    returns aliases mapped to generated instance IDs.

    Use gh_mutate_graph for follow-up edits and rewires involving existing
    components by persisted alias, Grasshopper instance GUID, or nickname.

    Number Slider components support value/min/max/decimals. Layout supports
    max_columns to wrap long dataflow chains into a compact readable canvas.

    Minimal shape:
    components=[
        {"alias": "a", "component_name": "Number Slider", "value": 3.5, "min": 0, "max": 10},
        {"alias": "add", "component_name": "Addition"},
    ],
    connections=[{"source": "a", "target": "add", "target_input_index": 0}],
    layout={"enabled": True, "max_columns": 6}
gh_capture_previewtool Capture live Grasshopper preview in a Rhino viewport without baking.Networkoutside text
Capture live Grasshopper preview in a Rhino viewport without baking.

    The plugin computes preview bounds from visible IGH_PreviewObject
    ClippingBox values, optionally filtered by graph_id or aliases/GUIDs in
    targets, zooms the Rhino viewport to those bounds, and returns a PNG image.
gh_clear_canvastool Delete objects from the active Grasshopper canvas.Networkoutside text
Delete objects from the active Grasshopper canvas.
gh_clear_graphtool Delete all Grasshopper objects tagged with a graph id.Networkoutside text
Delete all Grasshopper objects tagged with a graph id.
gh_connect_componentstool Connect one Grasshopper output parameter to one input parameter.Networkoutside text
Connect one Grasshopper output parameter to one input parameter.
gh_create_documenttool Create or activate a Grasshopper document for subsequent canvas commands.Networkoutside text
Create or activate a Grasshopper document for subsequent canvas commands.
gh_delete_componenttool Delete one Grasshopper canvas object.Networkoutside text
Delete one Grasshopper canvas object.
gh_disconnect_componentstool Disconnect one Grasshopper wire, or all sources from a target input.Networkoutside text
Disconnect one Grasshopper wire, or all sources from a target input.
gh_expire_solutiontool Expire the whole Grasshopper solution or selected components.Networkoutside text
Expire the whole Grasshopper solution or selected components.
gh_get_available_componentstool Get installed Grasshopper components, optionally filtered by category.Networkoutside text
Get installed Grasshopper components, optionally filtered by category.
gh_get_canvas_statetool Return a structured snapshot of the active Grasshopper canvas.Networkoutside text
Return a structured snapshot of the active Grasshopper canvas.
gh_get_component_infotool Get detailed metadata for one Grasshopper canvas object.Networkoutside text
Get detailed metadata for one Grasshopper canvas object.
gh_get_component_type_infotool Inspect a Grasshopper component type before creating an instance.Networkoutside text
Inspect a Grasshopper component type before creating an instance.
gh_get_document_infotool Get information about the active Grasshopper document.Networkoutside text
Get information about the active Grasshopper document.
gh_get_graphtool Inspect all Grasshopper objects tagged with a graph id.Networkoutside text
Inspect all Grasshopper objects tagged with a graph id.
gh_get_parameter_valuetool Read structured data from a Grasshopper output parameter.Networkoutside text
Read structured data from a Grasshopper output parameter.
gh_layout_componentstool Lay out Grasshopper canvas objects using wires as a left-to-right graph.Networkoutside text
Lay out Grasshopper canvas objects using wires as a left-to-right graph.
gh_list_component_categoriestool List installed Grasshopper component categories and subcategories.Networkoutside text
List installed Grasshopper component categories and subcategories.
gh_list_componentstool List components on the active Grasshopper canvas.Networkoutside text
List components on the active Grasshopper canvas.
gh_mutate_graphtool Batch edit, rewire, and verify an existing or new Grasshopper graph.Networkoutside text
Batch edit, rewire, and verify an existing or new Grasshopper graph.

    Use this after gh_build_graph for follow-up edits: insert components,
    disconnect/reconnect wires, update values/preview/nicknames, delete objects,
    group/layout the changed graph, recompute, and verify outputs in one
    rollback-safe call. Selectors in source, target, layout targets, groups, and
    preview_policy can be request-local aliases, persisted aliases, Grasshopper
    instance GUIDs, or nicknames.

    Port selection supports indices or names/nicknames:
    source_output_name="R", target_input_name="L".

    Insert a component between two existing components by GUID:
    operations=[
        {
            "op": "disconnect",
            "source": "source-guid",
            "source_output_name": "G",
            "target": "target-guid",
            "target_input_name": "L",
        },
        {"op": "create", "alias": "flatten", "component_name": "Flatten Tree"},
        {"op": "connect", "source": "source-guid", "source_output_name": "G", "target": "flatten"},
        {"op": "connect", "source": "flatten", "target": "target-guid", "target_input_name": "L"},
        {"op": "recompute"},
    ]

    Use layout={"enabled": True, "targets": ["source-guid", "flatten", "target-guid"], "max_columns": 4}
    to keep the edited area readable.
gh_run_solutiontool Run a Grasshopper solution and report runtime warnings/errors.Networkoutside text
Run a Grasshopper solution and report runtime warnings/errors.
gh_search_componentstool Search the installed Grasshopper component library.Networkoutside text
Search the installed Grasshopper component library.

    Each result carries obsolete and hidden flags. Grasshopper keeps superseded
    versions that share a name with the current one and can compute different
    numbers; current components rank first, so prefer a result with both false.
gh_set_parameter_valuetool Set a slider, toggle, panel, value list, or regular input parameter value.Networkoutside text
Set a slider, toggle, panel, value list, or regular input parameter value.
gh_update_componenttool Update basic Grasshopper object metadata, position, enabled state, or preview state.Networkoutside text
Update basic Grasshopper object metadata, position, enabled state, or preview state.
inspect_viewtool Inspect your current model: perspective, front, right, back, left, top.FilesNetworkEnv varsoutside text
Inspect your current model: perspective, front, right, back, left, top.

    This is a Rhino viewport, not a calibrated reference camera or acceptance score.
intersect_curvestool Find intersection points or curves between two curves.Networkoutside text
Find intersection points or curves between two curves.

    Parameters:
    - curve_id_a: The first curve ID
    - curve_id_b: The second curve ID
    - tolerance: Optional intersection tolerance (defaults to document tolerance)
    - name: Optional base name for created intersection objects

    Returns:
    - Dictionary with point_ids, curve_ids, and message
join_surfacestool Join 2..12 existing surfaces using Rhino's native Join command. ReturnsNetworkoutside text
Join 2..12 existing surfaces using Rhino's native Join command. Returns
    command output; inspect get_objects afterward for the new ID, then set its
    final name/layer. Coincident edges are required. No arbitrary command strings.
join_surfacestool Join 2..12 surface IDs through native Rhino Join, with no raw macro input.NetworkEnv varsoutside text
Join 2..12 surface IDs through native Rhino Join, with no raw macro input.
    Inspect get_objects for the result ID; then set its name and layer. Requires
    coincident edges. Closed geometry is checked independently by the supervisor.
list_rhinoscript_modulestool List all available RhinoScript modules and their function counts.Filesoutside text
List all available RhinoScript modules and their function counts.

    Use this to explore what's available in RhinoScript when you're not sure
    what module contains the functions you need.

    Returns:
    - List of all modules with function counts and descriptions
lofttool Create a loft surface through multiple curves.Networkoutside text
Create a loft surface through multiple curves.

    Parameters:
    - curve_ids: List of curve IDs (GUIDs) to loft through (minimum 2 curves).
                 Curves should be in order from start to end of the loft.
    - name: Optional name for the resulting surface
    - closed: If True, creates a closed loft (connects last curve back to first)
    - loft_type: Type of loft (0=Normal, 1=Loose, 2=Tight, 3=Straight, 4=Developable)

    Returns:
    - Dictionary with result_ids (list of created surface IDs) and message

    Example:
        # Create two circles and loft between them
        circle1 = create_object(type="CIRCLE", params={"center": [0,0,0], "radius": 5})
        circle2 = create_object(type="CIRCLE", params={"center": [0,0,10], "radius": 3})
        result = loft(curve_ids=[circle1_id, circle2_id], name="my_loft")
measure_objectstool Report the spatial relationship between two objects.Networkoutside text
Report the spatial relationship between two objects.

    Parameters:
    - object_ids: Exactly two object GUIDs to measure between.

    Returns:
    - object_a, object_b: the two object GUIDs
    - clash: whether the two objects intersect
    - intersection_count: number of intersections (brep curves+points, or curve
      events); 0 for the bbox method
    - bbox_gap: exact minimum distance between the two bounding boxes (0 if they
      meet or overlap), a lower bound on the true surface-to-surface distance
    - method: how clash was determined ("brep", "curve", or "bbox"). "bbox"
      means the pair has no exact pairwise intersection here and overlap was
      judged by bounding box, so read it as approximate.
modeling_commandtool Call an allowed existing modeling command using its exact parameter schema.FilesNetworkEnv varsoutside text
Call an allowed existing modeling command using its exact parameter schema.

    Read describe_modeling_command first. Results and failures are recorded.
    There is no code execution or file import/export through this tool.
modify_objecttool Modify an existing object in the Rhino document.Networkoutside text
Modify an existing object in the Rhino document.

    Parameters:
    - id: The id of the object to modify
    - name: The name of the object to modify
    - new_name: Optional new name for the object
    - new_color: Optional [r, g, b] color values (0-255) for the object
    - translation: Optional [x, y, z] translation vector
    - rotation: Optional [x, y, z] rotation in radians around the pre-edit
      bounding-box center, not the world origin
    - scale: Optional [x, y, z] scale factors anchored at the pre-edit bounding-box minimum
    - visible: Optional boolean to set visibility

    Combined transforms apply scale, then Z/Y/X rotations, then translation.
    For world-origin rotation or composed poses, read get_modeling_guidance("transforms").

    Returns a dict with success, id, name, message, plus bounding_box — the
    object's new post-edit axis-aligned extent — and, for curve-like types,
    geometry, each present only when the plugin reported it. Errors propagate
    as MCP tool errors.
modify_objectstool Modify multiple existing objects at once in the Rhino document.Networkoutside text
Modify multiple existing objects at once in the Rhino document.

    Parameters:
    - objects: A List of objects, each containing the parameters for a single object modification
    - all: Optional boolean to modify all objects, if true, only one object is required in the objects dictionary

    Each object can have the following parameters:
    - id: The id of the object to modify
    - new_color: Optional [r, g, b] color values (0-255) for the object
    - translation: Optional [x, y, z] translation vector
    - rotation: Optional [x, y, z] rotation in radians
    - scale: Optional [x, y, z] scale factors
    - visible: Optional boolean to set visibility

    Returns:
    A message indicating the modified objects.
offset_curvetool Offset a curve by a specified distance.Networkoutside text
Offset a curve by a specified distance.

    Parameters:
    - curve_id: The curve ID (GUID) to offset
    - distance: Offset distance (positive = one side, negative = other side)
    - name: Optional name for the resulting curve
    - plane: Optional plane normal [x, y, z] for the offset direction.
             If not provided, uses the curve's plane or world XY.
    - corner_style: How to handle corners (0=None, 1=Sharp, 2=Round, 3=Smooth, 4=Chamfer)

    Returns:
    - Dictionary with result_ids (list of created curve IDs) and message

    Example:
        # Offset a curve by 2 units
        result = offset_curve(curve_id=my_curve_id, distance=2.0, name="offset_curve")
pipetool Create a pipe (tube) along a curve.Networkoutside text
Create a pipe (tube) along a curve.

    Parameters:
    - curve_id: The curve ID (GUID) to create pipe along
    - radius: Radius of the pipe
    - name: Optional name for the resulting object
    - cap: If True, caps the ends of the pipe (default: True)
    - fit_rail: If True, fits the pipe more closely to the rail curve

    Returns:
    - Dictionary with result_ids (list of created object IDs) and message

    Example:
        # Create a curved line and make it into a pipe
        curve = create_object(type="ARC", params={"center": [0,0,0], "radius": 10, "start_angle": 0, "end_angle": 90})
        result = pipe(curve_id=curve_id, radius=0.5, name="pipe_tube")
project_curvetool Project a curve onto surfaces, polysurfaces, or meshes.Networkoutside text
Project a curve onto surfaces, polysurfaces, or meshes.

    Parameters:
    - curve_id: The curve ID (GUID) to project
    - target_ids: List of surface, polysurface, or mesh IDs to project onto
    - direction: Projection direction as [x, y, z] vector
    - name: Optional name for the resulting curves

    Returns:
    - Dictionary with result_ids (list of created curve IDs) and message
read_sourcetool Read an explicitly allowed candidate source file and its SHA-256.FilesEnv varsoutside text
Read an explicitly allowed candidate source file and its SHA-256.
read_sourcetool Read one approved source; hidden evaluators and unrestricted files are unavailable.FilesEnv varsoutside text
Read one approved source; hidden evaluators and unrestricted files are unavailable.
redotool Redo the last undone operation(s) in the Rhino document.Networkoutside text
Redo the last undone operation(s) in the Rhino document.

    Parameters:
    - steps: Number of operations to redo (default: 1)

    Returns:
    A message indicating how many operations were redone.
replace_sourcetool Replace an allowed source file only if it still matches the last read hash.FilesEnv varsoutside text
Replace an allowed source file only if it still matches the last read hash.

    No shell, build, installation, evaluator access, file creation or arbitrary paths.
replace_sourcetool Replace a declared source only if its previously read hash still matches.FilesEnv varsoutside text
Replace a declared source only if its previously read hash still matches.
rotate_objecttool Rotate about the CURRENT WORLD BOUNDING-BOX CENTER, using XYZ radians.NetworkEnv varsoutside text
Rotate about the CURRENT WORLD BOUNDING-BOX CENTER, using XYZ radians.

    This is not rotation about world origin or volume centroid. For a different
    pivot compensate the final translation, or construct an already posed profile.
run_commandtool Execute a Rhino command string and return whatever the command window prints.NetworkEnv varsoutside text
Execute a Rhino command string and return whatever the command window prints.

    This is the escape hatch for Rhino commands that do not yet have a typed MCP tool.
    Anything you can type into the Rhino command line works here, including aliases and
    macros. Prefix the command name with an underscore to force the English name (e.g.
    "_Box 0,0,0 10,10,10"). Multiple commands can be chained with newlines.

    Pair this with `get_commands` to discover what command names are available before
    invoking. Prefer the typed tools (create_object, boolean_union, etc.) when one
    exists — they are validated and return structured data.

    Parameters:
    - command: Rhino command string to execute, e.g. "_Box 0,0,0 10,10,10".
    - echo: If True, the command is echoed in the Rhino command window as it runs.
            Default False to keep the output focused on diagnostics.

    Returns the captured command-window output as a string. Failed commands are
    prefixed with "Command failed:" so the agent can distinguish failure from
    silent success without parsing JSON.

    Safety: this tool is gated by the RHINO_MCP_ENABLE_RUN_COMMAND env var
    (default on for local dev). Set it to "0" to refuse calls before they
    reach Rhino — recommended whenever the MCP server is exposed to
    untrusted clients.
search_rhinoscript_functionstool Search RhinoScript functions by keyword or description.Filesoutside text
Search RhinoScript functions by keyword or description.

    Use this tool to find the correct function names before writing any RhinoScript code.

    Parameters:
    - query: What you want to do (e.g., "loft", "create surface from curves", "boolean union", "extrude")
    - limit: Maximum number of results to return (default: 10)

    Returns:
    - List of matching functions with name, signature, description, and module

    Example queries:
    - "loft surface" -> finds AddLoftSrf, etc.
    - "boolean" -> finds BooleanDifference, BooleanUnion, BooleanIntersection
    - "create curve" -> finds AddCurve, AddLine, AddArc, etc.
    - "rotate" -> finds RotateObject, RotateObjects, etc.

    IMPORTANT: Always use this tool BEFORE writing RhinoScript code to find correct function names.
section_profiletool Cut a plane through objects and measure each cross-section, without creatingNetworkoutside text
Cut a plane through objects and measure each cross-section, without creating
    anything in the document.

    Provide exactly one target selector:
    - id: section one object by GUID
    - name: section one object by name
    - object_ids: section multiple objects by GUID
    - selected: section the current Rhino selection

    Provide exactly one cut:
    - plane: a single cut. Either {"axis": "X"|"Y"|"Z", "value": <number>} for an
      axis-aligned world plane, or {"origin": [x, y, z], "normal": [x, y, z]} for
      an arbitrary plane.
    - profile: a stack of parallel cuts for a sectional-area curve, as
      {"axis": "X"|"Y"|"Z", "count": <2..100>, "start": <number?>, "end": <number?>}.
      Without start/end the stack spans the selection's extent along the axis.

    Returns (plane mode):
    - mode "plane", object_count, the resolved cut plane, total_section_area,
      total_loop_count, and per-object profiles. Each loop reports closed,
      perimeter, and, only when it closed, area and centroid. A single cut can
      produce several disjoint loops, so areas are summed per object.

    Returns (profile mode):
    - mode "profile", axis, count, and sections: one {position, total_section_area,
      loop_count} per slice, i.e. the cross-sectional area along the axis.
select_objectstool Select objects in the Rhino document. Replaces the current selection.Networkoutside text
Select objects in the Rhino document. Replaces the current selection.

    Parameters:
    - filters: A dictionary containing the filters. The filters parameter is necessary, unless it's empty, in which case all objects will be selected.
    - filters_type: The type of the filters, it's "and" or "or", default is "and"

    Filter semantics:
    - With filters_type="and", an object matches when every filter key matches.
    - With filters_type="or", an object matches when any filter key matches.
    - Name and custom-attribute string matches are exact (case-sensitive).

    Keys:
    - name: list of object names, e.g. ["Box1", "Box2"]
    - color: single RGB triplet, e.g. [255, 0, 0]
    - ids: list of object ids; an id not in the document is refused with not_found
    - layer: full layer path, e.g. "Furniture::Chairs"; an unknown layer is refused
      with not_found
    - type: one type name or a list, e.g. "CURVE" or ["BREP", "EXTRUSION"]
      (POINT, LINE, POLYLINE, CIRCLE, ARC, CURVE, SURFACE, BREP, EXTRUSION, ...)
    - hidden: true matches hidden objects, false matches visible ones
    - locked: true matches locked objects, false matches unlocked ones
    - any other key is treated as a user custom attribute and the value is a list
      of strings, so the names above cannot be used as custom attribute keys.

    Hidden and locked objects (or objects on hidden or locked layers) are only
    considered when hidden=true or locked=true is given. Rhino cannot select an
    object that is itself hidden or locked, so those count as matched but not
    selected; show or unlock them first.

    Example:
    filters = {
        "layer": "Walls",
        "type": "EXTRUSION",
        "name": ["object_name1", "object_name2"],
        "category": ["custom_attribute_value"]
    },
    filters_type = "and"


    Returns:
    How many objects were selected, and how many matched but could not be selected.
set_cameratool Point a viewport's camera. Changes what the user sees, never the document:Networkoutside text
Point a viewport's camera. Changes what the user sees, never the document:
    no undo record is created, so undo still reverts the last geometry edit.

    Parameters (pass at least one besides viewport; fields left out keep
    their current value):
    - viewport: viewport name such as "Perspective" or "Top"; default active
    - location: camera location [x, y, z]
    - target: point the camera looks at [x, y, z]
    - up: camera up vector [x, y, z]
    - lens_length: 35 mm equivalent lens length in millimetres (perspective)
    - projection: "perspective" or "parallel"

    Returns the viewport's state afterwards: viewport_name, projection,
    display_mode, camera_location, camera_target, camera_up, lens_length.
    To frame objects without computing a camera, use zoom_to.
split_curvetool Split a curve at specified parameters or points.Networkoutside text
Split a curve at specified parameters or points.

    Parameters:
    - curve_id: The curve ID to split
    - parameters: Optional list of curve parameters to split at
    - point_ids: Optional list of point object IDs to split at (closest points on curve will be used)
    - delete_source: Whether to delete the original curve (default: True)
    - name: Optional name for the resulting curve segments

    Returns:
    - Dictionary with result_ids (list of created curve segment IDs) and message
sweep1tool Sweep profiles along one rail using RoadlikeTop framing. Optional planarNetworkEnv varsoutside text
Sweep profiles along one rail using RoadlikeTop framing. Optional planar
    end caps require every output to be a valid solid or fail before insertion.
    Rail and profile curves remain; delete construction geometry separately.
sweep1tool Sweep one or more profile curves along a rail curve.Networkoutside text
Sweep one or more profile curves along a rail curve.

    Parameters:
    - rail_id: The rail curve ID (GUID) - the path along which to sweep
    - profile_ids: List of profile curve IDs (GUIDs) - the shapes to sweep
    - name: Optional name for the resulting surface
    - closed: If True, creates a closed sweep
    - cap_planar_ends: If True, cap planar holes at document tolerance. Every
      result must become a valid solid before any result is added; otherwise
      the operation fails and leaves the document unchanged (default: False).

    Returns:
    - Dictionary with result_ids (list of created surface IDs) and message

    Example:
        # Create a rail (line) and profile (circle), then sweep
        rail = create_object(type="LINE", params={"start": [0,0,0], "end": [10,0,5]})
        profile = create_object(type="CIRCLE", params={"center": [0,0,0], "radius": 1})
        result = sweep1(rail_id=rail_id, profile_ids=[profile_id], name="swept_tube")
translate_objecttool Translate an existing object by a world XYZ vector in millimeters.NetworkEnv varsoutside text
Translate an existing object by a world XYZ vector in millimeters.
undotool Undo the last operation(s) in the Rhino document.Networkoutside text
Undo the last operation(s) in the Rhino document.

    Parameters:
    - steps: Number of operations to undo (default: 1)

    Returns:
    A message indicating how many operations were undone.
update_object_attributestool Update lightweight object metadata and custom user strings.Networkoutside text
Update lightweight object metadata and custom user strings.

    Parameters:
    - id: The id of the object to update
    - name: The name of the object to update
    - new_name: Optional new object name
    - layer: Optional destination layer name or full path
    - color: Optional RGB color [r, g, b]. Sets color source to object.
    - material_index: Optional Rhino material table index. Sets material source to object.
    - visible: Optional visibility flag. False hides the object.
    - locked: Optional locked flag. True locks the object.
    - user_strings: Optional key/value metadata. Values are stored as strings; null deletes a key.
    - delete_user_strings: Optional list of user-string keys to delete.
    - clear_user_strings: If true, remove all existing user strings before applying updates.

    Returns:
    The updated lightweight object metadata.
zoom_totool Frame a viewport on objects. Changes what the user sees, never theNetworkoutside text
Frame a viewport on objects. Changes what the user sees, never the
    document: no undo record is created, so undo still reverts the last
    geometry edit.

    Parameters:
    - target: "all" (every visible object), "selection" (the current
      selection), "object_ids" (needs object_ids) or "layer" (needs layer)
    - viewport: viewport name such as "Perspective" or "Top"; default active
    - object_ids: ids of the objects to frame, when target is "object_ids"
    - layer: layer name or full path, when target is "layer"

    Returns the viewport's state afterwards (viewport_name, projection,
    display_mode, camera_location, camera_target, camera_up, lens_length) plus the
    bounding_box {min, max} it framed and the object_count inside it.

Text the model reads (106)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

read_source tool
Read an explicitly allowed candidate source file and its SHA-256.
replace_source tool
Replace an allowed source file only if it still matches the last read hash.

    No shell, build, installation, evaluator access, file creation or arbitrary paths.
read_source tool
Read one approved source; hidden evaluators and unrestricted files are unavailable.
replace_source tool
Replace a declared source only if its previously read hash still matches.
create_source tool
Create exactly one declared new file; never overwrite an existing file.
join_surfaces tool
Join 2..12 existing surfaces using Rhino's native Join command. Returns
    command output; inspect get_objects afterward for the new ID, then set its
    final name/layer. Coincident edges are required. No arbitrary command strings.
join_surfaces tool
Join 2..12 surface IDs through native Rhino Join, with no raw macro input.
    Inspect get_objects for the result ID; then set its name and layer. Requires
    coincident edges. Closed geometry is checked independently by the supervisor.
describe_command tool
Read an allowed command schema. Available: create_layer, create_object,
    update_object_attributes, get_object_attributes, get_objects, delete_object.
    BOX is centered at origin; translation offsets it. Units are millimeters.
    Use full layer paths when names repeat. No shell, code, import or export.
assembly_command tool
Call an allowed command after reading its schema. Failures are recorded.
create_object tool
Create a primitive. BOX params: width (X), length (Y), height (Z).

    ARC params: center (XYZ), radius and angle (degrees), from +X in the XY plane.
    POLYLINE params: points, a list of XYZ triples. Repeat the first point to close.
    CYLINDER params: radius, height, cap (true for a solid). Its base is at world
    origin and height runs along +Z; translation offsets it. BOX is centered at origin.

    Primitives use the plugin's default placement; translation offsets the result.
    The returned bounding box shows the actual extent. Units are millimeters.
translate_object tool
Translate an existing object by a world XYZ vector in millimeters.
rotate_object tool
Rotate about the CURRENT WORLD BOUNDING-BOX CENTER, using XYZ radians.

    This is not rotation about world origin or volume centroid. For a different
    pivot compensate the final translation, or construct an already posed profile.
extrude_curve tool
Extrude a profile by a world XYZ vector. Cap a closed planar profile to
    create a solid. The original curve remains; delete it separately if unwanted.
sweep1 tool
Sweep profiles along one rail using RoadlikeTop framing. Optional planar
    end caps require every output to be a valid solid or fail before insertion.
    Rail and profile curves remain; delete construction geometry separately.
delete_object tool
Delete one construction object by ID in the dedicated experiment document.
boolean_difference tool
Subtract closed-solid cutters from a base solid. On success deletes sources
    and returns the resulting object IDs in the message. A cutter extending beyond
    both block faces can produce a through-hole. Inspect the result before claiming success.
analyze_objects tool
Inspect validity, bounding dimensions, and volume for created objects.
get_reference_image tool
Read one calibrated reference image. No candidate or hidden model access.
get_review_image tool
Receive one saved reference or candidate PNG. Use only exact image IDs
    listed in the review prompt. No live Rhino operations or arbitrary file paths.
describe_modeling_command tool
Read the exact existing RhinoMCP parameter schema before using a command.

    Available: create_object, create_objects, modify_object, modify_objects,
    delete_object, extrude_curve, loft, sweep1, pipe, offset_curve,
    boolean_difference, boolean_union, analyze_objects, get_objects,
    create_layer, update_object_attributes.
    BOX is centered on origin; rotation/scale use the world bounding-box center.
    CURVE points are control points, not necessarily interpolation points.
    Extrusion/sweep/loft leave their source curves; remove construction geometry.
    Units are millimeters. No arbitrary code, shell, import, or file operations.
modeling_command tool
Call an allowed existing modeling command using its exact parameter schema.

    Read describe_modeling_command first. Results and failures are recorded.
    There is no code execution or file import/export through this tool.
get_reference_image tool
Read one explicitly named public reference screenshot from the task prompt.
inspect_view tool
Inspect your current model: perspective, front, right, back, left, top.

    This is a Rhino viewport, not a calibrated reference camera or acceptance score.
(name computed at run time) tool
(name computed at run time) tool
loft tool
Create a loft surface through multiple curves.

    Parameters:
    - curve_ids: List of curve IDs (GUIDs) to loft through (minimum 2 curves).
                 Curves should be in order from start to end of the loft.
    - name: Optional name for the resulting surface
    - closed: If True, creates a closed loft (connects last curve back to first)
    - loft_type: Type of loft (0=Normal, 1=Loose, 2=Tight, 3=Straight, 4=Developable)

    Returns:
    - Dictionary with result_ids (list of created surface IDs) and message

    Example:
        # Create two circles and loft between them
        circle1 = create_object(type="CIRCLE", params={"center": [0,0,0], "radius": 5})
        circle2 = create_object(type="CIRCLE", params={"center": [0,0,10], "radius": 3})
        result = loft(curve_ids=[circle1_id, circle2_id], name="my_loft")
extrude_curve tool
Extrude a curve along a direction vector to create a surface or solid.

    Parameters:
    - curve_id: The curve ID (GUID) to extrude
    - direction: Extrusion direction as [x, y, z] vector (e.g., [0, 0, 10] for 10 units up)
    - name: Optional name for the resulting object
    - cap: If True and curve is closed, caps the ends to create a solid (default: True)

    Returns:
    - Dictionary with result_id (created object ID) and message

    Example:
        # Create a circle and extrude it upward to make a cylinder
        circle = create_object(type="CIRCLE", params={"center": [0,0,0], "radius": 5})
        result = extrude_curve(curve_id=circle_id, direction=[0, 0, 10], name="cylinder")
sweep1 tool
Sweep one or more profile curves along a rail curve.

    Parameters:
    - rail_id: The rail curve ID (GUID) - the path along which to sweep
    - profile_ids: List of profile curve IDs (GUIDs) - the shapes to sweep
    - name: Optional name for the resulting surface
    - closed: If True, creates a closed sweep
    - cap_planar_ends: If True, cap planar holes at document tolerance. Every
      result must become a valid solid before any result is added; otherwise
      the operation fails and leaves the document unchanged (default: False).

    Returns:
    - Dictionary with result_ids (list of created surface IDs) and message

    Example:
        # Create a rail (line) and profile (circle), then sweep
        rail = create_object(type="LINE", params={"start": [0,0,0], "end": [10,0,5]})
        profile = create_object(type="CIRCLE", params={"center": [0,0,0], "radius": 1})
        result = sweep1(rail_id=rail_id, profile_ids=[profile_id], name="swept_tube")
offset_curve tool
Offset a curve by a specified distance.

    Parameters:
    - curve_id: The curve ID (GUID) to offset
    - distance: Offset distance (positive = one side, negative = other side)
    - name: Optional name for the resulting curve
    - plane: Optional plane normal [x, y, z] for the offset direction.
             If not provided, uses the curve's plane or world XY.
    - corner_style: How to handle corners (0=None, 1=Sharp, 2=Round, 3=Smooth, 4=Chamfer)

    Returns:
    - Dictionary with result_ids (list of created curve IDs) and message

    Example:
        # Offset a curve by 2 units
        result = offset_curve(curve_id=my_curve_id, distance=2.0, name="offset_curve")
pipe tool
Create a pipe (tube) along a curve.

    Parameters:
    - curve_id: The curve ID (GUID) to create pipe along
    - radius: Radius of the pipe
    - name: Optional name for the resulting object
    - cap: If True, caps the ends of the pipe (default: True)
    - fit_rail: If True, fits the pipe more closely to the rail curve

    Returns:
    - Dictionary with result_ids (list of created object IDs) and message

    Example:
        # Create a curved line and make it into a pipe
        curve = create_object(type="ARC", params={"center": [0,0,0], "radius": 10, "start_angle": 0, "end_angle": 90})
        result = pipe(curve_id=curve_id, radius=0.5, name="pipe_tube")
analyze_objects tool
Analyze object validity and common geometry measurements.

    Provide exactly one target selector:
    - id: Analyze one object by GUID
    - name: Analyze one object by name
    - object_ids: Analyze multiple objects by GUID
    - selected: Analyze the current Rhino selection

    Returns:
    - object_count: Number of analyzed objects
    - analyses: Per-object reports with validity, bounding box dimensions,
      and type-specific measurements such as length, area, volume, centroid,
      closed/solid flags, and Brep/Mesh counts where available.
      For Breps, naked_edge_count counts all naked topological edges, including
      inner hole boundaries and excluding joined edges and seams.
boolean_union tool
Perform a boolean union on multiple solid objects, combining them into one.

    Parameters:
    - object_ids: List of object IDs (GUIDs) to union together (minimum 2)
    - delete_sources: Whether to delete the source objects after union (default: True)
    - name: Optional name for the resulting object
    - dry_run: Preview the result and its metrics without modifying the document (default: False)

    Returns:
    A message indicating the result of the operation.

    Note: Objects must be valid closed solids (Breps, Extrusions, or Surfaces).
boolean_difference tool
Perform a boolean difference (subtraction) - subtract objects from a base object.

    Parameters:
    - base_id: The object ID (GUID) of the base object to subtract from
    - subtract_ids: List of object IDs (GUIDs) to subtract from the base
    - delete_sources: Whether to delete the source objects after operation (default: True)
    - name: Optional name for the resulting object
    - dry_run: Preview the result and its metrics without modifying the document (default: False)

    Returns:
    A message indicating the result of the operation.

    Note: Objects must be valid closed solids (Breps, Extrusions, or Surfaces).
boolean_intersection tool
Perform a boolean intersection - keep only the overlapping volume of objects.

    Parameters:
    - object_ids: List of object IDs (GUIDs) to intersect (minimum 2)
    - delete_sources: Whether to delete the source objects after operation (default: True)
    - name: Optional name for the resulting object
    - dry_run: Preview the result and its metrics without modifying the document (default: False)

    Returns:
    A message indicating the result of the operation.

    Note: Objects must be valid closed solids (Breps, Extrusions, or Surfaces) that overlap.
capture_viewport tool
Capture a Rhino viewport as an image plus metadata saying what it shows.

    Parameters:
    - viewport: Target viewport to capture. Options:
        - "active": The currently active viewport (default)
        - "perspective": The perspective viewport
        - "top", "front", "right", "back", "left", "bottom": standard
          orthographic views
        - Or any custom viewport name defined in the document
    - width: Image width in pixels (default: 800, range: 100-4096)
    - height: Image height in pixels (default: 600, range: 100-4096)
    - show_grid: Show the viewport grid (default: True)
    - show_axes: Show world axes indicator (default: True)
    - show_cplane_axes: Show construction plane axes (default: False)
    - zoom_to_fit: Fit visible objects to the requested image dimensions (default: False)
    - format: "png" (default) or "jpeg" (smaller, lossy; saves context)
    - display_mode: Display mode name for this capture, e.g. "Shaded",
      "Wireframe", "Rendered", "Ghosted", "Technical", "Arctic". An unknown
      name is refused with the list of available modes.
    - camera_location / camera_target: [x, y, z] explicit camera for this
      capture; pass either or both. lens_length (mm) sets the 35mm-equivalent
      lens of a perspective view.
    - frame_object_ids: object ids to frame, or
      frame_bbox: {"min": [x, y, z], "max": [x, y, z]} world box to frame.
      An explicit camera (camera_location, camera_target or lens_length)
      cannot be combined with framing (frame_object_ids, frame_bbox or
      zoom_to_fit=True); the plugin refuses that with invalid_argument.

    Display mode, camera, lens and framing are temporary: the viewport is
    restored exactly as it was after the capture.

    Returns:
    The image, then a text block with a JSON object: viewport_name,
    display_mode, projection ("perspective" or "parallel"), width, height,
    camera_location, camera_target, camera_up, lens_length,
    scene_bounding_box ({min, max}, null for an empty document),
    visible_object_count and total_object_count. Read it to confirm the
    picture shows what you meant to look at.

    Example workflow:
    1. capture_viewport(viewport="perspective") - overall 3D view
    2. capture_viewport(viewport="top", zoom_to_fit=True) - plan view
    3. capture_viewport(frame_object_ids=[id], display_mode="Wireframe") - inspect one part
    4. capture_viewport(camera_location=[50, -80, 40], camera_target=[0, 0, 10]) - known angle
create_layer tool
Create a new layer in the Rhino document.

    Parameters:
    - name: The name of the new layer. If omitted, Rhino automatically generates the layer name.
    - color: Optional [r, g, b] color values (0-255) for the layer
    - parent: Optional parent reference. Use an exact full path such as "Assembly::Left"
      when names repeat; a simple name is accepted only when it identifies exactly one
      nondeleted layer. Missing or ambiguous parents and duplicate sibling names return errors.

    Returns:
    A message indicating the created layer name, or a clear creation error.

    Examples of params:
    - name: "Layer 1"
    - color: [255, 0, 0]
    - parent: "Assembly::Left"
create_object tool
Create a new object in the Rhino document.

    Parameters:
    - type: Object type ("POINT", "LINE", "POLYLINE", "CIRCLE", "ARC", "ELLIPSE", "CURVE", "BOX", "SPHERE", "CONE", "CYLINDER", "SURFACE"). For pipes, use the dedicated `pipe` tool.
    - name: Optional name for the object
    - color: Optional [r, g, b] color values (0-255) for the object
    - params: Type-specific parameters dictionary (see documentation for each type)
    - translation: Optional [x, y, z] translation vector
    - rotation: Optional [x, y, z] rotation in radians
    - scale: Optional [x, y, z] scale factors

    The params dictionary is type-specific.
    For POINT, the params dictionary should contain the following keys:
    - x: x coordinate of the point
    - y: y coordinate of the point
    - z: z coordinate of the point

    For LINE, the params dictionary should contain the following keys:
    - start: [x, y, z] start point of the line
    - end: [x, y, z] end point of the line

    For POLYLINE, the params dictionary should contain the following keys:
    - points: List of [x, y, z] points that define the polyline

    For CIRCLE, the params dictionary should contain the following keys:
    - center: [x, y, z] center point of the circle
    - radius: Radius of the circle

    For ARC, the params dictionary should contain the following keys:
    - center: [x, y, z] center point of the arc
    - radius: Radius of the arc
    - angle: Angle of the arc in degrees

    For ELLIPSE, the params dictionary should contain the following keys:
    - center: [x, y, z] center point of the ellipse
    - radius_x: Radius of the ellipse along X axis
    - radius_y: Radius of the ellipse along Y axis

    For CURVE, the params dictionary should contain the following keys:
    - points: List of [x, y, z] control points that define the curve
    - degree: Degree of the curve (default is 3, if user asked for smoother curve, degree can be higher)
    If the curve is closed, the first and last points should be the same.

    For BOX, the params dictionary should contain the following keys:
    - width: Width of the box along X axis of the object
    - length: Length of the box along Y axis of the object
    - height: Height of the box along Z axis of the object

    For SPHERE, the params dictionary should contain the following key:
    - radius: Radius of the sphere

    For CONE, the params dictionary should contain the following keys:
    - radius: Radius of the cone
    - height: Height of the cone
    - cap: Boolean to indicate if the cone should be capped at the base, default is True

    For CYLINDER, the params dictionary should contain the following keys:
    - radius: Radius of the cylinder
    - height: Height of the cylinder
    - cap: Boolean to indicate if the cylinder should be capped at the base, default is True

    For SURFACE, the params dictionary should contain the following keys:
    - count : ([number, number]) Tuple of two numbers defining number of points in the u,v directions
    - points: Flattened interpolation points (not control vertices), with the second grid index varying fastest.
      For degree selection and a validated biquadratic panel recipe, consult get_modeling_guidance("verification").
    - degree: ([number, number], optional) Degree of the surface (default is 3, if user asked for smoother surface, degree can be higher)
    - closed: ([bool, bool], optional) Two booleans defining if the surface is closed in the u,v directions

    Returns:
    A dict with success, id, name, type, message, plus bounding_box (the new
    object's axis-aligned extent) and, for curve-like types, geometry — each
    present only when the plugin reported it. Exceptions propagate as MCP tool errors.

    Examples of params:
    - POINT: {"x": 0, "y": 0, "z": 0}
    - LINE: {"start": [0, 0, 0], "end": [1, 1, 1]}
    - POLYLINE: {"points": [[0, 0, 0], [1, 1, 1], [2, 2, 2]]}
    - CIRCLE: {"center": [0, 0, 0], "radius": 1.0}
    - CURVE: {"points": [[0, 0, 0], [1, 1, 1], [2, 2, 2]], "degree": 3}
    - BOX: {"width": 1.0, "length": 1.0, "height": 1.0}
    - SPHERE: {"radius": 1.0}
    - CONE: {"radius": 1.0, "height": 1.0, "cap": True}
    - CYLINDER: {"radius": 1.0, "height": 1.0, "cap": True}
    - SURFACE: {"count": (3, 3), "points": [[0, 0, 0], [1, 0, 0], [2, 0, 0], [0, 1, 0], [1, 1, 0], [2, 1, 0], [0, 2, 0], [1, 2, 0], [2, 2, 0]], "degree": (3, 3), "closed": (False, False)}

    Primitive placement before optional transforms:
    - BOX is centered at world origin. Its bounds are [-width/2, -length/2, -height/2] to [width/2, length/2, height/2]. For an unrotated box whose minimum corner is [x,y,z], pass translation=[x+width/2, y+length/2, z+height/2] during creation.
    - CYLINDER has its base-circle center at world origin and extends along +Z from 0 to height. Translation places the base center, not the middle of the cylinder. To span Z from z0 to z1, use height=z1-z0 and translation=[center_x, center_y, z0].
    These rules describe unrotated, unscaled primitives. Inspect the returned bounding_box when applying additional transforms.
create_objects tool
Create multiple objects at once in the Rhino document.

    Parameters:
    - objects: A list of dictionaries, each containing the parameters for a single object

    Each object should have the following values:
    - type: Object type ("POINT", "LINE", "POLYLINE", "BOX", "SPHERE", etc.)
    - name: Optional name for the object
    - color: Optional [r, g, b] color values (0-255) for the object
    - params: Type-specific parameters dictionary (see documentation for each type in create_object() function)
    - translation: Optional [x, y, z] translation vector
    - rotation: Optional [x, y, z] rotation in radians
    - scale: Optional [x, y, z] scale factors

    Returns:
    A message indicating the created objects.

    Examples of params:
    [
        {
            "type": "POINT",
            "name": "Point 1",
            "params": {"x": 0, "y": 0, "z": 0}
        },
        {
            "type": "LINE",
            "name": "Line 1",
            "params": {"start": [0, 0, 0], "end": [1, 1, 1]}
        },
        {
            "type": "POLYLINE",
            "name": "Polyline 1",
            "params": {"points": [[0, 0, 0], [1, 1, 1], [2, 2, 2]]}
        },
        {
            "type": "CURVE",
            "name": "Curve 1",
            "params": {"points": [[0, 0, 0], [1, 1, 1], [2, 2, 2]], "degree": 3}
        },
        {
            "type": "BOX",
            "name": "Box 1",
            "color": [255, 0, 0],
            "params": {"width": 1.0, "length": 1.0, "height": 1.0},
            "translation": [0, 0, 0],
            "rotation": [0, 0, 0],
            "scale": [1, 1, 1]
        },
        {
            "type": "SPHERE",
            "name": "Sphere 1",
            "color": [0, 255, 0],
            "params": {"radius": 1.0},
            "translation": [0, 0, 0],
            "rotation": [0, 0, 0],
            "scale": [1, 1, 1]
        }
    ]
create_planar_region tool
Create one planar Brep face from closed coplanar boundary curves.

    The outer curve bounds the face and each distinct inner curve becomes one
    hole. Inner loops must be strictly inside the outer loop and mutually
    disjoint and nonnested. Input curves are preserved.

    Returns the created object id and face/loop counts. Exceptions propagate as
    MCP tool errors.
project_curve tool
Project a curve onto surfaces, polysurfaces, or meshes.

    Parameters:
    - curve_id: The curve ID (GUID) to project
    - target_ids: List of surface, polysurface, or mesh IDs to project onto
    - direction: Projection direction as [x, y, z] vector
    - name: Optional name for the resulting curves

    Returns:
    - Dictionary with result_ids (list of created curve IDs) and message
intersect_curves tool
Find intersection points or curves between two curves.

    Parameters:
    - curve_id_a: The first curve ID
    - curve_id_b: The second curve ID
    - tolerance: Optional intersection tolerance (defaults to document tolerance)
    - name: Optional base name for created intersection objects

    Returns:
    - Dictionary with point_ids, curve_ids, and message
split_curve tool
Split a curve at specified parameters or points.

    Parameters:
    - curve_id: The curve ID to split
    - parameters: Optional list of curve parameters to split at
    - point_ids: Optional list of point object IDs to split at (closest points on curve will be used)
    - delete_source: Whether to delete the original curve (default: True)
    - name: Optional name for the resulting curve segments

    Returns:
    - Dictionary with result_ids (list of created curve segment IDs) and message
delete_layer tool
Delete a layer in the Rhino document.
    If name is provided, it will try to delete the layer with the given name.
    If guid is provided, it will try to delete the layer with the given guid.
    If neither is provided, it will return an error.

    Parameters:
    - name: The name of the layer to delete.
    - guid: The guid of the layer to delete.

    Returns:
    A message indicating the layer was deleted.

    Examples of params:
    - name: "Layer 1"
    - guid: "00000000-0000-0000-0000-000000000000"
delete_object tool
Delete an object from the Rhino document.

    Parameters:
    - id: The id of the object to delete
    - name: The name of the object to delete
    - all: If True, delete every object in the document. Only when the user
      asked to clear the whole model. It is one undo step, so one Undo brings
      everything back; locked objects stay and are reported as skipped_count.

    Exactly one of id, name, or all=True must be provided. Errors propagate
    as MCP tool errors.
describe_capabilities tool
Describe what this MCP server itself can do.

    Unlike get_commands, which lists Rhino's own application commands (Box,
    Circle, ...) for use with run_command, this lists the MCP command surface:
    every command the server handles and whether it is read-only, so you can
    discover what is callable here instead of guessing a name.

    Returns:
    - version: the plugin version
    - command_count: how many commands the server handles
    - commands: a list of {name, read_only, supports_dry_run}, sorted by name.
      supports_dry_run is absent on plugins older than the flag; read that as no.
    - perception: the opt-in envelope flags (include_delta, include_health) and
      what each attaches to a mutating command's result
    - server_version: this Python server's version
    - plugin_matches_server: whether plugin and server versions agree (null when
      either is unknown)
    - update_advice: which side is older and how to update it, or null
execute_rhinocommon_csharp_code tool
Execute RhinoCommon C# code directly in Rhino.

    This tool allows you to execute C# code that uses the RhinoCommon API directly.
    The code is compiled and executed at runtime using Roslyn.

    IMPORTANT NOTES:
    ================
    1. The code runs in a scripting context with the following globals available:
       - `doc`: The active RhinoDoc (Rhino.RhinoDoc)
       - `output`: A StringBuilder to capture output (use output.AppendLine("..."))

    2. Common namespaces are pre-imported:
       - System, System.Collections.Generic, System.Linq
       - Rhino, Rhino.Geometry, Rhino.DocObjects, Rhino.Commands

    3. Use `output.AppendLine()` to return results to the caller (like print() in Python)

    Parameters:
    - code: The C# code to execute

    Example Usage:
    --------------
    Task: "Create a sphere at the origin"

    ```csharp
    var sphere = new Sphere(Point3d.Origin, 5.0);
    var brep = sphere.ToBrep();
    doc.Objects.AddBrep(brep);
    doc.Views.Redraw();
    output.AppendLine($"Created sphere with radius 5 at origin");
    ```

    Task: "List all curves in the document"

    ```csharp
    var curves = doc.Objects.FindByObjectType(ObjectType.Curve);
    output.AppendLine($"Found {curves.Length} curves:");
    foreach (var obj in curves)
    {
        output.AppendLine($"  - {obj.Id}: {obj.Name ?? "(unnamed)"}");
    }
    ```

    Task: "Create a line between two points"

    ```csharp
    var start = new Point3d(0, 0, 0);
    var end = new Point3d(10, 10, 0);
    var line = new Line(start, end);
    doc.Objects.AddLine(line);
    doc.Views.Redraw();
    output.AppendLine($"Created line from {start} to {end}");
    ```

    Common Mistakes to Avoid:
    - Forgetting to use `output.AppendLine()` to return results
    - Not calling `doc.Views.Redraw()` after adding objects
    - Using types without their namespace (use Point3d, not Rhino.Geometry.Point3d)

    Returns:
    - success: Whether the code executed successfully
    - output: Any output from output.AppendLine() calls
    - message: Error message if failed (includes compilation errors)

    Document changes the script makes are recorded as one undo step, so a
    single `undo` reverses them, including after a script that fails partway.
    They are not rolled back automatically. Files written, network calls and
    processes started by the script are outside Rhino's undo and stay.

    Safety: this tool compiles+runs arbitrary C# inside Rhino. Gated by the
    RHINO_MCP_ENABLE_CSHARP env var (default on for local dev). Set to "0"
    to refuse calls — recommended when the MCP server is exposed to
    untrusted clients.
execute_rhinoscript_python_code tool
Execute RhinoScript Python code in Rhino.

    CRITICAL - BEFORE USING THIS TOOL:
    =================================
    You MUST call get_rhinoscript_docs() or search_rhinoscript_functions() first
    to find the correct function signatures. DO NOT guess function names or parameters.

    Required Workflow:
    1. Call get_rhinoscript_docs("your goal") to find relevant functions
    2. Read the documentation carefully - note exact signatures and parameter types
    3. Write code using ONLY the documented signatures
    4. Call this tool with the code

    Parameters:
    - code: The RhinoScript Python code to execute

    Code Requirements:
    - Import rhinoscriptsyntax: `import rhinoscriptsyntax as rs`
    - Use print() to return output/results to the caller
    - Use EXACT function signatures from documentation
    - Handle None returns from functions that might fail

    Example Workflow:
    -----------------
    Task: "Create a loft surface between two curves"

    Step 1: get_rhinoscript_docs("loft surface curves")
            -> Returns AddLoftSrf documentation with exact signature

    Step 2: Read that AddLoftSrf takes object_ids (list of curve GUIDs)

    Step 3: Write and execute:
    ```python
    import rhinoscriptsyntax as rs

    # Get the curves (assumes they exist)
    curves = rs.GetObjects("Select curves for loft", rs.filter.curve)
    if curves:
        loft = rs.AddLoftSrf(curves)
        print(f"Created loft: {loft}")
    ```

    Common Mistakes to Avoid:
    - Using non-existent functions (ALWAYS verify with docs first)
    - Wrong parameter order (check signature carefully)
    - Wrong parameter types (e.g., passing Point3d when list expected)
    - Forgetting to import rhinoscriptsyntax

    Returns:
    - success: Whether the code executed successfully
    - output: Any print() output from the script
    - message: Error message if failed

    Document changes the script makes are recorded as one undo step, so a
    single `undo` reverses them, including after a script that fails partway.
    They are not rolled back automatically. Files written, network calls and
    processes started by the script are outside Rhino's undo and stay.

    Safety: this tool runs arbitrary Python inside Rhino. Gated by the
    RHINO_MCP_ENABLE_RHINOSCRIPT env var (default on for local dev). Set to
    "0" to refuse calls — recommended when the MCP server is exposed to
    untrusted clients.
get_commands tool
List Rhino command names available in the current session.

    Use this together with `run_command` to discover what is invokable before guessing
    a command name. Filter is a case-insensitive substring match — pass "boolean" to
    find every boolean-related command, "view" for view commands, and so on.

    Parameters:
    - filter: Optional case-insensitive substring. Empty string returns all commands.
    - loaded_only: If True (default), only commands from currently loaded plugins are
                   returned. Set False to also include commands from unloaded plugins.

    Returns a JSON object: {"count": N, "commands": ["Box", "Circle", ...]}
get_context tool
Get a bounded snapshot of where you stand in Rhino. Call this first.

    Returns, for the active document and active viewport only:
    - document_name, document_path (null when untitled or unsaved)
    - units, absolute_tolerance, angle_tolerance (degrees)
    - current_layer (full path) and layer_count
    - object_count and objects_by_type (top 8 types by count, descending)
    - selection_count and selected_ids (first 20)
    - viewport: name (also as viewport_name), projection ("perspective" or
      "parallel"), display_mode, camera_location and camera_target as
      [x, y, z], camera_up and lens_length
    - scene_bounding_box {min, max}, null when the document is empty
    - grasshopper_definition_count (open Grasshopper definitions)

    Reading the context changes nothing. For the layer hierarchy and
    per-layer counts use get_document_summary; for objects use get_objects.
get_document_summary tool
Get a lightweight summary of the current Rhino document.

    This returns aggregated statistics about the model without individual object details:
    - Document metadata (name, units, tolerance, dates)
    - Total object count
    - Object counts grouped by type (e.g., 50 curves, 30 surfaces)
    - Object counts grouped by layer
    - Model-wide bounding box encompassing all objects
    - Full layer hierarchy with parent-child relationships and per-layer object counts

    Use this tool first to understand the model composition before querying specific objects.
    For detailed object information, use get_objects with filters.
get_modeling_guidance tool
Read the versioned Rhino modeling guide bundled with this server.

    Consult transforms for anchors and world-origin rotation, planar_regions for
    faces with holes, organization for layer assignment, verification for checking
    results, or recovery after uncertain edits. overview lists the workflow and
    topics. Works without a Rhino connection; does not change documents.
get_object_info tool
Get detailed information about a specific object in the Rhino document.
    The information contains the object's id, name, type, all custom user attributes and geometry info.
    Provide at least one selector: id or name of the object to get information about.
    If both are provided, id takes priority.
    If neither selector is known, use get_objects first to discover objects and their ids or names.

    Returns:
    - A dictionary containing the object's information
    - The dictionary will have the following keys:
        - "id": The id of the object
        - "name": The name of the object
        - "type": The type of the object
        - "layer": The layer of the object
        - "material": The material of the object
        - "color": The color of the object
        - "bounding_box": The bounding box of the object
        - "geometry": The geometry info of the object
        - "attributes": A dictionary containing all custom user attributes of the object

    Parameters:
    - id: The id of the object to get information about
    - name: The name of the object to get information about
get_objects tool
Query objects in the Rhino document with filtering and pagination.

    Use this tool to retrieve specific subsets of objects after first calling
    get_context (or get_document_summary for per-layer counts) to understand
    the model composition.

    Parameters:
    - offset: Number of objects to skip (default: 0)
    - limit: Maximum objects to return (default: 50, max: 200)
    - layer_filter: Return only objects on this layer (name or full path)
    - type_filter: Return only objects of this type:
        POINT, LINE, POLYLINE, CIRCLE, ARC, CURVE,
        BOX, SPHERE, CONE, CYLINDER, SURFACE, BREP, EXTRUSION, MESH
    - bbox_filter: Return objects within bounding box [[min_x,min_y,min_z],[max_x,max_y,max_z]]
    - include_geometry: Include detailed geometry data (default: true, false for lightweight listing)
    - ids: Return only objects with these ids; ids not in the document are simply absent
    - selected_only: Return only objects that are currently selected (default: false)
    - include_hidden: Also return hidden objects and objects on hidden layers (default: false)
    - include_locked: Also return locked objects and objects on locked layers
      (default: true; set false to list only what select_objects can select)

    A layer_filter naming a layer that does not exist returns an empty listing.

    Returns:
    - objects: Array of object information
    - total_matching: Total count matching filters
    - offset, limit: Applied pagination
    - has_more: Whether more objects are available
    - filters: The filters that were applied

    Example: Get all curves on layer "Walls":
        get_objects(layer_filter="Walls", type_filter="CURVE")

    Example: List what is selected right now, hidden objects included:
        get_objects(selected_only=True, include_hidden=True)

    Example: Get next page of results:
        get_objects(offset=50, limit=50)
get_or_set_current_layer tool
Get or set the current layer in the Rhino document.
    If name is provided, it will try to set the current layer to the layer with the given name.
    If guid is provided, it will try to set the current layer to the layer with the given guid.
    If neither is provided, it will return the current layer.

    Parameters:
    - name: The name of the layer to set the current layer to.
    - guid: The guid of the layer to set the current layer to.

    Returns:
    A message indicating the current layer.

    Examples of params:
    - name: "Layer 1"
    - guid: "00000000-0000-0000-0000-000000000000"
get_selected_objects_info tool
Get detailed information about the currently selected objects in Rhino

    Parameters:
    - include_attributes: Whether to include the custom user attributes of the objects in the response
gh_build_graph tool
Create and wire a Grasshopper graph in one batched canvas operation.

    Each component needs an alias plus component_name or component_guid. Use
    aliases in connections, values, groups, and preview_policy; the response
    returns aliases mapped to generated instance IDs.

    Use gh_mutate_graph for follow-up edits and rewires involving existing
    components by persisted alias, Grasshopper instance GUID, or nickname.

    Number Slider components support value/min/max/decimals. Layout supports
    max_columns to wrap long dataflow chains into a compact readable canvas.

    Minimal shape:
    components=[
        {"alias": "a", "component_name": "Number Slider", "value": 3.5, "min": 0, "max": 10},
        {"alias": "add", "component_name": "Addition"},
    ],
    connections=[{"source": "a", "target": "add", "target_input_index": 0}],
    layout={"enabled": True, "max_columns": 6}
gh_search_components tool
Search the installed Grasshopper component library.

    Each result carries obsolete and hidden flags. Grasshopper keeps superseded
    versions that share a name with the current one and can compute different
    numbers; current components rank first, so prefer a result with both false.
gh_batch_search_components tool
Search multiple Grasshopper component names and return ranked matches.

    The legacy results field keeps the best match for each query. Use matches or
    ambiguous to disambiguate names like "Square" or "Grid" by category,
    subcategory, nickname, or GUID before creating components. Each match
    carries obsolete and hidden flags, and current components rank first;
    avoid an obsolete or hidden match unless the user asks for it.
gh_list_component_categories tool
List installed Grasshopper component categories and subcategories.
gh_get_available_components tool
Get installed Grasshopper components, optionally filtered by category.
gh_get_component_type_info tool
Inspect a Grasshopper component type before creating an instance.
gh_batch_get_component_type_info tool
Inspect multiple Grasshopper component types and I/O maps in one call.

    Each selector needs name/component_name or guid/component_guid. Prefer GUIDs
    when search returns ambiguous names.
gh_list_components tool
List components on the active Grasshopper canvas.
gh_get_component_info tool
Get detailed metadata for one Grasshopper canvas object.
gh_add_component tool
Add a Grasshopper component to the active canvas.

    Provide component_name or component_guid. If both are supplied, the GUID is
    resolved first to avoid ambiguous names.
gh_layout_components tool
Lay out Grasshopper canvas objects using wires as a left-to-right graph.
gh_delete_component tool
Delete one Grasshopper canvas object.
gh_update_component tool
Update basic Grasshopper object metadata, position, enabled state, or preview state.
gh_clear_canvas tool
Delete objects from the active Grasshopper canvas.
gh_connect_components tool
Connect one Grasshopper output parameter to one input parameter.
gh_disconnect_components tool
Disconnect one Grasshopper wire, or all sources from a target input.
gh_create_document tool
Create or activate a Grasshopper document for subsequent canvas commands.
gh_get_document_info tool
Get information about the active Grasshopper document.
gh_get_canvas_state tool
Return a structured snapshot of the active Grasshopper canvas.
gh_get_graph tool
Inspect all Grasshopper objects tagged with a graph id.
gh_clear_graph tool
Delete all Grasshopper objects tagged with a graph id.
gh_mutate_graph tool
Batch edit, rewire, and verify an existing or new Grasshopper graph.

    Use this after gh_build_graph for follow-up edits: insert components,
    disconnect/reconnect wires, update values/preview/nicknames, delete objects,
    group/layout the changed graph, recompute, and verify outputs in one
    rollback-safe call. Selectors in source, target, layout targets, groups, and
    preview_policy can be request-local aliases, persisted aliases, Grasshopper
    instance GUIDs, or nicknames.

    Port selection supports indices or names/nicknames:
    source_output_name="R", target_input_name="L".

    Insert a component between two existing components by GUID:
    operations=[
        {
            "op": "disconnect",
            "source": "source-guid",
            "source_output_name": "G",
            "target": "target-guid",
            "target_input_name": "L",
        },
        {"op": "create", "alias": "flatten", "component_name": "Flatten Tree"},
        {"op": "connect", "source": "source-guid", "source_output_name": "G", "target": "flatten"},
        {"op": "connect", "source": "flatten", "target": "target-guid", "target_input_name": "L"},
        {"op": "recompute"},
    ]

    Use layout={"enabled": True, "targets": ["source-guid", "flatten", "target-guid"], "max_columns": 4}
    to keep the edited area readable.
gh_set_parameter_value tool
Set a slider, toggle, panel, value list, or regular input parameter value.
gh_get_parameter_value tool
Read structured data from a Grasshopper output parameter.
gh_capture_preview tool
Capture live Grasshopper preview in a Rhino viewport without baking.

    The plugin computes preview bounds from visible IGH_PreviewObject
    ClippingBox values, optionally filtered by graph_id or aliases/GUIDs in
    targets, zooms the Rhino viewport to those bounds, and returns a PNG image.
gh_run_solution tool
Run a Grasshopper solution and report runtime warnings/errors.
gh_expire_solution tool
Expire the whole Grasshopper solution or selected components.
measure_objects tool
Report the spatial relationship between two objects.

    Parameters:
    - object_ids: Exactly two object GUIDs to measure between.

    Returns:
    - object_a, object_b: the two object GUIDs
    - clash: whether the two objects intersect
    - intersection_count: number of intersections (brep curves+points, or curve
      events); 0 for the bbox method
    - bbox_gap: exact minimum distance between the two bounding boxes (0 if they
      meet or overlap), a lower bound on the true surface-to-surface distance
    - method: how clash was determined ("brep", "curve", or "bbox"). "bbox"
      means the pair has no exact pairwise intersection here and overlap was
      judged by bounding box, so read it as approximate.
modify_object tool
Modify an existing object in the Rhino document.

    Parameters:
    - id: The id of the object to modify
    - name: The name of the object to modify
    - new_name: Optional new name for the object
    - new_color: Optional [r, g, b] color values (0-255) for the object
    - translation: Optional [x, y, z] translation vector
    - rotation: Optional [x, y, z] rotation in radians around the pre-edit
      bounding-box center, not the world origin
    - scale: Optional [x, y, z] scale factors anchored at the pre-edit bounding-box minimum
    - visible: Optional boolean to set visibility

    Combined transforms apply scale, then Z/Y/X rotations, then translation.
    For world-origin rotation or composed poses, read get_modeling_guidance("transforms").

    Returns a dict with success, id, name, message, plus bounding_box — the
    object's new post-edit axis-aligned extent — and, for curve-like types,
    geometry, each present only when the plugin reported it. Errors propagate
    as MCP tool errors.
modify_objects tool
Modify multiple existing objects at once in the Rhino document.

    Parameters:
    - objects: A List of objects, each containing the parameters for a single object modification
    - all: Optional boolean to modify all objects, if true, only one object is required in the objects dictionary

    Each object can have the following parameters:
    - id: The id of the object to modify
    - new_color: Optional [r, g, b] color values (0-255) for the object
    - translation: Optional [x, y, z] translation vector
    - rotation: Optional [x, y, z] rotation in radians
    - scale: Optional [x, y, z] scale factors
    - visible: Optional boolean to set visibility

    Returns:
    A message indicating the modified objects.
get_object_attributes tool
Get lightweight object metadata and custom user strings.

    Parameters:
    - id: The id of the object to inspect
    - name: The name of the object to inspect

    Returns:
    A dictionary containing object name, layer, color/material sources,
    visibility/lock state, and user_strings. If both id and name are provided,
    id is used.
update_object_attributes tool
Update lightweight object metadata and custom user strings.

    Parameters:
    - id: The id of the object to update
    - name: The name of the object to update
    - new_name: Optional new object name
    - layer: Optional destination layer name or full path
    - color: Optional RGB color [r, g, b]. Sets color source to object.
    - material_index: Optional Rhino material table index. Sets material source to object.
    - visible: Optional visibility flag. False hides the object.
    - locked: Optional locked flag. True locks the object.
    - user_strings: Optional key/value metadata. Values are stored as strings; null deletes a key.
    - delete_user_strings: Optional list of user-string keys to delete.
    - clear_user_strings: If true, remove all existing user strings before applying updates.

    Returns:
    The updated lightweight object metadata.
search_rhinoscript_functions tool
Search RhinoScript functions by keyword or description.

    Use this tool to find the correct function names before writing any RhinoScript code.

    Parameters:
    - query: What you want to do (e.g., "loft", "create surface from curves", "boolean union", "extrude")
    - limit: Maximum number of results to return (default: 10)

    Returns:
    - List of matching functions with name, signature, description, and module

    Example queries:
    - "loft surface" -> finds AddLoftSrf, etc.
    - "boolean" -> finds BooleanDifference, BooleanUnion, BooleanIntersection
    - "create curve" -> finds AddCurve, AddLine, AddArc, etc.
    - "rotate" -> finds RotateObject, RotateObjects, etc.

    IMPORTANT: Always use this tool BEFORE writing RhinoScript code to find correct function names.
get_rhinoscript_docs tool
Get comprehensive RhinoScript documentation for a topic.

    This is the PRIMARY tool to use before writing any RhinoScript Python code.
    It searches for relevant functions and returns complete documentation including
    signatures, parameters, return values, and examples.

    Parameters:
    - topic: What you want to accomplish (e.g., "loft surface between curves", "boolean operations", "extrude curve")
    - include_examples: Whether to include code examples (default: True)
    - max_functions: Maximum number of function docs to return (default: 5)

    Returns:
    - Comprehensive documentation for the most relevant functions

    CRITICAL: You MUST call this tool before using execute_rhinoscript_python_code.
    Using functions without checking their documentation leads to syntax errors.

    Example usage:
    1. User asks: "Create a loft surface between two curves"
    2. Call: get_rhinoscript_docs("loft surface curves")
    3. Read the returned documentation carefully
    4. Write code using ONLY the exact signatures shown
list_rhinoscript_modules tool
List all available RhinoScript modules and their function counts.

    Use this to explore what's available in RhinoScript when you're not sure
    what module contains the functions you need.

    Returns:
    - List of all modules with function counts and descriptions
get_module_functions tool
Get all functions in a specific RhinoScript module with their signatures.

    Parameters:
    - module_name: The module name (e.g., "curve", "surface", "mesh", "transformation")

    Use list_rhinoscript_modules() first to see available modules.

    Returns:
    - All functions in the module with signatures and brief descriptions
run_command tool
Execute a Rhino command string and return whatever the command window prints.

    This is the escape hatch for Rhino commands that do not yet have a typed MCP tool.
    Anything you can type into the Rhino command line works here, including aliases and
    macros. Prefix the command name with an underscore to force the English name (e.g.
    "_Box 0,0,0 10,10,10"). Multiple commands can be chained with newlines.

    Pair this with `get_commands` to discover what command names are available before
    invoking. Prefer the typed tools (create_object, boolean_union, etc.) when one
    exists — they are validated and return structured data.

    Parameters:
    - command: Rhino command string to execute, e.g. "_Box 0,0,0 10,10,10".
    - echo: If True, the command is echoed in the Rhino command window as it runs.
            Default False to keep the output focused on diagnostics.

    Returns the captured command-window output as a string. Failed commands are
    prefixed with "Command failed:" so the agent can distinguish failure from
    silent success without parsing JSON.

    Safety: this tool is gated by the RHINO_MCP_ENABLE_RUN_COMMAND env var
    (default on for local dev). Set it to "0" to refuse calls before they
    reach Rhino — recommended whenever the MCP server is exposed to
    untrusted clients.
section_profile tool
Cut a plane through objects and measure each cross-section, without creating
    anything in the document.

    Provide exactly one target selector:
    - id: section one object by GUID
    - name: section one object by name
    - object_ids: section multiple objects by GUID
    - selected: section the current Rhino selection

    Provide exactly one cut:
    - plane: a single cut. Either {"axis": "X"|"Y"|"Z", "value": <number>} for an
      axis-aligned world plane, or {"origin": [x, y, z], "normal": [x, y, z]} for
      an arbitrary plane.
    - profile: a stack of parallel cuts for a sectional-area curve, as
      {"axis": "X"|"Y"|"Z", "count": <2..100>, "start": <number?>, "end": <number?>}.
      Without start/end the stack spans the selection's extent along the axis.

    Returns (plane mode):
    - mode "plane", object_count, the resolved cut plane, total_section_area,
      total_loop_count, and per-object profiles. Each loop reports closed,
      perimeter, and, only when it closed, area and centroid. A single cut can
      produce several disjoint loops, so areas are summed per object.

    Returns (profile mode):
    - mode "profile", axis, count, and sections: one {position, total_section_area,
      loop_count} per slice, i.e. the cross-sectional area along the axis.
select_objects tool
Select objects in the Rhino document. Replaces the current selection.

    Parameters:
    - filters: A dictionary containing the filters. The filters parameter is necessary, unless it's empty, in which case all objects will be selected.
    - filters_type: The type of the filters, it's "and" or "or", default is "and"

    Filter semantics:
    - With filters_type="and", an object matches when every filter key matches.
    - With filters_type="or", an object matches when any filter key matches.
    - Name and custom-attribute string matches are exact (case-sensitive).

    Keys:
    - name: list of object names, e.g. ["Box1", "Box2"]
    - color: single RGB triplet, e.g. [255, 0, 0]
    - ids: list of object ids; an id not in the document is refused with not_found
    - layer: full layer path, e.g. "Furniture::Chairs"; an unknown layer is refused
      with not_found
    - type: one type name or a list, e.g. "CURVE" or ["BREP", "EXTRUSION"]
      (POINT, LINE, POLYLINE, CIRCLE, ARC, CURVE, SURFACE, BREP, EXTRUSION, ...)
    - hidden: true matches hidden objects, false matches visible ones
    - locked: true matches locked objects, false matches unlocked ones
    - any other key is treated as a user custom attribute and the value is a list
      of strings, so the names above cannot be used as custom attribute keys.

    Hidden and locked objects (or objects on hidden or locked layers) are only
    considered when hidden=true or locked=true is given. Rhino cannot select an
    object that is itself hidden or locked, so those count as matched but not
    selected; show or unlock them first.

    Example:
    filters = {
        "layer": "Walls",
        "type": "EXTRUSION",
        "name": ["object_name1", "object_name2"],
        "category": ["custom_attribute_value"]
    },
    filters_type = "and"


    Returns:
    How many objects were selected, and how many matched but could not be selected.
set_camera tool
Point a viewport's camera. Changes what the user sees, never the document:
    no undo record is created, so undo still reverts the last geometry edit.

    Parameters (pass at least one besides viewport; fields left out keep
    their current value):
    - viewport: viewport name such as "Perspective" or "Top"; default active
    - location: camera location [x, y, z]
    - target: point the camera looks at [x, y, z]
    - up: camera up vector [x, y, z]
    - lens_length: 35 mm equivalent lens length in millimetres (perspective)
    - projection: "perspective" or "parallel"

    Returns the viewport's state afterwards: viewport_name, projection,
    display_mode, camera_location, camera_target, camera_up, lens_length.
    To frame objects without computing a camera, use zoom_to.
undo tool
Undo the last operation(s) in the Rhino document.

    Parameters:
    - steps: Number of operations to undo (default: 1)

    Returns:
    A message indicating how many operations were undone.
redo tool
Redo the last undone operation(s) in the Rhino document.

    Parameters:
    - steps: Number of operations to redo (default: 1)

    Returns:
    A message indicating how many operations were redone.
begin_undo_group tool
Make the next edits one undo step. Rhino normally records one undo step per
    tool call; inside a group every change to the document lands in one step,
    so a single Undo takes the whole change back.

    Use it around a multi-step change the user would undo as a whole, for
    example one object built from several create, boolean and modify calls.
    Call end_undo_group when the change is done. Groups do not nest.

    While a group is open:
    - undo and redo are refused, since the group's step is still being
      recorded; correct a mistake with modify_object or delete_object instead.
    - edits the user makes in Rhino, and edits from other MCP clients, join
      the group.

    The plugin also ends the group when no command arrives from this client
    for idle_timeout_seconds, and when the document is closed or another
    document becomes active. A reconnect after a timeout keeps the group. If
    the group ends without end_undo_group, the next change's result carries an
    _undo_group block saying so; begin a new group to group what follows.

    Parameters:
    - name: short name for the change, e.g. "Build chair frame". Rhino lists
      the step as "MCP: <name>".
    - idle_timeout_seconds: end the group after this many seconds without any
      command (default 120, at most 3600).

    Returns name, undo_description, document_name, idle_timeout_seconds and a
    message. Requires plugin 0.5.2.
end_undo_group tool
End the undo group begun with begin_undo_group. Its changes become one
    undo step, and later edits get their own steps again.

    Parameters:
    - force: end a group another client began (end_reason "forced"). Only for
      a group whose client is gone; without it, ending another client's group
      is refused.

    Returns ended=true with the group's name, command_count and
    duration_seconds. With no group open it returns ended=false instead of
    failing; last_group then says why the previous group already ended (for
    example idle_timeout), and edits made after that have their own undo steps.
    Requires plugin 0.5.2.
zoom_to tool
Frame a viewport on objects. Changes what the user sees, never the
    document: no undo record is created, so undo still reverts the last
    geometry edit.

    Parameters:
    - target: "all" (every visible object), "selection" (the current
      selection), "object_ids" (needs object_ids) or "layer" (needs layer)
    - viewport: viewport name such as "Perspective" or "Top"; default active
    - object_ids: ids of the objects to frame, when target is "object_ids"
    - layer: layer name or full path, when target is "layer"

    Returns the viewport's state afterwards (viewport_name, projection,
    display_mode, camera_location, camera_target, camera_up, lens_length) plus the
    bounding_box {min, max} it framed and the object_count inside it.
asset_general_strategy prompt
Inspect, construct and verify Rhino geometry with the bundled modeling guide.
rhinoscript_workflow prompt
CRITICAL: Workflow for writing RhinoScript Python code.
    Follow this workflow to avoid syntax errors and hallucination.
resource_list_modules resource
List all RhinoScript modules with function counts.
    Browse this to discover what's available.
resource_get_module resource
Get all functions in a specific module with signatures.
resource_get_function resource
Get complete documentation for a specific function.
modeling_guidance_resource resource
Read the same bundled guide through an MCP resource.

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure6.1
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 105 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 105 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Reads or writes any file path
    No tool works on a file path the caller supplies without a root check — 105 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Requests any address
    No tool sends a request to an address the caller supplies — 105 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 105 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Tools that start processes
    Not seen in the traced code of 106 capabilities; 104 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    24 of 106 capabilities touch files; 80 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    86 of 106 capabilities call the network; 18 more call code the scanner could not follow, where it may happen
Where the code is: 106 handlers in 55 files at commit 3c192bd8c800
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chain4.0
  • Dependency manifests
    1 manifest: server/pyproject.toml
  • Lockfiles checked against OSV
    1 file resolved and checked against the OSV database; 1 not resolved: server/pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
  • Known vulnerabilities in production dependencies CRITICAL
    3 production packages with known advisories
  • Known vulnerabilities in other dependencies
    No package used only for development, tests or examples has a known advisory
  • MCP SDK version
    No MCP SDK declared in a manifest
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    Not seen in the traced code of 106 capabilities; 104 more call code the scanner could not follow, where it may happen
  • Environment variables
    23 capabilities read environment variables (often API keys)
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read (1 only in code no tool reaches)
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (3 in production)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

PackageInstalledWorstAdvisoriesFixed in
pillowPyPI 12.3.0 CRITICAL 62 advisories 13.0.0
  • CRITICALGHSA-w889-685w-c8fh BIT-pillow-2026-112900 CVE-2026-112900Pillow: Argument Injection in Ghostscript call, potentially leading into RCE
  • CRITICALGHSA-v9pv-5gc8-w2m6 BIT-pillow-2026-96639 CVE-2026-96639 PYSEC-2026-4339Pillow multi-frame loaders can reuse stale native image storage after mode transitions
  • CRITICALGHSA-8g5g-8vmr-9782 BIT-pillow-2026-112403 CVE-2026-112403 PYSEC-2026-4332Pillow: Heap buffer overflow in ImagingJpegDecode
  • CRITICALGHSA-332p-7hrc-92wf BIT-pillow-2026-112393 CVE-2026-112393Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO
  • CRITICALGHSA-5x8w-8jj5-q52h BIT-pillow-2026-112398 CVE-2026-112398 PYSEC-2026-4330Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution
  • HIGHGHSA-c6hw-5grf-ff96 BIT-pillow-2026-112404 CVE-2026-112404Pillow: OOB read in TiffDecode.c tile and RGBA paths leaks heap memory into pixels
  • HIGHGHSA-f2g6-542v-9j58 BIT-pillow-2026-112406 CVE-2026-112406Pillow: Infinite loop in PdfParser.rewrite_pages on page tree Parent cycle
  • HIGHGHSA-jg86-v3jv-hrpm BIT-pillow-2026-112894 CVE-2026-112894Pillow: Quadratic-time DoS in PDF save_all (PdfParser.next_object_id)
  • HIGHGHSA-65qm-jvmh-6pqg BIT-pillow-2026-112400 CVE-2026-112400Pillow: GIF seek keeps rejected size after DecompressionBombError, allowing DoS
  • HIGHGHSA-22hg-r758-rrw9 BIT-pillow-2026-112390 CVE-2026-112390Pillow: Infinite loop in MIC n_frames when the embedded TIFF
  • HIGHGHSA-g7cr-3p24-7wf7 BIT-pillow-2026-96778 CVE-2026-96778Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer
  • HIGHGHSA-pchr-8j38-3x4p BIT-pillow-2026-112896 CVE-2026-112896 PYSEC-2026-4334Pillow: TIFF encoder ColorMap plane-size mismatch causes a heap out-of-bounds read
  • HIGHGHSA-3j72-p6qg-6xp7 BIT-pillow-2026-96642 CVE-2026-96642 PYSEC-2026-4341Pillow: TarIO negative size field causes infinite CPU-spin loop
  • HIGHGHSA-78g4-xqwv-q3g8Pillow: Bundled libopenjp2 2.5.4 in all wheels since 11.1.0 carries OSV-2025-219 heap-buffer-overflow write reachable from Image.open().load()
  • HIGHGHSA-gg2r-wvfm-q9rx BIT-pillow-2026-112892 CVE-2026-112892Pillow: MSP RLE decoder expands a tiny file into unbounded memory
  • HIGHGHSA-xvh5-g6gv-559v BIT-pillow-2026-112902 CVE-2026-112902 PYSEC-2026-4363 Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags
  • HIGHGHSA-9v9v-9qvf-h2hj BIT-pillow-2026-96644 CVE-2026-96644 PYSEC-2026-4343Pillow: Heap over-read in WMF/EMF rendering via 16-bit dimension truncation (Windows builds)
  • HIGHGHSA-27h8-gf7j-v5hc BIT-pillow-2026-112392 CVE-2026-112392 PYSEC-2026-4326Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images
  • HIGHGHSA-p4wg-p73j-c528 BIT-pillow-2026-112895 CVE-2026-112895Pillow: Unbounded recursion parsing a PDF page tree or trailer chain (incomplete fix for CVE-2026-42310)
  • HIGHGHSA-cp9v-662q-vvx9 BIT-pillow-2026-112405 CVE-2026-112405 PYSEC-2026-4333Pillow: NULL pointer dereference in Image.merge via an unvalidated band 0
  • HIGHGHSA-xcvg-w56q-r89m CVE-2026-128067Pillow: Heap buffer overflow saving TIFF with libtiff when tags override image size
  • HIGHGHSA-mrfp-p49p-3hf2 BIT-pillow-2026-96640 CVE-2026-96640Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion
  • HIGHGHSA-j4m9-6w36-pw47 BIT-pillow-2026-112893 CVE-2026-112893Pillow: Invalid free in FreeType glyph rendering when a stroker is active
  • HIGHGHSA-58r4-6rv3-gfh8 BIT-pillow-2026-112397 CVE-2026-112397 PYSEC-2026-4329Pillow: Out-of-bounds access in _imagingmorph on a zero-width image
  • HIGHGHSA-g4qv-2jxx-769h BIT-pillow-2026-96643 CVE-2026-96643 PYSEC-2026-4342Pillow: PNG eXIf chunk makes EXIF parsing run in quadratic time
  • HIGHGHSA-g842-9rc4-69pw BIT-pillow-2026-96637 CVE-2026-96637 PYSEC-2026-4338Pillow: Decompression bomb check bypass in SpiderImagePlugin.seek() leads to unbounded allocation DoS
  • HIGHGHSA-7mwm-ghpf-9vrm BIT-pillow-2026-112402 CVE-2026-112402 PYSEC-2026-4331Pillow: Double free in ImagingScaleAffine on calloc failure via Image.transform
  • HIGHGHSA-q45j-58j2-45rg BIT-pillow-2026-112897 CVE-2026-112897Pillow: TiffDecode returns uninitialized memory as pixels for short JPEG strips
  • HIGHGHSA-5xm2-6676-qcp9 BIT-pillow-2026-112399 CVE-2026-112399Pillow: APNG background disposal allocates full canvas before decompression bomb check
  • MEDIUMPYSEC-2026-4335 BIT-pillow-2026-112901 CVE-2026-112901 GHSA-xgh8-jp6q-p5x8Pillow is a Python imaging library. Prior to 13.0.0, Pillow's XBM header parser is vulnerable to regular-expression denial of service. In XbmImageFile._open, when an application calls Image.open() on a small crafted XBM file, XbmImagePlugin applies a backtracking expression to the attacker-controlled header before image dimensions are accepted, stalling a worker for minutes and denying service. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-4rm8-3hmm-39fg BIT-pillow-2026-96641 CVE-2026-96641 PYSEC-2026-4340Pillow: Reachable undefined behavior in native integer operations, potentially leading to denial of service or logic integrity compromise
  • MEDIUMPYSEC-2026-4331 BIT-pillow-2026-112402 CVE-2026-112402 GHSA-7mwm-ghpf-9vrmPillow is a Python imaging library. Prior to 13.0.0, Pillow can double free image memory when ImagingScaleAffine encounters a selective allocation failure. The affected fast path handles Transform.EXTENT or pure scale-and-translate Transform.AFFINE operations with the default NEAREST resampling. The output image allocation must succeed while the additional per-column lookup allocation fails, after which the error path deletes image storage that later cleanup releases again. An attacker who can drive such a large Image.transform() operation under memory pressure may trigger the failure. This can crash the process and may corrupt memory. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-462x-pgg6-55fp BIT-pillow-2026-112395 CVE-2026-112395Pillow tiled-TIFF decoder reads past tile buffer in copy4 (Unpack.c:1290)
  • MEDIUMGHSA-xgh8-jp6q-p5x8 BIT-pillow-2026-112901 CVE-2026-112901 PYSEC-2026-4335Pillow: ReDoS in XbmImagePlugin: 512-byte file stalls Image.open() for minutes
  • MEDIUMPYSEC-2026-4326 BIT-pillow-2026-112392 CVE-2026-112392 GHSA-27h8-gf7j-v5hcPillow is a Python imaging library. Prior to 13.0.0, Pillow's rank-based filters can dereference invalid image storage for a zero-size image. ImagingExpand() allocates a non-empty output and then faults while replicating edges by reading the first pixel from empty input storage; ImagingRankFilter is never reached. An attacker can supply or cause creation of a zero-size image to an application that applies a rank, median, minimum, or maximum filter. This causes a native process crash. This issue is fixed in version 13.0.0.
  • MEDIUMPYSEC-2026-4330 BIT-pillow-2026-112398 CVE-2026-112398 GHSA-5x8w-8jj5-q52hPillow is a Python imaging library. Prior to 13.0.0, Pillow's FlashPix JPEG-tile decoder can write decoded scanlines beyond the allocated tile buffer. FlashPix (FPX) JPEG decoding selects raw mode LA with two bytes per pixel, while an unrecognized JPEG mode can be decoded as JCS_UNKNOWN with four components, causing ImagingJpegDecode to write four-component scanlines into the two-byte tile buffer. An attacker can supply a crafted OLE2 FlashPix file to an application with the optional olefile dependency installed that opens or thumbnails untrusted input. This can corrupt heap memory and may allow arbitrary code execution. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-254f-3936-288h BIT-pillow-2026-112391 CVE-2026-112391Pillow: PdfParser can recurse without limit in get_value() and linearize_page_tree()
  • MEDIUMPYSEC-2026-4334 BIT-pillow-2026-112896 CVE-2026-112896 GHSA-pchr-8j38-3x4pPillow is a Python imaging library. Prior to 13.0.0, Pillow's TIFF encoder can read beyond a ColorMap buffer when retained TIFF metadata has a plane size inconsistent with BitsPerSample. A small TIFF can be opened normally and then retain a crafted ColorMap that is reused when the image is saved. An application that re-encodes the attacker's TIFF with libtiff can trigger the out-of-bounds read. This can disclose heap memory in the output or crash the process. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-vx6w-vv9f-6gvg BIT-pillow-2026-112899 CVE-2026-112899Pillow: EPS load(scale) lets Ghostscript render past the decompression bomb limit
  • MEDIUMPYSEC-2026-4343 BIT-pillow-2026-96644 CVE-2026-96644 GHSA-9v9v-9qvf-h2hjPillow is a Python imaging library. Prior to 13.0.0 on Windows, src/PIL/WmfImagePlugin.py passes unchecked 32-bit WMF or EMF dimensions to the native drawwmf handler in src/display.c. The handler sizes a DIB allocation from 16-bit-truncated bcWidth and bcHeight fields but copies pixel data using the original full dimensions. A crafted wide, short metafile can pass the pixel-count decompression-bomb check and make the Windows-only renderer read beyond the heap buffer, potentially disclosing memory or crashing the process. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-rfgq-q3w2-pmv2 BIT-pillow-2026-112898 CVE-2026-112898Pillow: Image.quantize() with empty palette leaks uninitialized stack memory
  • MEDIUMPYSEC-2026-4332 BIT-pillow-2026-112403 CVE-2026-112403 GHSA-8g5g-8vmr-9782Pillow is a Python imaging library. Prior to 13.0.0, Pillow's JPEG decoder can write a full-width scanline into a buffer sized for a requested draft scale. ImagingJpegDecode does not verify libjpeg's actual output width and component count after scaling is requested, and an 8-bit lossless SOF3 JPEG decoded by a build linked to libjpeg-turbo 3.x can ignore the requested downscaling geometry. An attacker can supply such a JPEG to an application that uses draft() or thumbnail() to request downscaling. This can corrupt heap memory, crash the process, or potentially allow code execution. Older libjpeg-turbo 2.x and IJG builds reject the SOF3 input. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-fc9g-5qg7-mf45 BIT-pillow-2026-112891 CVE-2026-112891Pillow: Quadratic GIF comment copying during save
  • MEDIUMPYSEC-2026-4340 BIT-pillow-2026-96641 CVE-2026-96641 GHSA-4rm8-3hmm-39fgPillow is a Python imaging library. Prior to 13.0.0, PILfont text-width accumulation in src/_imaging.c checks positive glyph advances against INT_MAX but does not check negative advances against INT_MIN. Repeating a signed 16-bit advance of -32768 can therefore execute a signed C integer overflow in xsize += dx, producing a large positive width from a negative mathematical result. Applications that use getlength(), getsize(), or derived layout, quota, serialization, or allocation calculations can experience logic-integrity errors or resource consumption, while the high-level mask path commonly retains a decompression-bomb check. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-24rc-8hj2-v98c BIT-pillow-2026-96638 CVE-2026-96638Pillow: BMP RLE decoder memory-amplification DoS via unbounded delta escape / absolute mode
  • MEDIUMPYSEC-2026-4341 BIT-pillow-2026-96642 CVE-2026-96642 GHSA-3j72-p6qg-6xp7Pillow is a Python imaging library. Prior to 13.0.0, the TarIO initializer in src/PIL/TarIO.py accepts a negative octal member size and computes a backward seek that returns to the same 512-byte header. When the requested member name does not match, the parser repeatedly reads that header, consumes a full CPU core, and never returns. TarIO is reached only when an application directly uses PIL.TarIO.TarIO rather than the default Image.open() path. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-74r2-7ff9-mjj2 BIT-pillow-2026-112401 CVE-2026-112401Pillow: Quadratic GIF comment concatenation allows DoS in Image.open()
  • MEDIUMPYSEC-2026-4339 BIT-pillow-2026-96639 CVE-2026-96639 GHSA-v9pv-5gc8-w2m6Pillow is a Python imaging library. From 11.0.0 until 13.0.0, multi-frame loaders can retain an ImagingCore allocation created for a narrow frame mode while a later frame of the same dimensions changes the logical mode and decoder tiles to wider RGB or CMYK data. ImageFile.load_prepare() reuses the stale native storage because _im is non-null without verifying that its mode and size still match. Crafted PSD, MPO, DCX, or MIC frame transitions can then write wider pixels into the narrow allocation, causing native out-of-bounds writes and crashes. The MPO path can also cause a native over-read and, in demonstrated runtime-specific profiles, command execution. This issue is fixed in version 13.0.0.
  • MEDIUMPYSEC-2026-4333 BIT-pillow-2026-112405 CVE-2026-112405 GHSA-cp9v-662q-vvx9Pillow is a Python imaging library. From 12.0.0 until 13.0.0, Pillow's Image.merge() can dereference a null image8 plane. Validation skips the first input band, allowing a 32-bit integer or floating-point image backed by image32 storage to be merged as a narrower multiband image. A crafted IPTC file can reach this path when an application opens and loads it, or a caller can invoke Image.merge() directly with such a first band. This causes a native process crash. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-4558-3h8r-v8xp BIT-pillow-2026-112394 CVE-2026-112394 PYSEC-2026-4327Pillow: P;2L and P;4L decoders may read 1 to 3 bytes past the passed buffer size
  • MEDIUMPYSEC-2026-4342 BIT-pillow-2026-96643 CVE-2026-96643 GHSA-g4qv-2jxx-769hPillow is a Python imaging library. From 11.0.0 until 13.0.0, Exif.load() in src/PIL/Image.py repeatedly slices the remaining EXIF data while it begins with the six-byte Exif header. src/PIL/PngImagePlugin.py accepts an uncapped PNG eXIf chunk, so a file filled with repeated headers causes a new shrinking copy on every iteration and quadratic CPU work. The condition is reachable through Image.getexif(), Image._getexif(), and ImageOps.exif_transpose(), including common photo-upload rotation workflows. This issue is fixed in version 13.0.0.
  • MEDIUMPYSEC-2026-4336 BIT-pillow-2026-114501 CVE-2026-114501 GHSA-654x-cwwv-5j9cPillow is a Python imaging library. From 11.2.1 until 13.0.0, Arrow export assumes that an image's rows are tightly contiguous and exports from im->blocks[0].ptr even when PILLOW_ALIGNMENT makes aligned_linesize include row padding or an aligned offset before the first row. The resulting Arrow buffer can include uninitialized padding, bytes preceding the first row, or stale heap contents from previously freed images. Applications that configure alignment and export images to Arrow can therefore disclose one user's pixels or other process memory to another user. This issue is fixed in version 13.0.0.
  • MEDIUMPYSEC-2026-4338 BIT-pillow-2026-96637 CVE-2026-96637 GHSA-g842-9rc4-69pwPillow is a Python imaging library. Prior to 13.0.0, SpiderImageFile.seek() in src/PIL/SpiderImagePlugin.py reparses a later SPIDER stack frame and replaces self._size without rerunning Image._decompression_bomb_check(). A tiny file can use a safe first frame to pass Image.open() and then declare very large dimensions in a later mode F frame. Loading that frame allocates approximately four bytes per attacker-declared pixel and can consume multiple gigabytes of memory. This issue is fixed in version 13.0.0.
  • MEDIUMPYSEC-2026-4329 BIT-pillow-2026-112397 CVE-2026-112397 GHSA-58r4-6rv3-gfh8Pillow is a Python imaging library. Prior to 13.0.0, Pillow's ImageMorph.MorphOp.apply() can access memory before a row buffer for a zero-width image. PPM and PGM input can create an image with width zero, and the native morphology routine indexes outrow[width - 1] without rejecting that geometry. An attacker can supply such an image to an application that applies a morphology operation. This can crash the process. This issue is fixed in version 13.0.0.
  • MEDIUMPYSEC-2026-4328 BIT-pillow-2026-112396 CVE-2026-112396 GHSA-4rr5-89j8-mwwmPillow is a Python imaging library. From 11.3.0 until 13.0.0, Pillow has a heap use-after-free when libtiff rejects a tag while encoding TIFF data to an in-memory buffer. When an application saves attacker-influenced TIFF tags to BytesIO, libtiff can reject a tag during encoding in ImagingLibTiffEncode; the error path then frees the output buffer without closing or clearing the TIFF handle, and later cleanup flushes through the write callback into freed memory, which can crash the process and may enable code execution. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-wqgw-9xfh-qf2g CVE-2026-128066Pillow: Memory DoS in TIFF and EXIF IFD parsing via overlapping tag data
  • MEDIUMGHSA-4rr5-89j8-mwwm BIT-pillow-2026-112396 CVE-2026-112396 PYSEC-2026-4328Pillow: Heap use-after-free when encoding TIFF to an in-memory buffer
  • MEDIUMGHSA-p8hx-v2p6-rp84 BIT-pillow-2026-96636 CVE-2026-96636 PYSEC-2026-4337Pillow: Decompression-bomb protection bypass via multi-frame seek() in MPO and DCX (MpoImageFile.seek / DcxImageFile.seek)
  • MEDIUMPYSEC-2026-4363 BIT-pillow-2026-112902 CVE-2026-112902 GHSA-xvh5-g6gv-559vPillow is a Python imaging library. In versions through 12.3.0, the libtiff TIFF encoder can pass arguments to  TIFFSetField()  that do not match libtiff’s definition of the corresponding tag. When an application saves attacker-controlled image metadata through this encoder, crafted tag values can cause invalid memory reads, copying process memory into the encoded output or crashing the process. Applications that return the encoded output to an attacker can disclose that memory. The issue is reachable when re-saving compressed TIFF images and through certain conversions that preserve EXIF metadata into compressed TIFF output. This vulnerability is fixed in version 13.0.0.
  • MEDIUMGHSA-654x-cwwv-5j9c BIT-pillow-2026-114501 CVE-2026-114501 PYSEC-2026-4336Pillow: Arrow export leaks stale heap memory when PILLOW_ALIGNMENT > 1
  • MEDIUMPYSEC-2026-4337 BIT-pillow-2026-96636 CVE-2026-96636 GHSA-p8hx-v2p6-rp84Pillow is a Python imaging library. Prior to 13.0.0, MpoImageFile.seek() and DcxImageFile.seek() reparse later MPO or DCX frames and replace self._size without rerunning Image._decompression_bomb_check(). A crafted multi-frame image can use a tiny first frame to pass Image.open() and then declare an over-limit later frame. Normal frame iteration through seek(), load(), or ImageSequence.Iterator can decode that frame and commit hundreds of megabytes or more, causing memory-exhaustion denial of service. This issue is fixed in version 13.0.0.
  • MEDIUMPYSEC-2026-4327 BIT-pillow-2026-112394 CVE-2026-112394 GHSA-4558-3h8r-v8xpPillow is a Python imaging library. Prior to 13.0.0, Pillow's P;2L and P;4L raw decoders can read past the end of an input buffer. ImagingRawDecode calculates a packed-pixel row size, while the unpackers read separately padded bit planes. A caller can supply a buffer and image dimensions whose accepted size is smaller than the unpacker's actual footprint. This can disclose up to three adjacent heap bytes in output pixels or crash the process. This issue is fixed in version 13.0.0.
pyjwtPyPI 2.13.0 CRITICAL 29 advisories 2.14.02.15.0
  • CRITICALGHSA-ffc3-869f-jxw9 CVE-2026-102268 PYSEC-2026-4145PyJWT: Asymmetric-PEM detection bypass: whitespace/line-ending-mutated public keys skip the HS/asymmetric confusion guard
  • HIGHGHSA-9v7f-9g4p-ffgj CVE-2026-102267 PYSEC-2026-4144PyJWT: PyJWKClient follows redirects when fetching JWKS
  • HIGHGHSA-p4g4-x82p-q773 CVE-2026-102271 PYSEC-2026-4149PyJWT: Public keys in DER form are accepted as HMAC secrets, bypassing the CVE-2022-29217 guard
  • HIGHGHSA-pxh4-856f-4h89PyJWT: HS256/384/512 verify accepts empty HMAC key via oct JWK (PyJWK/PyJWKClient) enabling token forgery
  • HIGHGHSA-w2cx-738m-mc7w CVE-2026-102273 PYSEC-2026-4151PyJWT accepts public JWK containers as HMAC secrets
  • HIGHGHSA-r6x4-923q-g947 CVE-2026-102272 PYSEC-2026-4150PyJWT BOM Bypass
  • HIGHGHSA-9j54-fg26-wv3r CVE-2026-102266 PYSEC-2026-4143PyJWT: PyJWK accepts empty HMAC keys, bypassing PyJWT's empty-key validation
  • MEDIUMPYSEC-2026-4144 CVE-2026-102267 GHSA-9v7f-9g4p-ffgjPyJWT: PyJWKClient follows redirects when fetching JWKS
  • MEDIUMPYSEC-2026-4183 CVE-2026-102275 GHSA-x33g-cr3x-6449PyJWT is a Python implementation of JSON Web Token standards. From 2.1.0 until 2.15.0, PyJWT OKPAlgorithm.from_jwk in jwt/algorithms.py is affected because private-JWK import path does not compare the public key derived from d with x. This occurs when an OKP private JWK supplies non-corresponding x and d components. As a result, identity derived from x can differ from operations performed with d. Consequently, if an integration also accepts private key parameters from a proof header without rejecting them, an attacker may use a stolen sender-constrained token without the legitimate private key. This issue is fixed in version 2.15.0.
  • MEDIUMPYSEC-2026-4141 CVE-2026-101918 GHSA-42vr-xj54-vc7vPyJWT: Unauthenticated RecursionError DoS in pre-verification payload parse (PyJWKClient.get_signing_key_from_jwt / verify_signature=False)
  • MEDIUMGHSA-2gx3-rcp4-g85q CVE-2026-101917 PYSEC-2026-4140PyJWT: PyJWKClient still amplifies unauthenticated JWKS fetches on unknown kid values (incomplete fix of CVE-2026-48524)
  • MEDIUMGHSA-jwrc-g2q2-pq5p CVE-2026-102270 PYSEC-2026-4148PyJWT: ReDoS vulnerability when calling the `is_pem_format` function.
  • MEDIUMPYSEC-2026-4152 CVE-2026-102274 GHSA-w6j9-cwv2-h6wqPyJWT: Malformed RSA JWK aborts parsing of an entire JWK Set
  • MEDIUMPYSEC-2026-4143 CVE-2026-102266 GHSA-9j54-fg26-wv3rPyJWT: PyJWK accepts empty HMAC keys, bypassing PyJWT's empty-key validation
  • MEDIUMPYSEC-2026-4149 CVE-2026-102271 GHSA-p4g4-x82p-q773PyJWT: Public keys in DER form are accepted as HMAC secrets, bypassing the CVE-2022-29217 guard
  • MEDIUMGHSA-gvp8-978c-rx2q CVE-2026-103001 PYSEC-2026-4146PyJWT.decode() reintroduces options-dict mutation, enabling silent claim-verification bypass on dict reuse
  • MEDIUMGHSA-w6j9-cwv2-h6wq CVE-2026-102274 PYSEC-2026-4152PyJWT: Malformed RSA JWK aborts parsing of an entire JWK Set
  • MEDIUMGHSA-hxm8-2xgr-2p9m CVE-2026-102269 PYSEC-2026-4147PyJWT: Non-canonical signature segments enable raw-token revocation bypass
  • MEDIUMPYSEC-2026-4148 CVE-2026-102270 GHSA-jwrc-g2q2-pq5pPyJWT: ReDoS vulnerability when calling the `is_pem_format` function.
  • MEDIUMGHSA-8wjv-2p76-3863 CVE-2026-102265 PYSEC-2026-4142PyJWT: Uncaught RecursionError in jwt.decode() on deeply nested token header
  • MEDIUMPYSEC-2026-4140 CVE-2026-101917 GHSA-2gx3-rcp4-g85qPyJWT: PyJWKClient still amplifies unauthenticated JWKS fetches on unknown kid values (incomplete fix of CVE-2026-48524)
  • MEDIUMPYSEC-2026-4151 CVE-2026-102273 GHSA-w2cx-738m-mc7wPyJWT accepts public JWK containers as HMAC secrets
  • MEDIUMPYSEC-2026-4146 CVE-2026-103001 GHSA-gvp8-978c-rx2qPyJWT.decode() reintroduces options-dict mutation, enabling silent claim-verification bypass on dict reuse
  • MEDIUMGHSA-x33g-cr3x-6449 CVE-2026-102275 PYSEC-2026-4183PyJWT accepts inconsistent OKP x/d JWKs, causing public/private key identity confusion
  • MEDIUMPYSEC-2026-4150 CVE-2026-102272 GHSA-r6x4-923q-g947PyJWT BOM Bypass
  • MEDIUMPYSEC-2026-4142 CVE-2026-102265 GHSA-8wjv-2p76-3863PyJWT: Uncaught RecursionError in jwt.decode() on deeply nested token header
  • MEDIUMPYSEC-2026-4147 CVE-2026-102269 GHSA-hxm8-2xgr-2p9mPyJWT: Non-canonical signature segments enable raw-token revocation bypass
  • MEDIUMPYSEC-2026-4145 CVE-2026-102268 GHSA-ffc3-869f-jxw9PyJWT: Asymmetric-PEM detection bypass: whitespace/line-ending-mutated public keys skip the HS/asymmetric confusion guard
  • MEDIUMGHSA-42vr-xj54-vc7v CVE-2026-101918 PYSEC-2026-4141PyJWT: Unauthenticated RecursionError DoS in pre-verification payload parse (PyJWKClient.get_signing_key_from_jwt / verify_signature=False)
opentelemetry-apiPyPI 1.44.0 MEDIUM 2 advisories 1.45.11.45.2
  • MEDIUMGHSA-xcq7-p3pf-p88h CVE-2026-114603OpenTelemetry Python: Unbounded tracestate parsing in opentelemetry-api
  • MEDIUMGHSA-mf5v-w3w3-f6cg CVE-2026-126360OpenTelemetry Python API: Denial of service through quadratic-time traceparent parsing

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
Transportstdio
Sign-innot checked needs the live server
Servers in the code7 (RhinoMCP bounded builder, RhinoMCP capability builder, RhinoMCP layer assembly, RhinoMCP experiment, Saved model image review, RhinoMCP visual benchmark, RhinoMCP workflow pilot)

The project's own security

Security policyyes SECURITY.md
Private reportingmentioned the policy names a private channel
Past advisoriesnone in the GitHub Advisory Database
Last push2026-11-07
Signed releasesnot checked yet

Install it

For the server's own npm package rhinomcp. Pin a version ([email protected]) so an update cannot change the tools without you noticing.

Claude Desktop claude_desktop_config.json
{
  "mcpServers": {
    "rhinomcp": {
      "command": "npx",
      "args": [
        "-y",
        "rhinomcp"
      ]
    }
  }
}
Cursor ~/.cursor/mcp.json
{
  "mcpServers": {
    "rhinomcp": {
      "command": "npx",
      "args": [
        "-y",
        "rhinomcp"
      ]
    }
  }
}
VS Code .vscode/mcp.json
{
  "servers": {
    "rhinomcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "rhinomcp"
      ]
    }
  }
}
Claude Code terminal
claude mcp add rhinomcp -- npx -y rhinomcp

Where it is published

npm packagerhinomcp
Downloads28 a month on npm
Listed in3 catalogs (awesome_tensorblock, github_search, npm)
LicenseMIT
Created2025-03-22

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.