MCP Server Not Using Code Connect Mappings for Angular Components

オープン
#340 コメント 7 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
angular, typescript

調査の方向性

Start by tracing the MCP server's get-design-context entry point and how it retrieves Code Connect mappings for selected components; the issue does not name specific files or tests. Compare that path with the mapping visible in Figma Dev Mode, using the Angular mapping for node 3:2230 as the reproduction. Done means the response uses the configured custom-select mapping for both individual and frame selections.

索引モデルが issue の本文から書いたものです。

説明

API question

Issue Summary:
MCP server returns generic React/Tailwind code instead of configured Angular Code Connect mappings when using get-design-context.

Steps to Reproduce:

  • Set up Code Connect CLI mapping for Angular component using @figma/code-connect/html
  • Successfully publish mapping with figma connect publish (no errors)
  • Verify connection shows in Figma Dev Mode with "connected" label
  • Select connected component in Dev Mode
  • Call get-design-context from MCP server

Expected Result:
MCP server should return Angular component code (e.g., ) as defined in Code Connect mapping.

Actual Result:
MCP server returns generic React/Tailwind HTML instead of the mapped Angular component code.

Environment:

  • Code Connect CLI: v1.3.9
  • Figma: v125.9.10
  • Framework: Angular
  • Code Connect mapping language: HTML
  • OS: macOS

Additional Context:

Code Connect mapping works correctly in Figma UI (shows connected Angular code)
Issue occurs for both individual component selection and frame-level selections
Mapping successfully published and visible in Dev Mode
Node mapping confirmed: 3:2230 → custom-select from @components/custom-select

主要言語
TypeScript
スター
1.6k
フォーク
126
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

figma/code-connect のほかの issue

figma/code-connect の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。