Add OpenAI Responses and Codex MCP integration for Revit - #5
Draft
debug23win wants to merge 7 commits into
Draft
debug23win wants to merge 7 commits into
debug23win wants to merge 7 commits into
Conversation
… 14 tools Mechanical, provably-equivalent pass: every raw 304.8 literal (local FeetToMm / MmToFeet consts and inline * / 304.8 conversions in rebar/family/location tools) now references Units.MmPerFoot. No behaviour change; the magic number lives in one place. Both Revit builds clean, 30 tests pass. (MeasureDistance's separate 3.28084 approximation and the model-facing doc-strings left untouched to avoid changing any numeric output.) Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01RCGB6xWx3ZtmWZRQEJtN6B
Rework the initialize instructions into a structured senior-BIM-engineer prompt: read-before-act workflow (gather context, never invent IDs/types/levels, plan non-trivial work, prove on one element then scale), units, tool-choice (prefer dedicated tools, filter_elements for queries, run_batch, code as the escape hatch), the field-learned efficiency/Regenerate/ElementId rules, and safety + error-handling + concise-answer discipline. Uses OUR real tool names (the pasted draft referenced revit-mcp's tools) and leans on the tool index we now inject. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01RCGB6xWx3ZtmWZRQEJtN6B
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.
Official OpenAI requests now use Responses API, enabling GPT models that require Responses for function calling. Existing Claude and other compatible provider paths remain available. Adds encrypted reasoning replay, incomplete-stream rejection, and transport tests.
Adds a Codex stdio bridge that reads the existing local MCP token without storing it in Codex arguments/configuration, corrects stateless MCP HTTP handling, and adds an isolated Revit level creation/rollback diagnostic. CI uploads a Revit 2027 package after build and tests.
Validation: