Repository navigation
fix(mcp): export_ifc's options say which rvt-ifc switches the server offers, and what each saved-mesh choice draws, curtain-embedding walls included (#1919) - #1926
Merged
Conversation
…offers, and what each saved-mesh choice draws, curtain-embedding walls included (#1919) IfcOptions was described as "the rvt-ifc switches that change the model", but --placeholder, --diagnostic-proxies and --family-extrusions change the model and are not offered. The saved_meshes choices were described without the walls that embed a curtain wall, which the default, doors_and_windows and all choices draw from their saved graphics where Revit raised their base on Revit 2024 to 2027 (RE-340, src/ifc/export_pipeline.rs) and off keeps as their record's body. The descriptions, docs/mcp.md's row for export_ifc and the changelog fragment say so; docs/mcp-tools.json and .md are regenerated from CI's built server by sync-mcp-contract.sh once the contract test names the new text.
Owner
Author
|
Self-approval by rvtReview, under Griffin's 2026-11-10 and 2026-11-12 answers that either maintainer session may approve its own work; rvtDevelop found the defects (#1919) and a second read is welcome. I re-read the diff at
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
export_ifctool's schema called itsoptions"thervt-ifcswitches that change the model" and described its mesh choices without the walls that embed a curtain wall. Both now say what the code does.Motivation
Items 2 and 3 of #1919 (found reading the generated tool contract against the code):
IfcOptionsoffersmode,saved_meshes,revit_property_sets,revit_set_placement,no_base_quantitiesandallow_partial.ExportOptionshas three more switches that change the model,kind(--placeholder,--diagnostic-proxies) andfamily_extrusions, whichIfcOptions::export_optionsnever sets, so a client reading "the switches that change the model" would expect them.MeshesArgdescribeddefaultas every boxed element on Revit 2023 to 2027. The same pass (attach_scoped_with_control) also draws the walls that embed a curtain wall from their saved graphics where Revit raised their base, on Revit 2024 to 2027 (ExportNote::EmbedHostBodies, RE-340), underdefault,doors_and_windowsandall, andoffruns no pass (src/ifc/export_pipeline.rs,SavedMeshChoice, whose documentation already says so).Changes
rvt-mcp/src/args.rs: the doc comments ofIfcOptionsand of the fourMeshesArgvariants, which are the descriptions in the tool contract.docs/mcp.md: theexport_ifcrow says the same.docs/mcp-tools.jsonanddocs/mcp-tools.md: regenerated from CI's built server by.claude/scripts/sync-mcp-contract.sh(the contract test names the new text), in a following commit.changelog.d/fixed/1919-mcp-export-options.md.Testing
Unit tests are banned in this repository; this is a change of documentation strings.
tools/check-local.shpasses (fmt, clippy, rustdoc, build, real-file / CLI / contract checks)tool_contract_is_committedis the check that carries the change). On this Mac, which does not build this repository:rustfmt --edition 2024 --check rvt-mcp/src/args.rs,tools/ci/api-doc-ids.py,tools/release/changelog.py check.IfcOptions::export_options(which switches it sets), andrun_export'sscopematch with theembed_hostspass (src/ifc/export_pipeline.rs).tools/bench.shand attached the before / afterAudit-honesty checklist
docs/mcp.mdand the tool contract say the same as the code.changelog.d/<section>/(seechangelog.d/README.md), not inCHANGELOG.mdchangelog.d/fixed/1919-mcp-export-options.md.probes/examples/and a dated addendum todocs/format-reconnaissance.mdare includedLegal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md)testuser,111111,FY-20XX, etc.) and contain no real-world PIIBreaking changes
None. The schema's structure is unchanged; only
descriptionstrings differ.Screenshots or output samples
optionsbefore: "Thervt-ifcswitches that change the model. The defaults arervt-ifc's." After: "Thervt-ifcswitches this server offers, some of those that change the model:--placeholder,--diagnostic-proxiesand--family-extrusionsare not among them. The defaults arervt-ifc's."Related issues
Closes #1919 once #1920 (item 1, the
rvt-doc --redactfix, merged) and this are onmain.