Skip to content

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
DrunkOnJava merged 2 commits into
mainfrom
fix/1919-mcp-descriptions
Nov 13, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
fix/1919-mcp-descriptions

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

The export_ifc tool's schema called its options "the rvt-ifc switches 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):

  • IfcOptions offers mode, saved_meshes, revit_property_sets, revit_set_placement, no_base_quantities and allow_partial. ExportOptions has three more switches that change the model, kind (--placeholder, --diagnostic-proxies) and family_extrusions, which IfcOptions::export_options never sets, so a client reading "the switches that change the model" would expect them.
  • MeshesArg described default as 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), under default, doors_and_windows and all, and off runs no pass (src/ifc/export_pipeline.rs, SavedMeshChoice, whose documentation already says so).

Changes

  • rvt-mcp/src/args.rs: the doc comments of IfcOptions and of the four MeshesArg variants, which are the descriptions in the tool contract.
  • docs/mcp.md: the export_ifc row says the same.
  • docs/mcp-tools.json and docs/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.sh passes (fmt, clippy, rustdoc, build, real-file / CLI / contract checks)
    • Run by this PR's CI (tool_contract_is_committed is 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.
  • Verified end to end on real Revit files: the command, the files (and their licence), and the measured result against Revit's own export are in the PR body, with the script or probe that reproduces it
    • N/A for Revit files: the change is descriptions only, no behaviour. The claims are read from the code that decides them: IfcOptions::export_options (which switches it sets), and run_export's scope match with the embed_hosts pass (src/ifc/export_pipeline.rs).
  • If this touches the IFC exporter: the witness verdicts replay (see CONTRIBUTING.md) or the changed observations are refreshed in this PR
    • N/A: no exporter code.
  • If this is a performance change: reran tools/bench.sh and attached the before / after
    • N/A: not a performance change.

Audit-honesty checklist

  • README / docs reflect the current state after this PR — no claims of features that are not actually shipped in this PR
    • docs/mcp.md and the tool contract say the same as the code.
  • A user-visible change has its entry as a fragment under changelog.d/<section>/ (see changelog.d/README.md), not in CHANGELOG.md
    • changelog.d/fixed/1919-mcp-export-options.md.
  • If a limitation was resolved, the "Known limitations" / "What works today" section in the relevant docs is updated
    • None listed.
  • If a new limitation was introduced, it is documented in the PR body and in-code
    • None.
  • Commit messages describe WHAT changed and WHY, not "fix things" or "updates"
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • If this is a reverse-engineering finding: a reproducible probe under probes/examples/ and a dated addendum to docs/format-reconnaissance.md are included
    • N/A: not a format finding.

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0 (see CONTRIBUTING.md)
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see CLEANROOM.md)
  • Any new test fixtures use synthetic values (testuser, 111111, FY-20XX, etc.) and contain no real-world PII
    • No fixtures.

Breaking changes

None. The schema's structure is unchanged; only description strings differ.

Screenshots or output samples

options before: "The rvt-ifc switches that change the model. The defaults are rvt-ifc's." After: "The rvt-ifc switches this server offers, some of those that change the model: --placeholder, --diagnostic-proxies and --family-extrusions are not among them. The defaults are rvt-ifc's."

Related issues

Closes #1919 once #1920 (item 1, the rvt-doc --redact fix, merged) and this are on main.

…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.
@DrunkOnJava

Copy link
Copy Markdown
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 483d4a3d once full / CI passed was green:

@DrunkOnJava
DrunkOnJava merged commit 2ecff1d into main Nov 13, 2026
36 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1919-mcp-descriptions branch November 13, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rvt-doc --redact leaves string fields and notes unscrubbed, and two rvt-mcp schema descriptions say more than the server does

1 participant