package.json•2.39 kB
{
"name": "grafana-mcp-analyzer",
"version": "2.1.0",
"description": "让AI助手直接分析你的Grafana监控数据 - A Model Context Protocol server for Grafana data analysis",
"main": "dist/main.js",
"types": "dist/types/index.d.ts",
"type": "module",
"bin": {
"grafana-mcp-analyzer": "dist/main.js"
},
"files": [
"dist/**/*.js",
"dist/**/*.d.ts",
"config/",
"README.md",
"LICENSE"
],
"keywords": [
"grafana",
"mcp",
"model-context-protocol",
"monitoring",
"ai",
"claude",
"chatgpt",
"cursor",
"prometheus",
"elasticsearch",
"mysql",
"influxdb",
"query",
"analyzer",
"typescript",
"devops",
"sre",
"observability",
"dashboard",
"metrics",
"logs"
],
"author": {
"name": "Sailing",
"url": "https://github.com/SailingCoder"
},
"license": "MIT",
"scripts": {
"dev": "tsx watch src/main.ts",
"start": "node dist/main.js",
"build": "tsc",
"build:prod": "npm run build && node build/optimize.js",
"build:slim": "tsc --sourceMap false && node build/optimize.js",
"test": "node tests/test-minimal-version.js",
"test:cleanup": "node tests/test-data-cleanup.js",
"test:resource-links": "node --experimental-modules tests/test-resource-links.js",
"clean": "rm -rf dist",
"type-check": "tsc --noEmit --skipLibCheck",
"prepublishOnly": "npm run clean && npm run build:slim && npm test",
"clean-data": "node --experimental-modules -e \"import('./dist/services/data-store.js').then(module => module.cleanupExpiredData(true).then(count => console.log('清理完成,共删除', count, '个文件')));\""
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.13.3",
"axios": "^1.6.5",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/node": "^22.15.21",
"esbuild": "^0.21.0",
"rimraf": "^5.0.10",
"ts-node": "^10.9.2",
"typescript": "^5.8.3"
},
"engines": {
"node": ">=18.0.0",
"npm": ">=8.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/SailingCoder/grafana-mcp-analyzer.git"
},
"bugs": {
"url": "https://github.com/SailingCoder/grafana-mcp-analyzer/issues"
},
"homepage": "https://github.com/SailingCoder/grafana-mcp-analyzer#readme",
"publishConfig": {
"registry": "https://registry.npmjs.org"
}
}