mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-17 05:26:47 +03:00
fix(plugin): use public Figma endpoint and OAuth defaults (#55252)
This commit is contained in:
committed by
GitHub
Unverified
parent
f576da508d
commit
f1632d052d
@@ -31,7 +31,7 @@ The plugin is not activated merely by being present in the repository. Installin
|
||||
2. Confirm that the server is connected.
|
||||
3. Ask the agent to call Figma's `whoami` tool.
|
||||
|
||||
The connection uses the approved app-specific endpoint `https://mcp.figma.com/mcp/8CKW0Mgge6TtIHM5ko0YxQ`. The app ID belongs in that URL, not in `oauth.client_id`; setting a configured client ID would skip DCR.
|
||||
The connection uses Figma's public endpoint with dynamic client registration (DCR). OAuth discovery supplies the scope, and OpenCode chooses an available loopback callback port; no client credentials or explicit OAuth settings are needed.
|
||||
|
||||
Existing `mcp.servers.figma` configuration takes precedence, including disabled servers and custom endpoints.
|
||||
|
||||
|
||||
@@ -11,8 +11,7 @@ export default Plugin.define({
|
||||
if (editor.get("figma")) return
|
||||
editor.set("figma", {
|
||||
type: "remote",
|
||||
url: "https://mcp.figma.com/mcp/8CKW0Mgge6TtIHM5ko0YxQ",
|
||||
oauth: { scope: "mcp:connect" },
|
||||
url: "https://mcp.figma.com/mcp",
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user