Skip to main content
Question

get_code method on MCP server does not return expected results for Android (Jetpack Compose)


Yehor Korniienko

I’m sending a get_code request to the Figma MCP server via Cursor AI.
Here is the request body I’m using:

{ "nodeId": "XXXX:XXXX", "clientLanguages": "kotlin", "clientFrameworks": "android,compose", "clientName": "cursor" }

However, the response I receive is in JSX (JavaScript XML) format with Tailwind CSS classes, not Kotlin.
I would expect either Kotlin code (Jetpack Compose) or at least a clean JSON representation of the selected frame.

Question:
How can I retrieve Kotlin code or a raw JSON object for the selected frame?

3 replies

alongmao12
  • New Member
  • 1 reply
  • July 25, 2025

same issue for swiftui


Ihor Rudenko

the same issue


Phaioka-san
  • New Member
  • 1 reply
  • August 8, 2025

the same issue


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings