Skip to content

v1.39.0

Latest

Choose a tag to compare

@gsdali gsdali released this 02 Dec 13:35
d2c5420

v1.39.0 fixes a way to end the server with one argument, adds the topology tools' missing counts and positions, and makes four tools' answers easier to read. It moves no pin: it is taken with from: "1.39.0" and still requires OCCTSwift 4.0.0 or later.

.package(url: "https://github.com/SecondMouseAU/OCCTMCP.git", from: "1.39.0")

Requirements

Unchanged from v1.38.1: OCCTSwift from: "4.0.0", OCCTSwiftMesh from: "1.7.6", OCCTSwiftScripts from: "1.7.1", OCCTSwiftInteraction from: "3.0.0", OCCTSwiftIO from: "2.0.0", OCCTSwiftViewport from: "1.2.0" and swift-sdk from: "0.11.0".

Fixed

  • A negative limit ended the server (#313, #325). query_topology with limit: -1 took the whole occtmcp-server process down with a trap (Can't take a prefix of negative length from a collection); this was checked against the v1.38.1 binary. A filter that is not an object and a limit that is not a whole number of at least 1 are now errors that name the argument, in query_topology and select_topology, where both used to be read as absent.
  • query_topology takes the filter keys select_topology takes (#312, #325). minLength, maxLength, normalDirection and normalTolerance were read by one tool and ignored by the other. Both now read one filter, so they cannot diverge again. An unknown key and a known key of the wrong type are errors that name the key.
  • transform_body says why a scale fails (#314, #323). A scale of 0 or a non-finite number is refused by name before anything is read or written. A scale that leaves a shape the kernel reports as invalid says so and writes nothing, and a kernel failure now says which value it was given. A negative scale is not refused: the kernel returns a valid point reflection, and the page says so.

New

  • matched (#315, #325). query_topology and select_topology answer how many entities passed the filter, counted before limit, beside total (unchanged: the body's count of that kind).
  • Vertex position (#316, #325). A query_topology vertex row carries [x, y, z].
  • A smaller, filterable tool catalog (#317, #324). get_api_reference with category: "mcp_tools" answers compact JSON, 101,855 bytes including the sentences this release adds where it was 130,101, and takes tool (a name or an array of names) or family (one of the 13 families, named as the pages of docs/reference/ are) to answer only those tools. query_topology alone is 5,212 bytes. An unknown name is an error that lists the valid ones.
  • Units (#318, #321). query_topology, select_topology, get_selection and select_by_feature say that lengths and areas are in model units, from the same sentence the other measuring tools use. The Node query_topology description carries it too.

Changed behaviour

These are answers or signatures a caller could have relied on, so they are listed here and not only in the log:

  • limit: 0 on query_topology or select_topology is an error. It answered no rows with truncated: true.
  • A face with no usable normal, or a zero one, no longer matches a normalDirection in select_topology. It used to be kept.
  • QueryReport.init takes a required matched:. Nothing else in this repository builds one; an outside caller that does will fail to compile.

Known limits

  • A filter key that does not apply to the entity being queried (minLength on a face query, any key on a vertex) is accepted and ignored, as select_topology always did. Both descriptions say which keys apply to which entity (#326).
  • A wrong-typed argument is still read as absent in query_topology's neighborLimit, maxUnlimitedFaces and relation flags, and in about twenty other tools (#322).
  • The Node server wraps occtkit and is otherwise unchanged. Its transform_body has the same scale fault, answered by occtkit; its mcp_tools answer is still indented JSON.
  • The rest are unchanged from v1.38.1: the shader bundle check is on only in occtmcp-server, and the real fix is SecondMouseAU/OCCTSwiftViewport#276.

Verification

CI on the release commit resolves the siblings from their published URLs (OCCTMCP_FORCE_REMOTE_DEPS=1, with Package.resolved checked current): swift build succeeds and swift test passes all 813 tests in 92 suites. The tests added by these changes each failed against the code they replace before they were kept; the pull requests list the defects injected.