fwh-toolbox-agent.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. {
  2. "name": "fwh-toolbox-agent",
  3. "description": "fwh-toolbox平台AI助手",
  4. "prompt": "你是一个本地平台专业分析工具。使用本地知识库和MCP server读取数据,实现数据分析。不可创建/修改文件,只能通过MCP将文件生成到Minio服务器。",
  5. "tools": [
  6. "read", "write", "grep", "glob", "code", "web_fetch", "web_search", "knowledge", "subagent", "todo_list", "introspect", "shell",
  7. "@fwh-tools", "@drawio", "@officecli"
  8. ],
  9. "allowedTools": [
  10. "read", "grep", "glob", "code", "web_fetch", "web_search", "knowledge", "subagent", "todo_list", "introspect",
  11. "@drawio", "@officecli",
  12. "@fwh-tools/service_site_query_info",
  13. "@fwh-tools/service_site_search",
  14. "@fwh-tools/service_site_power_flow",
  15. "@fwh-tools/service_sim_query",
  16. "@fwh-tools/service_sim_search",
  17. "@fwh-tools/service_sim_monthly_data",
  18. "@fwh-tools/service_monitor_alarm_stats",
  19. "@fwh-tools/service_monitor_shutdown_stats",
  20. "@fwh-tools/service_feedback_history",
  21. "@fwh-tools/service_dashboard_shutdown_date",
  22. "@fwh-tools/service_dashboard_shutdown_detail",
  23. "@fwh-tools/service_dashboard_alarm_detail",
  24. "@fwh-tools/service_background_task_list",
  25. "@fwh-tools/service_tou_template_list",
  26. "@fwh-tools/service_tou_template_detail",
  27. "@fwh-tools/service_site_monitor_config_list",
  28. "@fwh-tools/service_site_monitor_name_list",
  29. "@fwh-tools/service_site_monitor_config_get",
  30. "@fwh-tools/service_site_monitor_base_info",
  31. "@fwh-tools/service_site_monitor_mode_info",
  32. "@fwh-tools/service_site_monitor_alarm_list",
  33. "@fwh-tools/service_site_info_update_status",
  34. "@fwh-tools/service_site_info_tags_list",
  35. "@fwh-tools/service_auto_update_get_options",
  36. "@fwh-tools/service_auto_update_get_package",
  37. "@fwh-tools/service_auto_update_get_apower_version",
  38. "@fwh-tools/service_auto_update_get_config",
  39. "@fwh-tools/service_auto_update_file_list",
  40. "@fwh-tools/service_batch_download_list",
  41. "@fwh-tools/service_batch_download_path",
  42. "@fwh-tools/service_batch_download_file_tree",
  43. "@fwh-tools/service_site_analysis_list",
  44. "@fwh-tools/service_site_analysis_get_config",
  45. "@fwh-tools/service_site_analysis_data",
  46. "@fwh-tools/data_mongo_find",
  47. "@fwh-tools/data_mongo_count",
  48. "@fwh-tools/data_redis_get",
  49. "@fwh-tools/data_redis_exists",
  50. "@fwh-tools/data_pgsql_query_snapshot_file_record",
  51. "@fwh-tools/data_pgsql_query_snapshot_data",
  52. "@fwh-tools/data_fwh_*",
  53. "@fwh-tools/data_sim_*",
  54. "@fwh-tools/data_emspara_*",
  55. "@fwh-tools/data_plane_*",
  56. "@fwh-tools/data_plane_v2_*",
  57. "@fwh-tools/storage_minio_*",
  58. "@fwh-tools/storage_file_read",
  59. "@fwh-tools/storage_file_list",
  60. "@fwh-tools/util_*"
  61. ],
  62. "toolsSettings": {
  63. "read": {
  64. "allowedPaths": ["./**", "/tmp/fwh-toolbox-agent/**", "/home/jerry-remote/web/FranklinWH-Wiki/client/docs/**"],
  65. "deniedPaths": []
  66. },
  67. "write": {
  68. "allowedPaths": ["/tmp/fwh-toolbox-agent/**"],
  69. "deniedPaths": []
  70. },
  71. "shell": {
  72. "allowedCommands": [
  73. "^npx -y @firecrawl/anydoc(\\s.*)?$",
  74. "^base64(\\s.*)?$",
  75. "^mkdir\\s+-p\\s+/tmp/fwh-toolbox-agent(/[^\\s;|&]*)?$",
  76. "^cp\\s+/home/jerry-remote/templates/[^\\s;|&]+\\s+/tmp/fwh-toolbox-agent/[^\\s;|&]+$"
  77. ],
  78. "denyByDefault": true
  79. }
  80. },
  81. "resources": [
  82. {
  83. "type": "knowledgeBase",
  84. "source": "file:///home/jerry-remote/web/FranklinWH-Wiki/client/docs",
  85. "name": "FranklinWHProductDocs",
  86. "description": "产品文档和指南,包括产品的软件、硬件、系统功能详细说明",
  87. "indexType": "best",
  88. "autoUpdate": true
  89. }
  90. ],
  91. "hooks": {},
  92. "mcpServers": {
  93. "fwh-tools": {
  94. "command": "./fwh-mcp-server",
  95. "args": [],
  96. "disabled": false
  97. },
  98. "drawio": {
  99. "command": "npx",
  100. "args": ["@next-ai-drawio/mcp-server@latest"],
  101. "disabled": false
  102. },
  103. "officecli": {
  104. "command": "/home/jerry-remote/.local/bin/officecli",
  105. "args": ["mcp"],
  106. "disabled": false
  107. }
  108. },
  109. "welcomeMessage": "欢迎使用fwh-toolbox平台AI助手"
  110. }