dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
PROJECT README
为 DeepSeek Harness(DSH)接入 Figma Desktop 本地 MCP,让各类 Agent 直接读取设计稿、当前选区、设计变量与资源,并按项目既有规范实现界面。
安装、权限配置、使用示例及常见问题请参阅 完整中文文档。
Global integration between DSH and the local Figma Desktop MCP server, with design-to-code guidance for every agent preset.
Design inspection still uses the local Figma Desktop MCP and needs no token. Since 0.2.0, optional native PNG exports use Figma REST with a Personal Access Token configured in a local settings panel; since 0.3.3 the same path renders 1x–4x PNG and true SVG/PDF vectors, and every credential change is recorded in an append-only audit trail. Screenshots are never upscaled to fake higher-resolution exports.
@deepseek-ai/dsh-mcp-client service to http://127.0.0.1:3845/mcp (auto-reconnect, non-blocking when Figma is closed). The client ships with DSH itself — this plugin only configures it through the bundled cordis.patch.yml and declares no npm dependency on it, so it always runs against the host's own version.mcp__figma__* tools in every agent mode.figma-design-to-code skill that adapts Figma output to the target repository conventions.save, remove, read-invalid, check-fail, check-ok) with token fingerprints only, surfaced as 「最近变更」 in the panel.figma-design-to-code skill keeps a thin body and ships three references (tools.md, targets.md, auth-state.md) through resourceBase.127.0.0.1:3845).You should now see the server running at http://127.0.0.1:3845/mcp. Keep Figma Desktop open while DSH needs to read the design.
Official instructions: https://developers.figma.com/docs/figma-mcp-server/local-server-installation/
Into the Web Profile (or any other profile):
dsh plugin --profile web add dsh-figma-local-mcp
Restart the DSH web process after installing, then open a new conversation.
Send any of the following in a conversation:
figma.com/design/...), FigJam board URL, or Slides URL;The available tools are exposed as mcp__figma__get_design_context, mcp__figma__get_screenshot, mcp__figma__get_metadata, mcp__figma__get_variable_defs, mcp__figma__get_motion_context, and mcp__figma__get_figjam.
Presets that intentionally restrict their tool set (for example a fixed-tool bootstrap phase) expose the Figma tools only after their own restriction is lifted.
After upgrading, restart the DSH Desktop / Web host, then refresh the existing GUI. A page refresh alone cannot reload server-side plugins; no frontend dev watcher is required.
/dsh-figma on the current DSH origin, with a system light/dark fallback. The panel requires local-loopback access and DSH host authentication.file_content:read for export and current_user:read for independent account checks. Paste it only into the panel, not chat. A failed candidate never replaces the working credential. When an existing credential is not known to be invalid/expired, the add-token form stays hidden; 增加令牌 opens it and 取消 closes it without changing the saved credential. Missing or explicitly rejected/expired credentials show the form automatically; transient network, quota and permission errors do not imply expiration.node-id. During Figma implementation tasks it automatically exports needed raster assets at both 2x and 3x into the current task workspace, rather than handing you manual downloads. The panel lets you pick PNG (1x–4x), SVG or PDF for manual exports; vector formats ignore the scale options because they have no fixed pixel size.figma_export_images accepts {url, format:"png"|"svg"|"pdf", scales:[2,3], outputDir:"assets/figma"} — PNG defaults to both scales, up to three distinct values between 1 and 4; SVG/PDF produce one file and skip the megapixel preflight. It saves binaries through the calling session's sandbox in an exclusive export-UUID asset subdirectory, never overwrites, and returns persistent local paths, actual dimensions, byte counts and SHA-256. Missing host capability, read-only sessions and out-of-workspace destinations fail explicitly, without bypassing permissions or degrading to manual download links. Failed/cancelled writes can leave partial files but do not claim complete delivery.
figma_token_status returns health and panel URL (check=true probes immediately). Tokens are configured once in the native sidebar panel, never in chat or tool arguments. Inspect the target through Desktop MCP first. REST requires a file key, so selection alone is insufficient: supply the link rather than guessing. Up to ten same-file nodes can be comma-separated in the tool URL; the panel takes one node.
/v1/me on startup, candidate save, every 6 hours, manual check, and before each export. Never poll the Tier 1 render endpoint. The visible panel polls local status every 60 seconds, not Figma./v1/me requires current_user:read; an export-only PAT can fail this probe without being expired. Scopes do not override file or organization ACLs. PATs cannot auto-renew: replace them manually in the panel.save, remove, read-invalid, check-fail and recovery check-ok appends one line to ~/.dsh/figma-local-mcp/audit.jsonl (directory 0700, file 0600). The file is bounded (rotated to the newest 200 entries) and records only the timestamp, action, actor (panel / tool / background / plugin), the affected token's SHA-256 prefix, the applicable expiry and the resulting state — never the token itself.remove entry means an explicit, confirm-gated deletion from the panel, not a background prune.read-invalid and is never deleted automatically. The panel's error text asks you to read 「最近变更」 before reconfiguring, instead of advising deletion.api.figma.com; API redirects are rejected. Asset requests carry no token or cookies, use a narrow observed-host allowlist (not an official exhaustive Figma contract), reject redirects, validate DNS/public IPv4 addresses, and enforce byte/PNG-header limits. Unknown future hosts fail clearly rather than allowing arbitrary AWS domains.Development checks (no real credentials required):
npm test
npm run check
npm pack --dry-run
For an unpublished local upgrade, run npm pack and install its local tarball through DSH plugin management, rather than reinstalling an older registry release. Mock tests do not establish real-account scopes, quotas, export-host compatibility, or successful production exports without a real PAT and target.
References: PATs, users, renders, scopes, errors, rate limits.
✕ missing peer @deepseek-ai/... lines in the dsh plugin output are expected. DSH profiles set autoInstallPeers: false; host packages such as @deepseek-ai/cordis, @deepseek-ai/dsh-mcp-client, dsh-llm, dsh-tools, etc. are provided by the DSH installation itself at runtime through the profile module fallback, so pnpm's peer check reports them as "missing" even though they resolve fine. This is normal for every DSH plugin, including the officially bundled ones.No session found for sessionId after restarting Figma Desktop: expected — the MCP session is process-local. Restart the DSH web process (or wait for the bridge reconnect) and retry.remove entry means the credential was explicitly removed from the panel (the 移除 button is confirmation-gated); read-invalid means the stored record is malformed. The plugin never prunes credentials, and the upgrade path cannot rewrite ~/.dsh/.credentials.yaml.get_design_context timeouts on first call or on large files: the tool renders code and exports every SVG in-process; if it exceeds the 60 s default toolCallTimeoutMs, raise it in the plugin config (figma-mcp-client.config.toolCallTimeoutMs, for example 120000).MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。