@sentry/junior-figma 0.268.0 → 0.269.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -27
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,40 +1,15 @@
|
|
|
1
1
|
# @sentry/junior-figma
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Install
|
|
3
|
+
Read-only Figma frame, layout, style, and comment lookups for Junior through the Figma REST API.
|
|
6
4
|
|
|
7
5
|
```bash
|
|
8
6
|
pnpm add @sentry/junior @sentry/junior-figma
|
|
9
7
|
```
|
|
10
8
|
|
|
11
|
-
## Configure
|
|
12
|
-
|
|
13
|
-
Add the package name to the plugin set exported from `plugins.ts`:
|
|
14
|
-
|
|
15
9
|
```ts
|
|
16
10
|
import { defineJuniorPlugins } from "@sentry/junior";
|
|
17
11
|
|
|
18
12
|
export const plugins = defineJuniorPlugins(["@sentry/junior-figma"]);
|
|
19
13
|
```
|
|
20
14
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
FIGMA_ACCESS_TOKEN=...
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
Use a REST API [plan access token](https://developers.figma.com/docs/rest-api/plan-access-tokens/). An organization admin creates it at `https://www.figma.com/developers/tokens`. Give it only read scopes: `file_content:read`, `file_metadata:read`, `file_comments:read`, `library_content:read`, and, on Enterprise plans, `file_variables:read`.
|
|
28
|
-
|
|
29
|
-
## Auth model
|
|
30
|
-
|
|
31
|
-
- The plugin uses one deployment-level Figma token. Users do not connect individual Figma accounts.
|
|
32
|
-
- The real token stays on the host. Junior adds `X-Figma-Token: <token>` to sandbox requests to `api.figma.com`.
|
|
33
|
-
- The token scopes are the read-only boundary. The bundled skill also uses only `GET` requests.
|
|
34
|
-
- Everyone who can use Junior can read the files that the token can read. Limit the token to selected files, folders, or teams if this is a concern.
|
|
35
|
-
|
|
36
|
-
## Why REST and not MCP
|
|
37
|
-
|
|
38
|
-
Figma's hosted MCP server accepts only clients in the Figma MCP catalog. Until Junior is approved, the plugin uses the REST API.
|
|
39
|
-
|
|
40
|
-
Full setup guide: https://junior.sentry.dev/extend/figma-plugin/
|
|
15
|
+
Setup and configuration: https://junior.sentry.dev/extend/figma-plugin/
|