package.json•1.99 kB
{
"name": "@yhy2001/figma-mcp-server",
"version": "1.0.1",
"description": "本地MCP服务器,用于Figma设计与AI编码工具集成",
"type": "module",
"main": "dist/index.js",
"bin": {
"figma-mcp": "dist/index.js"
},
"files": [
"dist",
"README.md"
],
"scripts": {
"dev": "cross-env NODE_ENV=development tsup --watch",
"build": "tsup",
"test:figma": "tsx test-figma-data.ts",
"prepublishOnly": "npm run build",
"start": "node dist/index.js",
"inspect": "pnpx @modelcontextprotocol/inspector",
"mcp-test": "pnpm start -- --stdio",
"type-check": "tsc --noEmit",
"start:cli": "cross-env NODE_ENV=cli node dist/index.js",
"start:http": "node dist/index.js",
"dev:cli": "cross-env NODE_ENV=development tsup --watch -- --stdio",
"lint": "eslint . --ext .ts",
"format": "prettier --write \"src/**/*.ts\"",
"pub:release": "pnpm build && npm publish --access public",
"publish:local": "pnpm build && npm pack"
},
"engines": {
"node": ">=18.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/1yhy/figma-mcp-server.git"
},
"keywords": [
"figma",
"mcp",
"typescript",
"ai",
"design"
],
"author": "",
"license": "MIT",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.6.1",
"@types/yargs": "^17.0.33",
"cross-env": "^7.0.3",
"dotenv": "^16.4.7",
"express": "^4.21.2",
"remeda": "^2.20.1",
"yargs": "^17.7.2",
"zod": "^3.24.2"
},
"devDependencies": {
"@figma/rest-api-spec": "^0.24.0",
"@types/express": "^5.0.0",
"@types/jest": "^29.5.11",
"@types/node": "^20.17.0",
"@typescript-eslint/eslint-plugin": "^8.24.0",
"@typescript-eslint/parser": "^8.24.0",
"eslint": "^9.20.1",
"eslint-config-prettier": "^10.0.1",
"jest": "^29.7.0",
"prettier": "^3.5.0",
"ts-jest": "^29.2.5",
"tsup": "^8.4.0",
"tsx": "^4.19.2",
"typescript": "^5.7.3"
}
}