Skip to content

Download problems with images vs svg with Cursor #33

@MustafaBKLZ

Description

@MustafaBKLZ

Hello,
I'm having trouble getting images & svg inside a design (node) in Figma.

I tried to check this link http://localhost:3334/sse step by step.

event: endpoint
data: /messages?sessionId=51805782-21b5-4a27-a582-14b4451eec9f

event: message
data: {"result":{"content":[{"type":"text","text":"Success, 3 images downloaded: \d%3A\Apps\figma-mcp-test\images\group10000071000pro.png, \d%3A\Apps\figma-mcp-test\images\ellipse157.svg, \d%3A\Apps\figma-mcp-test\images\vector417.svg"}]},"jsonrpc":"2.0","id":3}

This is the message I see on the screen. The images appear to be downloaded, but for some reason the images cannot be downloaded to the project folder.

I can also see the image links in the terminal area. However, when I get the url and check it in the browser, I get the error
{"status":403,"err":"Invalid token"}.

Moreover, I see this error when the connection is open in the terminal. It says "Invalid token" but I just got the token and ran it with the command "npx figma-developer-mcp --figma-api-key= --port=3334".

There seems to be no problem in getting styles, texts, sizes etc. but there seems to be a problem in downloading image and svg files.

I tried this on both a pro figma account and a free account. Both fail to download images and svg's.

I don't know what I'm doing wrong here.

Some console autput
New SSE connection established
Fetching all layers of node 1-4 from file XG7wT05Op3SkXuAtxdtoTK at depth: all layers
Calling https://api.figma.com/v1/files/XG7wT05Op3SkXuAtxdtoTK/nodes?ids=1-4
Successfully fetched file: Untitled
Fetching all layers of full file XG7wT05Op3SkXuAtxdtoTK at depth: all layers
Retrieving Figma file: XG7wT05Op3SkXuAtxdtoTK (depth: default)
Calling https://api.figma.com/v1/files/XG7wT05Op3SkXuAtxdtoTK
Got response
Successfully fetched file: Untitled

I keep getting invalid token error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions