Repository navigation
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
limitended the server (#313, #325).query_topologywithlimit: -1took the wholeocctmcp-serverprocess down with a trap (Can't take a prefix of negative length from a collection); this was checked against the v1.38.1 binary. Afilterthat is not an object and alimitthat is not a whole number of at least 1 are now errors that name the argument, inquery_topologyandselect_topology, where both used to be read as absent. query_topologytakes the filter keysselect_topologytakes (#312, #325).minLength,maxLength,normalDirectionandnormalTolerancewere 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_bodysays why a scale fails (#314, #323). Ascaleof 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_topologyandselect_topologyanswer how many entities passed the filter, counted beforelimit, besidetotal(unchanged: the body's count of that kind).- Vertex
position(#316, #325). Aquery_topologyvertex row carries[x, y, z]. - A smaller, filterable tool catalog (#317, #324).
get_api_referencewithcategory: "mcp_tools"answers compact JSON, 101,855 bytes including the sentences this release adds where it was 130,101, and takestool(a name or an array of names) orfamily(one of the 13 families, named as the pages ofdocs/reference/are) to answer only those tools.query_topologyalone is 5,212 bytes. An unknown name is an error that lists the valid ones. - Units (#318, #321).
query_topology,select_topology,get_selectionandselect_by_featuresay that lengths and areas are in model units, from the same sentence the other measuring tools use. The Nodequery_topologydescription 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: 0onquery_topologyorselect_topologyis an error. It answered no rows withtruncated: true.- A face with no usable normal, or a zero one, no longer matches a
normalDirectioninselect_topology. It used to be kept. QueryReport.inittakes a requiredmatched:. 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 (
minLengthon a face query, any key on a vertex) is accepted and ignored, asselect_topologyalways did. Both descriptions say which keys apply to which entity (#326). - A wrong-typed argument is still read as absent in
query_topology'sneighborLimit,maxUnlimitedFacesand relation flags, and in about twenty other tools (#322). - The Node server wraps
occtkitand is otherwise unchanged. Itstransform_bodyhas the same scale fault, answered byocctkit; itsmcp_toolsanswer 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.