fwh-toolbox-agent.json 4.2 KB

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