Skip to content

react-native-mcp-server v0.1.0-rc.13

Pre-release
Pre-release

Choose a tag to compare

@ohah ohah released this 16 Mar 04:16
· 14 commits to main since this release

What's Changed

๐Ÿ“– Token-efficient tool selection guide

AI ์—์ด์ „ํŠธ๊ฐ€ UI ์ƒํƒœ ํ™•์ธ ์‹œ ์Šคํฌ๋ฆฐ์ƒท ๋Œ€์‹  ํ…์ŠคํŠธ ๊ธฐ๋ฐ˜ ๋„๊ตฌ๋ฅผ ์šฐ์„  ์‚ฌ์šฉํ•˜๋„๋ก MCP server instructions ๋ฐ tool description์— ๊ฐ€์ด๋“œ๋ฅผ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

Server Instructions ์ถ”๊ฐ€

  • ๋„๊ตฌ ์„ ํƒ ์šฐ์„ ์ˆœ์œ„ ํ…Œ์ด๋ธ”: text tools (1st) โ†’ webview_evaluate_script (2nd) โ†’ describe_ui (3rd) โ†’ take_screenshot (4th)
  • ๊ตฌ์ฒด์  ์‚ฌ์šฉ ์˜ˆ์‹œ: ์ฒดํฌ๋ฐ•์Šค ์ƒํƒœ ํ™•์ธ โ†’ webview_evaluate_script, ํ™”๋ฉด ์ „ํ™˜ ํ™•์ธ โ†’ assert_text
  • "์Šคํฌ๋ฆฐ์ƒท 1ํšŒ ์ดฌ์˜ ํ›„ ํ…์ŠคํŠธ ๋„๊ตฌ๋กœ ์ „ํ™˜" ๊ฐ€์ด๋“œ

take_screenshot description ๊ฐ•ํ™”

  • "EXPENSIVE: consumes large image tokens" ๊ฒฝ๊ณ  ์ถ”๊ฐ€
  • ๋Œ€์•ˆ ๋„๊ตฌ(query_selector, assert_text, webview_evaluate_script) ์•ˆ๋‚ด

๐Ÿ’ก Why?

์Šคํฌ๋ฆฐ์ƒท์€ ์ด๋ฏธ์ง€ ํ† ํฐ์„ ๋Œ€๋Ÿ‰ ์†Œ๋ชจํ•˜์—ฌ ์ปจํ…์ŠคํŠธ ์œˆ๋„์šฐ๋ฅผ ๋น ๋ฅด๊ฒŒ ์†Œ์ง„ํ•ฉ๋‹ˆ๋‹ค. ํ…์ŠคํŠธ ๊ธฐ๋ฐ˜ ๋„๊ตฌ๋ฅผ ์šฐ์„  ์‚ฌ์šฉํ•˜๋ฉด ๋™์ผํ•œ ๊ฒ€์ฆ์„ ํ›จ์”ฌ ์ ์€ ํ† ํฐ์œผ๋กœ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Full Changelog: react-native-mcp-server-v0.1.0-rc.12...react-native-mcp-server-v0.1.0-rc.13