Conversation
- REACT_NATIVE_MCP_ENABLED로 빌드 시 활성화, 미설정 시 transformer·Babel 미적용(번들에 MCP 코드 미포함). Metro 캐시 키에 env 반영. - 앱 진입점 __REACT_NATIVE_MCP__?.enable() 제거, 문서·트러블슈팅 정리. - server·client·test 빌드를 tsdown으로 통일, bunup 제거. server는 runtime·dist·babel 플러그인을 tsdown 배열 설정으로 일괄 빌드.
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.
MCP 환경변수 활성화 및 tsdown 빌드 통일
제목(목적)
앱 진입점에서
enable()호출 없이 빌드 시 환경변수로 MCP를 켜고 끌 수 있게 하고, server·client·test 패키지 빌드를 tsdown으로 통일하여 bunup을 제거한다.작업 내용
true/1이면 transformer가 진입점에global.__REACT_NATIVE_MCP_ENABLED__와 runtime require를 주입하고 AppRegistry를 치환한다. 미설정이면 transformer와 Babel 프리셋이 MCP 변환을 하지 않아 번들에 MCP 코드가 포함되지 않는다. Metro transformer 캐시 키에 env를 넣어 env 변경 시 캐시가 갱신되도록 했다.__REACT_NATIVE_MCP__?.enable()호출을 제거하고, 활성화는 환경변수만 안내하도록 README·mcp-usage·트러블슈팅·DESIGN 문서를 수정했다.bunx tsdown을 사용한다. server는 출력 확장자를 package.json과 맞추기 위해fixedExtension: false를 사용했다.transformWithMcpEnabled헬퍼와 기대값을 수정했고, require 문자열 검사는 따옴표 차이를 고려해 정규식으로 하도록 바꿨다.