jishi-mcp-server

v1.2.0
@jiujiang/jishi-mcp-server Checked 3 days ago Published 5 months ago

MCP Server for JiShi Design

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

execute_script

Execute JavaScript code in the JiShi Design plugin context. Use 'jsDesign' global object. The code should return a value (it will be wrapped in a function).

ParameterTypeDescription
code *stringThe JavaScript code to execute.
clientIdstringOptional. Target a specific connected JiShi plugin client by clientId. Omit when only one client is connected. Use list_plugin_clients to discover ids (one per open document).

get_selection

Get the current selection in the editor, including detailed properties and all children recursively.

ParameterTypeDescription
clientIdstringOptional. Target a specific connected JiShi plugin client by clientId. Omit when only one client is connected. Use list_plugin_clients to discover ids (one per open document).
includeChildrenbooleanWhether to include children. Default is true.
maxDepthnumberMax recursion depth. Default is 12.
maxNodesnumberMax nodes to serialize. Default is 2000.

get_node_children

Get all children nodes of a specific node (by name or ID).

ParameterTypeDescription
clientIdstringOptional. Target a specific connected JiShi plugin client by clientId. Omit when only one client is connected. Use list_plugin_clients to discover ids (one per open document).
idstringThe ID of the node.
includeChildrenbooleanWhether to include children. Default is true.
maxDepthnumberMax recursion depth. Default is 12.
maxNodesnumberMax nodes to serialize. Default is 2000.
namestringThe name of the node to search for.

download_icons

Download icon nodes as SVG. Uses selection if nodeIds not provided.

ParameterTypeDescription
clientIdstringOptional. Target a specific connected JiShi plugin client by clientId. Omit when only one client is connected. Use list_plugin_clients to discover ids (one per open document).
contentsOnlybooleanWhether to export only contents. Default is true.
nodeIdsarrayNode IDs to export as SVG. Defaults to current selection.
svgIdAttributebooleanAdd ID attribute for SVG. Default is false.
svgOutlineTextbooleanOutline text for SVG. Default is true.
svgSimplifyStrokebooleanSimplify stroke for SVG. Default is true.
useAbsoluteBoundsbooleanWhether to use absolute bounds. Default is false.

get_page_nodes

Get all top-level nodes (frames/artboards) in the current page. Useful for discovering available nodes before using get_node_children or get_selection.

ParameterTypeDescription
clientIdstringOptional. Target a specific connected JiShi plugin client by clientId. Omit when only one client is connected. Use list_plugin_clients to discover ids (one per open document).

list_plugin_clients

List connected JiShi plugin clients for multiplexing.

save_image

Export a node as an image. If savePath is provided, saves to that path on the server. Otherwise triggers download in the browser.

ParameterTypeDescription
clientIdstringOptional. Target a specific connected JiShi plugin client by clientId. Omit when only one client is connected. Use list_plugin_clients to discover ids (one per open document).
filenamestringCustom filename. Defaults to node name + format extension.
formatstringThe format to export to. Default is PNG.
nodeIdstringThe ID of the node to export. If not provided, exports the currently selected node.
savePathstringFull file path to save the image (e.g., '/Users/name/Desktop/image.png'). If provided, saves to this path instead of browser download.
scalenumberScale factor (e.g., 2 for 2x). Default is 1. Only for PNG/JPG.