package.json•2.94 kB
{
"name": "@visactor/vchart-mcp-server",
"version": "0.1.4",
"description": "A model context server for vchart",
"bin": {
"vchart-mcp-server": "./build/index.js"
},
"files": [
"build"
],
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/VisActor/vchart-mcp-server"
},
"author": {
"name": "VisActor",
"url": "https://www.visactor.io/"
},
"homepage": "https://www.visactor.io",
"bugs": "https://github.com/VisActor/vchart-mcp-server/issues",
"license": "MIT",
"scripts": {
"build": "tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"",
"prepare": "npm run build && husky install",
"watch": "tsc --watch",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:unit": "jest --testPathPattern=unit",
"test:integration": "jest --testPathPattern=integration",
"test:ci": "jest --ci --coverage --watchAll=false",
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand --no-cache",
"lint": "eslint src/**/*.ts",
"lint:fix": "eslint src/**/*.ts --fix",
"lint:staged": "lint-staged",
"type-check": "tsc --noEmit",
"pre-push": "npm run type-check && npm run lint && npm run test:ci",
"commitlint": "commitlint --edit",
"test-tool": "node -e \"const { generateChartByType } = require('./build/utils/generateChart'); generateChartByType('area', { dataTable: [{x:'A',y:10}], xField:'x', yField:'y', chartOutput:'image' }).then(console.log);\"",
"inspector": "npx @modelcontextprotocol/inspector build/index.js"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.15.0",
"@visactor/generate-vchart": "^2.0.8",
"@visactor/vutils": "^1.0.7",
"axios": "^1.10.0",
"undici": "^7.11.0",
"zod": "^3.25.32",
"zod-to-json-schema": "^3.24.5"
},
"devDependencies": {
"@commitlint/cli": "^19.0.0",
"@commitlint/config-conventional": "^19.0.0",
"@jest/globals": "^30.0.4",
"@modelcontextprotocol/inspector": "^0.15.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.24",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"@eslint/js": "^9.15.0",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^9.15.0",
"globals": "^15.0.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"lint-staged": "^15.0.0",
"prettier": "^3.0.0",
"ts-jest": "^29.1.2",
"typescript": "^5.3.3"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
],
"*.{js,jsx}": [
"eslint --fix",
"prettier --write"
],
"*.{json,md,yml,yaml}": [
"prettier --write"
]
}
}