BM

bosong/moke_mcp

Developer tools

This page was translated automatically. Technical details may differ from the original. View the original

11 stars 4 forks Quality 88 Trend 32MIT

To provide a MCP tool paired with Figma MCP, to enable the AI Coding Assistant (Trae, Cursor, Claude Code, VS Code Copilot, etc.) to directly read design data (tectonic structure, style, colour, layout, cut-off, etc.) in the design design design file, thereby generating accurate front-end codes in the design code workflow. CLI tools are also available to support project initialization and configuration management。

Overview

** will access the MCP Server of the AI code assistant. Mark Figma MCP for automated workflows designed to code. - Node.js > 18 Python 3 MIT License Contains tree reconstruction relativization → Token to re-heavy mechanical distillation, AI can directly consume. Code Generation (code gen), which is not currently available, recommends a target platform code (e.g. Swift/React) for direct analysis of the draft data from a large model, which is more effective. Automatically search for an interpreter: Windows tries python → py-3 → python3, other platforms try python3 → python. If you want to specify an interpreter (conda / venv / multiple versions), set the environment variable MOKE PYTHON as the interpreter path. 1. Browser opens app.mockplus.cn and login 2. By F12 →app.mockplus.cn 3. **All key=value keys under the domain name, adjoining (requested head cookie string) format: k1 = V1; k2 = V2; ..., i. e. equal for each key; (separate + space) :ds.sid and ds.sid.sig are login documents (most critical), mockuid, mockuid.sig, c WBKFRO etc. The final format must be Header Spring: k1=v1; k2=v2; ... You can also write env fields directly to the MCP configuration of the AI editor (see the lower editor configuration)。

Overview (machine translated)

Mockplus design data will be accessed at the MCP Server of AI Coding Assistant. Mark Figma MCP for automated workflows designed to code.

  • Node.js > 18 Python 3 MIT License

Functional properties

Capacity MCP Tool Description |-|-|-|-| | Metadata | [T0] | Get the page/group hierarchy tree (XML format) | Design context [[T1] Full design data (YAML/JSON), including layout, style, colour, layout @ (base64) @ | Design variable [[T3] | Design Token extract (colour, font, spacing) | | Cut-down [T4] | Download PNG/SVG cut-down to local Design data [[T5] | [T6] Alien [T6] Figma MCP] | | Design specifications [[T7] | Generation of tailwind/CSS design system Markdown document

**Design data history: ** Contains tree reconstruction relativization → Token to re-heavy machine distillation, AI can be consumed directly.

Code Generation (code_gen) is not currently available, and recommends that target platform codes (e.g. Swift/React) be generated directly from the large model.

I don’t…

Pre-request

  • ** Node.js** > = 18
  • Python 3 (data conversion script dependent)

Run-time will automatically search for an interpreter: Windows will try [[T9] [[T10] → python3, other platforms will try [[T12] → [ [T13]]. If you need to specify an interpreter (conda / vvenv / multi-version co-exist), set the environment variable [(T14]] as the interpreter path.

I don’t…

Install

Without installation, run directly:

Method 2: Global installation

Upgrade to the latest version (CLI and server need to be updated):

Method 3: Local development

I don’t…

Configure Cookie

API for a hacker needs a browser cookie authentication valid for about 30 days.

Get Cookie

  1. Browser opens app.mockplus.cn and logs in
  2. Press [T15]→Application** Cookies[T16]

This page was translated automatically. Technical details may differ from the original.

Install

npx -y @moke-mcp/cli@latest serve
New to MCP? Start with the mcpskill.org guide →

Configuration

{ "mcpServers": { "moke-mcp": { "command": "npx", "args": ["-y", "@moke-mcp/cli@latest", "serve"], "env": { "MOKE_COOKIE": "你的cookie" } } } }