@tencent-ai/codebuddy-code 2.67.0-next.ed1b89f.20260329 → 2.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (458) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/codebuddy-headless.js +53 -53
  3. package/dist/codebuddy.js +93 -64
  4. package/dist/web-ui/assets/index-BoMlEqUE.js +439 -0
  5. package/dist/web-ui/assets/index-Dt1puyHn.css +32 -0
  6. package/dist/web-ui/docs/cn/cli/acp.md +152 -0
  7. package/dist/web-ui/docs/cn/cli/agent-teams.md +327 -0
  8. package/dist/web-ui/docs/cn/cli/bash-sandboxing.md +290 -0
  9. package/dist/web-ui/docs/cn/cli/best-practices.md +554 -0
  10. package/dist/web-ui/docs/cn/cli/channels-reference.md +293 -0
  11. package/dist/web-ui/docs/cn/cli/channels.md +215 -0
  12. package/dist/web-ui/docs/cn/cli/checkpointing.md +51 -0
  13. package/dist/web-ui/docs/cn/cli/cli-reference.md +187 -0
  14. package/dist/web-ui/docs/cn/cli/common-workflows.md +1013 -0
  15. package/dist/web-ui/docs/cn/cli/costs.md +174 -0
  16. package/dist/web-ui/docs/cn/cli/devcontainer.md +553 -0
  17. package/dist/web-ui/docs/cn/cli/env-vars.md +326 -0
  18. package/dist/web-ui/docs/cn/cli/gitlab-ci-cd.md +357 -0
  19. package/dist/web-ui/docs/cn/cli/headless.md +258 -0
  20. package/dist/web-ui/docs/cn/cli/hooks-guide.md +9 -0
  21. package/dist/web-ui/docs/cn/cli/hooks.md +805 -0
  22. package/dist/web-ui/docs/cn/cli/iam.md +530 -0
  23. package/dist/web-ui/docs/cn/cli/ide-integrations.md +92 -0
  24. package/dist/web-ui/docs/cn/cli/installation.md +291 -0
  25. package/dist/web-ui/docs/cn/cli/interactive-mode.md +233 -0
  26. package/dist/web-ui/docs/cn/cli/mcp.md +739 -0
  27. package/dist/web-ui/docs/cn/cli/memory.md +436 -0
  28. package/dist/web-ui/docs/cn/cli/models.md +356 -0
  29. package/dist/web-ui/docs/cn/cli/overview.md +100 -0
  30. package/dist/web-ui/docs/cn/cli/plugin-marketplaces.md +533 -0
  31. package/dist/web-ui/docs/cn/cli/plugins-reference.md +774 -0
  32. package/dist/web-ui/docs/cn/cli/plugins.md +689 -0
  33. package/dist/web-ui/docs/cn/cli/quickstart.md +249 -0
  34. package/dist/web-ui/docs/cn/cli/release-notes/README.md +199 -0
  35. package/dist/web-ui/docs/cn/cli/release-notes/v2.10.0.md +23 -0
  36. package/dist/web-ui/docs/cn/cli/release-notes/v2.10.1.md +5 -0
  37. package/dist/web-ui/docs/cn/cli/release-notes/v2.11.0.md +24 -0
  38. package/dist/web-ui/docs/cn/cli/release-notes/v2.12.0.md +21 -0
  39. package/dist/web-ui/docs/cn/cli/release-notes/v2.13.0.md +20 -0
  40. package/dist/web-ui/docs/cn/cli/release-notes/v2.14.0.md +22 -0
  41. package/dist/web-ui/docs/cn/cli/release-notes/v2.14.1.md +8 -0
  42. package/dist/web-ui/docs/cn/cli/release-notes/v2.15.0.md +18 -0
  43. package/dist/web-ui/docs/cn/cli/release-notes/v2.15.1.md +11 -0
  44. package/dist/web-ui/docs/cn/cli/release-notes/v2.16.0.md +20 -0
  45. package/dist/web-ui/docs/cn/cli/release-notes/v2.17.0.md +29 -0
  46. package/dist/web-ui/docs/cn/cli/release-notes/v2.18.0.md +17 -0
  47. package/dist/web-ui/docs/cn/cli/release-notes/v2.19.0.md +11 -0
  48. package/dist/web-ui/docs/cn/cli/release-notes/v2.19.1.md +14 -0
  49. package/dist/web-ui/docs/cn/cli/release-notes/v2.19.2.md +11 -0
  50. package/dist/web-ui/docs/cn/cli/release-notes/v2.20.0.md +23 -0
  51. package/dist/web-ui/docs/cn/cli/release-notes/v2.20.1.md +15 -0
  52. package/dist/web-ui/docs/cn/cli/release-notes/v2.21.0.md +13 -0
  53. package/dist/web-ui/docs/cn/cli/release-notes/v2.22.0.md +16 -0
  54. package/dist/web-ui/docs/cn/cli/release-notes/v2.23.0.md +20 -0
  55. package/dist/web-ui/docs/cn/cli/release-notes/v2.23.2.md +5 -0
  56. package/dist/web-ui/docs/cn/cli/release-notes/v2.23.3.md +5 -0
  57. package/dist/web-ui/docs/cn/cli/release-notes/v2.23.4.md +15 -0
  58. package/dist/web-ui/docs/cn/cli/release-notes/v2.23.5.md +11 -0
  59. package/dist/web-ui/docs/cn/cli/release-notes/v2.24.0.md +17 -0
  60. package/dist/web-ui/docs/cn/cli/release-notes/v2.25.0.md +18 -0
  61. package/dist/web-ui/docs/cn/cli/release-notes/v2.25.1.md +21 -0
  62. package/dist/web-ui/docs/cn/cli/release-notes/v2.26.0.md +18 -0
  63. package/dist/web-ui/docs/cn/cli/release-notes/v2.27.0.md +16 -0
  64. package/dist/web-ui/docs/cn/cli/release-notes/v2.27.1.md +16 -0
  65. package/dist/web-ui/docs/cn/cli/release-notes/v2.27.2.md +7 -0
  66. package/dist/web-ui/docs/cn/cli/release-notes/v2.27.3.md +15 -0
  67. package/dist/web-ui/docs/cn/cli/release-notes/v2.28.0.md +26 -0
  68. package/dist/web-ui/docs/cn/cli/release-notes/v2.28.1.md +5 -0
  69. package/dist/web-ui/docs/cn/cli/release-notes/v2.29.0.md +35 -0
  70. package/dist/web-ui/docs/cn/cli/release-notes/v2.3.1.md +16 -0
  71. package/dist/web-ui/docs/cn/cli/release-notes/v2.30.0.md +19 -0
  72. package/dist/web-ui/docs/cn/cli/release-notes/v2.30.1.md +5 -0
  73. package/dist/web-ui/docs/cn/cli/release-notes/v2.31.0.md +51 -0
  74. package/dist/web-ui/docs/cn/cli/release-notes/v2.31.1.md +11 -0
  75. package/dist/web-ui/docs/cn/cli/release-notes/v2.31.2.md +16 -0
  76. package/dist/web-ui/docs/cn/cli/release-notes/v2.32.0.md +19 -0
  77. package/dist/web-ui/docs/cn/cli/release-notes/v2.33.0.md +28 -0
  78. package/dist/web-ui/docs/cn/cli/release-notes/v2.33.1.md +7 -0
  79. package/dist/web-ui/docs/cn/cli/release-notes/v2.36.3.md +17 -0
  80. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.0.md +15 -0
  81. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.1.md +15 -0
  82. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.10.md +5 -0
  83. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.11.md +8 -0
  84. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.12.md +14 -0
  85. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.13.md +11 -0
  86. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.14.md +24 -0
  87. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.15.md +11 -0
  88. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.16.md +9 -0
  89. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.17.md +5 -0
  90. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.18.md +9 -0
  91. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.19.md +5 -0
  92. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.2.md +28 -0
  93. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.20.md +8 -0
  94. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.3.md +22 -0
  95. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.4.md +19 -0
  96. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.5.md +5 -0
  97. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.6.md +5 -0
  98. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.7.md +5 -0
  99. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.8.md +5 -0
  100. package/dist/web-ui/docs/cn/cli/release-notes/v2.37.9.md +8 -0
  101. package/dist/web-ui/docs/cn/cli/release-notes/v2.38.0.md +22 -0
  102. package/dist/web-ui/docs/cn/cli/release-notes/v2.38.1.md +6 -0
  103. package/dist/web-ui/docs/cn/cli/release-notes/v2.38.2.md +9 -0
  104. package/dist/web-ui/docs/cn/cli/release-notes/v2.39.0.md +18 -0
  105. package/dist/web-ui/docs/cn/cli/release-notes/v2.4.0.md +19 -0
  106. package/dist/web-ui/docs/cn/cli/release-notes/v2.40.0.md +20 -0
  107. package/dist/web-ui/docs/cn/cli/release-notes/v2.40.1.md +6 -0
  108. package/dist/web-ui/docs/cn/cli/release-notes/v2.41.0.md +15 -0
  109. package/dist/web-ui/docs/cn/cli/release-notes/v2.41.1.md +6 -0
  110. package/dist/web-ui/docs/cn/cli/release-notes/v2.41.2.md +5 -0
  111. package/dist/web-ui/docs/cn/cli/release-notes/v2.41.3.md +8 -0
  112. package/dist/web-ui/docs/cn/cli/release-notes/v2.41.4.md +5 -0
  113. package/dist/web-ui/docs/cn/cli/release-notes/v2.41.5.md +10 -0
  114. package/dist/web-ui/docs/cn/cli/release-notes/v2.41.6.md +9 -0
  115. package/dist/web-ui/docs/cn/cli/release-notes/v2.41.7.md +14 -0
  116. package/dist/web-ui/docs/cn/cli/release-notes/v2.41.8.md +18 -0
  117. package/dist/web-ui/docs/cn/cli/release-notes/v2.42.0.md +39 -0
  118. package/dist/web-ui/docs/cn/cli/release-notes/v2.42.1.md +8 -0
  119. package/dist/web-ui/docs/cn/cli/release-notes/v2.42.3.md +18 -0
  120. package/dist/web-ui/docs/cn/cli/release-notes/v2.43.0.md +27 -0
  121. package/dist/web-ui/docs/cn/cli/release-notes/v2.43.1.md +27 -0
  122. package/dist/web-ui/docs/cn/cli/release-notes/v2.44.0.md +11 -0
  123. package/dist/web-ui/docs/cn/cli/release-notes/v2.44.1.md +22 -0
  124. package/dist/web-ui/docs/cn/cli/release-notes/v2.45.0.md +34 -0
  125. package/dist/web-ui/docs/cn/cli/release-notes/v2.45.1.md +7 -0
  126. package/dist/web-ui/docs/cn/cli/release-notes/v2.46.0.md +12 -0
  127. package/dist/web-ui/docs/cn/cli/release-notes/v2.47.0.md +20 -0
  128. package/dist/web-ui/docs/cn/cli/release-notes/v2.48.0.md +32 -0
  129. package/dist/web-ui/docs/cn/cli/release-notes/v2.48.1.md +11 -0
  130. package/dist/web-ui/docs/cn/cli/release-notes/v2.49.0.md +26 -0
  131. package/dist/web-ui/docs/cn/cli/release-notes/v2.49.1.md +14 -0
  132. package/dist/web-ui/docs/cn/cli/release-notes/v2.49.2.md +39 -0
  133. package/dist/web-ui/docs/cn/cli/release-notes/v2.49.3.md +7 -0
  134. package/dist/web-ui/docs/cn/cli/release-notes/v2.49.5.md +11 -0
  135. package/dist/web-ui/docs/cn/cli/release-notes/v2.49.6.md +9 -0
  136. package/dist/web-ui/docs/cn/cli/release-notes/v2.49.7.md +7 -0
  137. package/dist/web-ui/docs/cn/cli/release-notes/v2.5.0.md +24 -0
  138. package/dist/web-ui/docs/cn/cli/release-notes/v2.50.0.md +25 -0
  139. package/dist/web-ui/docs/cn/cli/release-notes/v2.50.1.md +9 -0
  140. package/dist/web-ui/docs/cn/cli/release-notes/v2.50.2.md +11 -0
  141. package/dist/web-ui/docs/cn/cli/release-notes/v2.50.3.md +5 -0
  142. package/dist/web-ui/docs/cn/cli/release-notes/v2.50.4.md +17 -0
  143. package/dist/web-ui/docs/cn/cli/release-notes/v2.50.5.md +16 -0
  144. package/dist/web-ui/docs/cn/cli/release-notes/v2.50.6.md +15 -0
  145. package/dist/web-ui/docs/cn/cli/release-notes/v2.50.7.md +15 -0
  146. package/dist/web-ui/docs/cn/cli/release-notes/v2.51.0.md +24 -0
  147. package/dist/web-ui/docs/cn/cli/release-notes/v2.51.1.md +17 -0
  148. package/dist/web-ui/docs/cn/cli/release-notes/v2.51.2.md +5 -0
  149. package/dist/web-ui/docs/cn/cli/release-notes/v2.52.0.md +30 -0
  150. package/dist/web-ui/docs/cn/cli/release-notes/v2.52.1.md +28 -0
  151. package/dist/web-ui/docs/cn/cli/release-notes/v2.52.2.md +12 -0
  152. package/dist/web-ui/docs/cn/cli/release-notes/v2.52.3.md +13 -0
  153. package/dist/web-ui/docs/cn/cli/release-notes/v2.52.4.md +27 -0
  154. package/dist/web-ui/docs/cn/cli/release-notes/v2.52.5.md +21 -0
  155. package/dist/web-ui/docs/cn/cli/release-notes/v2.52.6.md +7 -0
  156. package/dist/web-ui/docs/cn/cli/release-notes/v2.53.0.md +29 -0
  157. package/dist/web-ui/docs/cn/cli/release-notes/v2.54.0.md +26 -0
  158. package/dist/web-ui/docs/cn/cli/release-notes/v2.55.0.md +21 -0
  159. package/dist/web-ui/docs/cn/cli/release-notes/v2.55.1.md +13 -0
  160. package/dist/web-ui/docs/cn/cli/release-notes/v2.56.0.md +20 -0
  161. package/dist/web-ui/docs/cn/cli/release-notes/v2.56.1.md +5 -0
  162. package/dist/web-ui/docs/cn/cli/release-notes/v2.57.0.md +32 -0
  163. package/dist/web-ui/docs/cn/cli/release-notes/v2.57.1.md +10 -0
  164. package/dist/web-ui/docs/cn/cli/release-notes/v2.58.0.md +34 -0
  165. package/dist/web-ui/docs/cn/cli/release-notes/v2.59.0.md +28 -0
  166. package/dist/web-ui/docs/cn/cli/release-notes/v2.6.0.md +5 -0
  167. package/dist/web-ui/docs/cn/cli/release-notes/v2.6.1.md +10 -0
  168. package/dist/web-ui/docs/cn/cli/release-notes/v2.60.0.md +20 -0
  169. package/dist/web-ui/docs/cn/cli/release-notes/v2.61.0.md +29 -0
  170. package/dist/web-ui/docs/cn/cli/release-notes/v2.61.1.md +5 -0
  171. package/dist/web-ui/docs/cn/cli/release-notes/v2.61.2.md +6 -0
  172. package/dist/web-ui/docs/cn/cli/release-notes/v2.61.3.md +13 -0
  173. package/dist/web-ui/docs/cn/cli/release-notes/v2.62.0.md +21 -0
  174. package/dist/web-ui/docs/cn/cli/release-notes/v2.62.1.md +11 -0
  175. package/dist/web-ui/docs/cn/cli/release-notes/v2.63.0.md +19 -0
  176. package/dist/web-ui/docs/cn/cli/release-notes/v2.63.1.md +5 -0
  177. package/dist/web-ui/docs/cn/cli/release-notes/v2.63.2.md +7 -0
  178. package/dist/web-ui/docs/cn/cli/release-notes/v2.63.3.md +6 -0
  179. package/dist/web-ui/docs/cn/cli/release-notes/v2.63.4.md +8 -0
  180. package/dist/web-ui/docs/cn/cli/release-notes/v2.63.5.md +6 -0
  181. package/dist/web-ui/docs/cn/cli/release-notes/v2.64.0.md +37 -0
  182. package/dist/web-ui/docs/cn/cli/release-notes/v2.64.1.md +6 -0
  183. package/dist/web-ui/docs/cn/cli/release-notes/v2.64.2.md +11 -0
  184. package/dist/web-ui/docs/cn/cli/release-notes/v2.65.0.md +19 -0
  185. package/dist/web-ui/docs/cn/cli/release-notes/v2.65.1.md +11 -0
  186. package/dist/web-ui/docs/cn/cli/release-notes/v2.66.0.md +15 -0
  187. package/dist/web-ui/docs/cn/cli/release-notes/v2.66.1.md +14 -0
  188. package/dist/web-ui/docs/cn/cli/release-notes/v2.66.2.md +5 -0
  189. package/dist/web-ui/docs/cn/cli/release-notes/v2.67.0.md +33 -0
  190. package/dist/web-ui/docs/cn/cli/release-notes/v2.7.0.md +16 -0
  191. package/dist/web-ui/docs/cn/cli/release-notes/v2.8.0.md +18 -0
  192. package/dist/web-ui/docs/cn/cli/release-notes/v2.8.1.md +17 -0
  193. package/dist/web-ui/docs/cn/cli/release-notes/v2.8.2.md +5 -0
  194. package/dist/web-ui/docs/cn/cli/release-notes/v2.8.3.md +14 -0
  195. package/dist/web-ui/docs/cn/cli/release-notes/v2.8.4.md +9 -0
  196. package/dist/web-ui/docs/cn/cli/release-notes/v2.8.5.md +5 -0
  197. package/dist/web-ui/docs/cn/cli/release-notes/v2.8.6.md +14 -0
  198. package/dist/web-ui/docs/cn/cli/release-notes/v2.9.0.md +5 -0
  199. package/dist/web-ui/docs/cn/cli/remote-control.md +247 -0
  200. package/dist/web-ui/docs/cn/cli/sandboxing.md +316 -0
  201. package/dist/web-ui/docs/cn/cli/scheduled-tasks.md +161 -0
  202. package/dist/web-ui/docs/cn/cli/sdk-custom-tools.md +1195 -0
  203. package/dist/web-ui/docs/cn/cli/sdk-demos.md +347 -0
  204. package/dist/web-ui/docs/cn/cli/sdk-hooks.md +803 -0
  205. package/dist/web-ui/docs/cn/cli/sdk-mcp.md +643 -0
  206. package/dist/web-ui/docs/cn/cli/sdk-permissions.md +501 -0
  207. package/dist/web-ui/docs/cn/cli/sdk-python.md +783 -0
  208. package/dist/web-ui/docs/cn/cli/sdk-sessions.md +332 -0
  209. package/dist/web-ui/docs/cn/cli/sdk-typescript.md +759 -0
  210. package/dist/web-ui/docs/cn/cli/sdk.md +1105 -0
  211. package/dist/web-ui/docs/cn/cli/security.md +387 -0
  212. package/dist/web-ui/docs/cn/cli/settings.md +602 -0
  213. package/dist/web-ui/docs/cn/cli/skills.md +448 -0
  214. package/dist/web-ui/docs/cn/cli/slash-commands.md +397 -0
  215. package/dist/web-ui/docs/cn/cli/statusline.md +525 -0
  216. package/dist/web-ui/docs/cn/cli/sub-agents.md +634 -0
  217. package/dist/web-ui/docs/cn/cli/terminal-config.md +77 -0
  218. package/dist/web-ui/docs/cn/cli/tools-reference.md +99 -0
  219. package/dist/web-ui/docs/cn/cli/troubleshooting.md +190 -0
  220. package/dist/web-ui/docs/cn/cli/web-ui.md +164 -0
  221. package/dist/web-ui/docs/cn/cli/wecom-bot-setup.md +274 -0
  222. package/dist/web-ui/docs/cn/cli/worktree.md +660 -0
  223. package/dist/web-ui/docs/en/cli/acp.md +126 -0
  224. package/dist/web-ui/docs/en/cli/agent-teams.md +327 -0
  225. package/dist/web-ui/docs/en/cli/bash-sandboxing.md +357 -0
  226. package/dist/web-ui/docs/en/cli/best-practices.md +554 -0
  227. package/dist/web-ui/docs/en/cli/channels-reference.md +293 -0
  228. package/dist/web-ui/docs/en/cli/channels.md +215 -0
  229. package/dist/web-ui/docs/en/cli/checkpointing.md +53 -0
  230. package/dist/web-ui/docs/en/cli/cli-reference.md +187 -0
  231. package/dist/web-ui/docs/en/cli/common-workflows.md +1011 -0
  232. package/dist/web-ui/docs/en/cli/costs.md +174 -0
  233. package/dist/web-ui/docs/en/cli/devcontainer.md +553 -0
  234. package/dist/web-ui/docs/en/cli/env-vars.md +326 -0
  235. package/dist/web-ui/docs/en/cli/gitlab-ci-cd.md +357 -0
  236. package/dist/web-ui/docs/en/cli/headless.md +258 -0
  237. package/dist/web-ui/docs/en/cli/hooks-guide.md +9 -0
  238. package/dist/web-ui/docs/en/cli/hooks.md +801 -0
  239. package/dist/web-ui/docs/en/cli/iam.md +526 -0
  240. package/dist/web-ui/docs/en/cli/ide-integrations.md +92 -0
  241. package/dist/web-ui/docs/en/cli/installation.md +266 -0
  242. package/dist/web-ui/docs/en/cli/interactive-mode.md +233 -0
  243. package/dist/web-ui/docs/en/cli/mcp.md +739 -0
  244. package/dist/web-ui/docs/en/cli/memory.md +436 -0
  245. package/dist/web-ui/docs/en/cli/models.md +355 -0
  246. package/dist/web-ui/docs/en/cli/overview.md +100 -0
  247. package/dist/web-ui/docs/en/cli/plugin-marketplaces.md +534 -0
  248. package/dist/web-ui/docs/en/cli/plugins-reference.md +774 -0
  249. package/dist/web-ui/docs/en/cli/plugins.md +688 -0
  250. package/dist/web-ui/docs/en/cli/quickstart.md +249 -0
  251. package/dist/web-ui/docs/en/cli/release-notes/README.md +193 -0
  252. package/dist/web-ui/docs/en/cli/release-notes/v2.10.0.md +23 -0
  253. package/dist/web-ui/docs/en/cli/release-notes/v2.10.1.md +5 -0
  254. package/dist/web-ui/docs/en/cli/release-notes/v2.11.0.md +24 -0
  255. package/dist/web-ui/docs/en/cli/release-notes/v2.12.0.md +21 -0
  256. package/dist/web-ui/docs/en/cli/release-notes/v2.13.0.md +20 -0
  257. package/dist/web-ui/docs/en/cli/release-notes/v2.14.0.md +22 -0
  258. package/dist/web-ui/docs/en/cli/release-notes/v2.14.1.md +8 -0
  259. package/dist/web-ui/docs/en/cli/release-notes/v2.15.0.md +18 -0
  260. package/dist/web-ui/docs/en/cli/release-notes/v2.15.1.md +11 -0
  261. package/dist/web-ui/docs/en/cli/release-notes/v2.16.0.md +20 -0
  262. package/dist/web-ui/docs/en/cli/release-notes/v2.17.0.md +29 -0
  263. package/dist/web-ui/docs/en/cli/release-notes/v2.18.0.md +17 -0
  264. package/dist/web-ui/docs/en/cli/release-notes/v2.19.0.md +11 -0
  265. package/dist/web-ui/docs/en/cli/release-notes/v2.19.1.md +14 -0
  266. package/dist/web-ui/docs/en/cli/release-notes/v2.19.2.md +11 -0
  267. package/dist/web-ui/docs/en/cli/release-notes/v2.20.0.md +23 -0
  268. package/dist/web-ui/docs/en/cli/release-notes/v2.20.1.md +15 -0
  269. package/dist/web-ui/docs/en/cli/release-notes/v2.21.0.md +13 -0
  270. package/dist/web-ui/docs/en/cli/release-notes/v2.22.0.md +16 -0
  271. package/dist/web-ui/docs/en/cli/release-notes/v2.23.0.md +41 -0
  272. package/dist/web-ui/docs/en/cli/release-notes/v2.23.2.md +5 -0
  273. package/dist/web-ui/docs/en/cli/release-notes/v2.23.3.md +5 -0
  274. package/dist/web-ui/docs/en/cli/release-notes/v2.23.4.md +15 -0
  275. package/dist/web-ui/docs/en/cli/release-notes/v2.23.5.md +11 -0
  276. package/dist/web-ui/docs/en/cli/release-notes/v2.24.0.md +17 -0
  277. package/dist/web-ui/docs/en/cli/release-notes/v2.25.0.md +18 -0
  278. package/dist/web-ui/docs/en/cli/release-notes/v2.25.1.md +21 -0
  279. package/dist/web-ui/docs/en/cli/release-notes/v2.26.0.md +18 -0
  280. package/dist/web-ui/docs/en/cli/release-notes/v2.27.0.md +16 -0
  281. package/dist/web-ui/docs/en/cli/release-notes/v2.27.1.md +16 -0
  282. package/dist/web-ui/docs/en/cli/release-notes/v2.27.2.md +7 -0
  283. package/dist/web-ui/docs/en/cli/release-notes/v2.27.3.md +15 -0
  284. package/dist/web-ui/docs/en/cli/release-notes/v2.28.0.md +26 -0
  285. package/dist/web-ui/docs/en/cli/release-notes/v2.28.1.md +5 -0
  286. package/dist/web-ui/docs/en/cli/release-notes/v2.29.0.md +35 -0
  287. package/dist/web-ui/docs/en/cli/release-notes/v2.3.1.md +16 -0
  288. package/dist/web-ui/docs/en/cli/release-notes/v2.30.0.md +19 -0
  289. package/dist/web-ui/docs/en/cli/release-notes/v2.30.1.md +5 -0
  290. package/dist/web-ui/docs/en/cli/release-notes/v2.31.0.md +51 -0
  291. package/dist/web-ui/docs/en/cli/release-notes/v2.31.1.md +11 -0
  292. package/dist/web-ui/docs/en/cli/release-notes/v2.31.2.md +16 -0
  293. package/dist/web-ui/docs/en/cli/release-notes/v2.32.0.md +19 -0
  294. package/dist/web-ui/docs/en/cli/release-notes/v2.33.0.md +28 -0
  295. package/dist/web-ui/docs/en/cli/release-notes/v2.33.1.md +7 -0
  296. package/dist/web-ui/docs/en/cli/release-notes/v2.34.0.md +27 -0
  297. package/dist/web-ui/docs/en/cli/release-notes/v2.34.1.md +7 -0
  298. package/dist/web-ui/docs/en/cli/release-notes/v2.35.0.md +22 -0
  299. package/dist/web-ui/docs/en/cli/release-notes/v2.36.0.md +23 -0
  300. package/dist/web-ui/docs/en/cli/release-notes/v2.36.1.md +5 -0
  301. package/dist/web-ui/docs/en/cli/release-notes/v2.36.2.md +22 -0
  302. package/dist/web-ui/docs/en/cli/release-notes/v2.36.3.md +17 -0
  303. package/dist/web-ui/docs/en/cli/release-notes/v2.37.0.md +15 -0
  304. package/dist/web-ui/docs/en/cli/release-notes/v2.37.1.md +15 -0
  305. package/dist/web-ui/docs/en/cli/release-notes/v2.37.10.md +5 -0
  306. package/dist/web-ui/docs/en/cli/release-notes/v2.37.11.md +8 -0
  307. package/dist/web-ui/docs/en/cli/release-notes/v2.37.12.md +14 -0
  308. package/dist/web-ui/docs/en/cli/release-notes/v2.37.13.md +11 -0
  309. package/dist/web-ui/docs/en/cli/release-notes/v2.37.14.md +24 -0
  310. package/dist/web-ui/docs/en/cli/release-notes/v2.37.15.md +11 -0
  311. package/dist/web-ui/docs/en/cli/release-notes/v2.37.16.md +9 -0
  312. package/dist/web-ui/docs/en/cli/release-notes/v2.37.17.md +5 -0
  313. package/dist/web-ui/docs/en/cli/release-notes/v2.37.18.md +9 -0
  314. package/dist/web-ui/docs/en/cli/release-notes/v2.37.19.md +5 -0
  315. package/dist/web-ui/docs/en/cli/release-notes/v2.37.2.md +28 -0
  316. package/dist/web-ui/docs/en/cli/release-notes/v2.37.20.md +8 -0
  317. package/dist/web-ui/docs/en/cli/release-notes/v2.37.3.md +22 -0
  318. package/dist/web-ui/docs/en/cli/release-notes/v2.37.4.md +19 -0
  319. package/dist/web-ui/docs/en/cli/release-notes/v2.37.5.md +5 -0
  320. package/dist/web-ui/docs/en/cli/release-notes/v2.37.6.md +5 -0
  321. package/dist/web-ui/docs/en/cli/release-notes/v2.37.7.md +5 -0
  322. package/dist/web-ui/docs/en/cli/release-notes/v2.37.8.md +5 -0
  323. package/dist/web-ui/docs/en/cli/release-notes/v2.37.9.md +8 -0
  324. package/dist/web-ui/docs/en/cli/release-notes/v2.38.0.md +22 -0
  325. package/dist/web-ui/docs/en/cli/release-notes/v2.38.1.md +6 -0
  326. package/dist/web-ui/docs/en/cli/release-notes/v2.38.2.md +9 -0
  327. package/dist/web-ui/docs/en/cli/release-notes/v2.39.0.md +18 -0
  328. package/dist/web-ui/docs/en/cli/release-notes/v2.4.0.md +19 -0
  329. package/dist/web-ui/docs/en/cli/release-notes/v2.40.0.md +20 -0
  330. package/dist/web-ui/docs/en/cli/release-notes/v2.40.1.md +6 -0
  331. package/dist/web-ui/docs/en/cli/release-notes/v2.41.0.md +15 -0
  332. package/dist/web-ui/docs/en/cli/release-notes/v2.41.1.md +6 -0
  333. package/dist/web-ui/docs/en/cli/release-notes/v2.41.2.md +5 -0
  334. package/dist/web-ui/docs/en/cli/release-notes/v2.41.3.md +8 -0
  335. package/dist/web-ui/docs/en/cli/release-notes/v2.41.4.md +5 -0
  336. package/dist/web-ui/docs/en/cli/release-notes/v2.41.5.md +10 -0
  337. package/dist/web-ui/docs/en/cli/release-notes/v2.41.6.md +9 -0
  338. package/dist/web-ui/docs/en/cli/release-notes/v2.41.7.md +14 -0
  339. package/dist/web-ui/docs/en/cli/release-notes/v2.41.8.md +18 -0
  340. package/dist/web-ui/docs/en/cli/release-notes/v2.42.0.md +39 -0
  341. package/dist/web-ui/docs/en/cli/release-notes/v2.42.1.md +8 -0
  342. package/dist/web-ui/docs/en/cli/release-notes/v2.42.3.md +18 -0
  343. package/dist/web-ui/docs/en/cli/release-notes/v2.43.0.md +27 -0
  344. package/dist/web-ui/docs/en/cli/release-notes/v2.43.1.md +27 -0
  345. package/dist/web-ui/docs/en/cli/release-notes/v2.44.0.md +11 -0
  346. package/dist/web-ui/docs/en/cli/release-notes/v2.44.1.md +22 -0
  347. package/dist/web-ui/docs/en/cli/release-notes/v2.45.0.md +34 -0
  348. package/dist/web-ui/docs/en/cli/release-notes/v2.45.1.md +7 -0
  349. package/dist/web-ui/docs/en/cli/release-notes/v2.46.0.md +12 -0
  350. package/dist/web-ui/docs/en/cli/release-notes/v2.47.0.md +20 -0
  351. package/dist/web-ui/docs/en/cli/release-notes/v2.48.0.md +32 -0
  352. package/dist/web-ui/docs/en/cli/release-notes/v2.48.1.md +11 -0
  353. package/dist/web-ui/docs/en/cli/release-notes/v2.49.0.md +26 -0
  354. package/dist/web-ui/docs/en/cli/release-notes/v2.49.1.md +14 -0
  355. package/dist/web-ui/docs/en/cli/release-notes/v2.49.2.md +39 -0
  356. package/dist/web-ui/docs/en/cli/release-notes/v2.49.3.md +7 -0
  357. package/dist/web-ui/docs/en/cli/release-notes/v2.49.5.md +11 -0
  358. package/dist/web-ui/docs/en/cli/release-notes/v2.49.6.md +9 -0
  359. package/dist/web-ui/docs/en/cli/release-notes/v2.49.7.md +7 -0
  360. package/dist/web-ui/docs/en/cli/release-notes/v2.5.0.md +24 -0
  361. package/dist/web-ui/docs/en/cli/release-notes/v2.50.0.md +25 -0
  362. package/dist/web-ui/docs/en/cli/release-notes/v2.50.1.md +9 -0
  363. package/dist/web-ui/docs/en/cli/release-notes/v2.50.2.md +11 -0
  364. package/dist/web-ui/docs/en/cli/release-notes/v2.50.3.md +5 -0
  365. package/dist/web-ui/docs/en/cli/release-notes/v2.50.4.md +17 -0
  366. package/dist/web-ui/docs/en/cli/release-notes/v2.50.5.md +16 -0
  367. package/dist/web-ui/docs/en/cli/release-notes/v2.50.6.md +15 -0
  368. package/dist/web-ui/docs/en/cli/release-notes/v2.50.7.md +15 -0
  369. package/dist/web-ui/docs/en/cli/release-notes/v2.51.0.md +24 -0
  370. package/dist/web-ui/docs/en/cli/release-notes/v2.51.1.md +17 -0
  371. package/dist/web-ui/docs/en/cli/release-notes/v2.51.2.md +5 -0
  372. package/dist/web-ui/docs/en/cli/release-notes/v2.52.0.md +30 -0
  373. package/dist/web-ui/docs/en/cli/release-notes/v2.52.1.md +28 -0
  374. package/dist/web-ui/docs/en/cli/release-notes/v2.52.2.md +12 -0
  375. package/dist/web-ui/docs/en/cli/release-notes/v2.52.3.md +13 -0
  376. package/dist/web-ui/docs/en/cli/release-notes/v2.52.4.md +27 -0
  377. package/dist/web-ui/docs/en/cli/release-notes/v2.52.5.md +21 -0
  378. package/dist/web-ui/docs/en/cli/release-notes/v2.52.6.md +7 -0
  379. package/dist/web-ui/docs/en/cli/release-notes/v2.53.0.md +29 -0
  380. package/dist/web-ui/docs/en/cli/release-notes/v2.54.0.md +26 -0
  381. package/dist/web-ui/docs/en/cli/release-notes/v2.55.0.md +21 -0
  382. package/dist/web-ui/docs/en/cli/release-notes/v2.55.1.md +13 -0
  383. package/dist/web-ui/docs/en/cli/release-notes/v2.56.0.md +20 -0
  384. package/dist/web-ui/docs/en/cli/release-notes/v2.56.1.md +5 -0
  385. package/dist/web-ui/docs/en/cli/release-notes/v2.57.0.md +32 -0
  386. package/dist/web-ui/docs/en/cli/release-notes/v2.57.1.md +10 -0
  387. package/dist/web-ui/docs/en/cli/release-notes/v2.58.0.md +34 -0
  388. package/dist/web-ui/docs/en/cli/release-notes/v2.59.0.md +28 -0
  389. package/dist/web-ui/docs/en/cli/release-notes/v2.6.0.md +5 -0
  390. package/dist/web-ui/docs/en/cli/release-notes/v2.6.1.md +10 -0
  391. package/dist/web-ui/docs/en/cli/release-notes/v2.60.0.md +20 -0
  392. package/dist/web-ui/docs/en/cli/release-notes/v2.61.0.md +29 -0
  393. package/dist/web-ui/docs/en/cli/release-notes/v2.61.1.md +5 -0
  394. package/dist/web-ui/docs/en/cli/release-notes/v2.61.2.md +6 -0
  395. package/dist/web-ui/docs/en/cli/release-notes/v2.61.3.md +13 -0
  396. package/dist/web-ui/docs/en/cli/release-notes/v2.62.0.md +21 -0
  397. package/dist/web-ui/docs/en/cli/release-notes/v2.62.1.md +11 -0
  398. package/dist/web-ui/docs/en/cli/release-notes/v2.63.0.md +19 -0
  399. package/dist/web-ui/docs/en/cli/release-notes/v2.63.1.md +5 -0
  400. package/dist/web-ui/docs/en/cli/release-notes/v2.63.2.md +7 -0
  401. package/dist/web-ui/docs/en/cli/release-notes/v2.63.3.md +6 -0
  402. package/dist/web-ui/docs/en/cli/release-notes/v2.63.4.md +8 -0
  403. package/dist/web-ui/docs/en/cli/release-notes/v2.63.5.md +6 -0
  404. package/dist/web-ui/docs/en/cli/release-notes/v2.64.0.md +37 -0
  405. package/dist/web-ui/docs/en/cli/release-notes/v2.64.1.md +6 -0
  406. package/dist/web-ui/docs/en/cli/release-notes/v2.64.2.md +11 -0
  407. package/dist/web-ui/docs/en/cli/release-notes/v2.65.0.md +19 -0
  408. package/dist/web-ui/docs/en/cli/release-notes/v2.65.1.md +11 -0
  409. package/dist/web-ui/docs/en/cli/release-notes/v2.66.0.md +15 -0
  410. package/dist/web-ui/docs/en/cli/release-notes/v2.66.1.md +14 -0
  411. package/dist/web-ui/docs/en/cli/release-notes/v2.66.2.md +5 -0
  412. package/dist/web-ui/docs/en/cli/release-notes/v2.67.0.md +33 -0
  413. package/dist/web-ui/docs/en/cli/release-notes/v2.7.0.md +16 -0
  414. package/dist/web-ui/docs/en/cli/release-notes/v2.8.0.md +18 -0
  415. package/dist/web-ui/docs/en/cli/release-notes/v2.8.1.md +17 -0
  416. package/dist/web-ui/docs/en/cli/release-notes/v2.8.2.md +5 -0
  417. package/dist/web-ui/docs/en/cli/release-notes/v2.8.3.md +14 -0
  418. package/dist/web-ui/docs/en/cli/release-notes/v2.8.4.md +9 -0
  419. package/dist/web-ui/docs/en/cli/release-notes/v2.8.5.md +5 -0
  420. package/dist/web-ui/docs/en/cli/release-notes/v2.8.6.md +14 -0
  421. package/dist/web-ui/docs/en/cli/release-notes/v2.9.0.md +5 -0
  422. package/dist/web-ui/docs/en/cli/remote-control.md +247 -0
  423. package/dist/web-ui/docs/en/cli/sandboxing.md +316 -0
  424. package/dist/web-ui/docs/en/cli/scheduled-tasks.md +160 -0
  425. package/dist/web-ui/docs/en/cli/sdk-custom-tools.md +1131 -0
  426. package/dist/web-ui/docs/en/cli/sdk-demos.md +347 -0
  427. package/dist/web-ui/docs/en/cli/sdk-hooks.md +813 -0
  428. package/dist/web-ui/docs/en/cli/sdk-mcp.md +645 -0
  429. package/dist/web-ui/docs/en/cli/sdk-permissions.md +461 -0
  430. package/dist/web-ui/docs/en/cli/sdk-python.md +797 -0
  431. package/dist/web-ui/docs/en/cli/sdk-sessions.md +340 -0
  432. package/dist/web-ui/docs/en/cli/sdk-typescript.md +770 -0
  433. package/dist/web-ui/docs/en/cli/sdk.md +1103 -0
  434. package/dist/web-ui/docs/en/cli/security.md +388 -0
  435. package/dist/web-ui/docs/en/cli/settings.md +602 -0
  436. package/dist/web-ui/docs/en/cli/skills.md +448 -0
  437. package/dist/web-ui/docs/en/cli/slash-commands.md +397 -0
  438. package/dist/web-ui/docs/en/cli/statusline.md +525 -0
  439. package/dist/web-ui/docs/en/cli/sub-agents.md +621 -0
  440. package/dist/web-ui/docs/en/cli/terminal-config.md +77 -0
  441. package/dist/web-ui/docs/en/cli/tools-reference.md +99 -0
  442. package/dist/web-ui/docs/en/cli/troubleshooting.md +190 -0
  443. package/dist/web-ui/docs/en/cli/web-ui.md +164 -0
  444. package/dist/web-ui/docs/en/cli/wecom-bot-setup.md +274 -0
  445. package/dist/web-ui/docs/en/cli/worktree.md +660 -0
  446. package/dist/web-ui/docs/search-index-en.json +1 -0
  447. package/dist/web-ui/docs/search-index-zh.json +1 -0
  448. package/dist/web-ui/docs/sidebar-en.json +1 -0
  449. package/dist/web-ui/docs/sidebar-zh.json +1 -0
  450. package/dist/web-ui/index.html +2 -2
  451. package/package.json +2 -3
  452. package/product.cloudhosted.json +2 -2
  453. package/product.internal.json +2 -2
  454. package/product.ioa.json +2 -2
  455. package/product.json +3 -3
  456. package/product.selfhosted.json +2 -2
  457. package/dist/web-ui/assets/index-BPT-qRRx.js +0 -411
  458. package/dist/web-ui/assets/index-f_ibHSHw.css +0 -32
@@ -0,0 +1,739 @@
1
+ # MCP (Model Context Protocol) Usage Documentation
2
+
3
+ ## Overview
4
+
5
+ MCP (Model Context Protocol) is an open standard that allows CodeBuddy to integrate with external tools and data sources. Through MCP, you can extend CodeBuddy's functionality by connecting to various external services, databases, APIs, and more.
6
+
7
+ ## Core Concepts
8
+
9
+ ### MCP Server
10
+
11
+ An MCP server is an independent process that provides tools, resources, and prompts. CodeBuddy communicates with these servers through different transport protocols.
12
+
13
+ ### MCP Prompts Integration
14
+
15
+ MCP servers can provide Prompts (prompt templates), which are automatically converted into CodeBuddy's slash commands. When an MCP server is connected:
16
+
17
+ - Prompts provided by the server are automatically registered as slash commands
18
+ - Command name format: `/server-name:prompt-name`
19
+ - Supports dynamic parameters, collecting user input through an interactive interface
20
+ - Command execution calls the MCP server's `prompts/get` interface to retrieve complete content
21
+ - Supports real-time monitoring of configuration changes, automatically updating the list of available commands
22
+
23
+ ### Transport Types
24
+
25
+ - **STDIO**: Communication with local processes via standard input/output
26
+ - **SSE**: Communication with remote services via Server-Sent Events
27
+ - **HTTP**: Communication with remote services via HTTP streaming
28
+
29
+ ### Configuration Scope
30
+
31
+ - **user**: Global user configuration, applied to all projects
32
+ - **project**: Project-level configuration, applied to specific projects
33
+ - **local**: Local configuration, applied only to the current session or workspace
34
+
35
+ For services with the same name (i.e., configurations with the same name across multiple scopes), the effective priority is: `local > project > user`
36
+
37
+ ### Security Approval Mechanism
38
+
39
+ MCP servers in the project scope require user approval upon first connection to ensure security. The system displays detailed server information, and users can choose to approve or deny the connection.
40
+
41
+ #### Approval in Non-Interactive Mode (-p/--print)
42
+
43
+ In non-interactive mode (such as when using the `-p/--print` parameter), since approval cannot be done through the UI, you need to pre-configure allowed MCP servers using the `--settings` parameter:
44
+
45
+ ```bash
46
+ # Method 1: Allow all project MCP servers
47
+ codebuddy --settings '{"enableAllProjectMcpServers": true}' -p "your prompt"
48
+
49
+ # Method 2: Allow specific MCP servers
50
+ codebuddy --settings '{"enabledMcpjsonServers": ["server-name-1", "server-name-2"]}' -p "your prompt"
51
+ ```
52
+
53
+ ### Tool Permission Management
54
+
55
+ MCP tools support a complete permission management system that allows precise control over which tools can be used:
56
+
57
+ #### Permission Rule Types
58
+
59
+ The permission system supports three rule types (ordered by priority):
60
+
61
+ 1. **Deny rules (deny)** - Block the use of specified tools (highest priority)
62
+ 2. **Ask rules (ask)** - Require user confirmation before using tools (overrides allow rules)
63
+ 3. **Allow rules (allow)** - Allow tool use without manual approval
64
+
65
+ #### MCP Permission Rule Format
66
+
67
+ **Important**: MCP permissions do not support wildcards (*)
68
+
69
+ ##### Server-level Permissions
70
+ ```
71
+ mcp__server-name
72
+ ```
73
+ - Matches any tool provided by the specified server
74
+ - Server name is the name configured in CodeBuddy
75
+
76
+ ##### Tool-level Permissions
77
+ ```
78
+ mcp__server-name__tool-name
79
+ ```
80
+ - Matches a specific tool from the specified server
81
+
82
+ #### Configuration Examples
83
+
84
+ ##### Approve All Tools from a Server
85
+ ```json
86
+ {
87
+ "permissions": {
88
+ "allow": [
89
+ "mcp__github"
90
+ ]
91
+ }
92
+ }
93
+ ```
94
+
95
+ ##### Approve Only Specific Tools
96
+ ```json
97
+ {
98
+ "permissions": {
99
+ "allow": [
100
+ "mcp__github__get_issue",
101
+ "mcp__github__list_issues"
102
+ ]
103
+ }
104
+ }
105
+ ```
106
+
107
+ ##### Deny Specific Tools
108
+ ```json
109
+ {
110
+ "permissions": {
111
+ "deny": [
112
+ "mcp__dangerous_server__delete_file"
113
+ ]
114
+ }
115
+ }
116
+ ```
117
+
118
+ ## Configuration Files
119
+
120
+ ### Configuration File Locations
121
+
122
+ Configuration files use a priority mechanism. The system searches for files in priority order and reads the first existing file. When writing, if a file already exists, it writes to the first existing file; if none exist, it creates the highest priority file.
123
+
124
+ #### USER Scope
125
+
126
+ Priority order (highest to lowest):
127
+ 1. `~/.codebuddy/.mcp.json` (recommended)
128
+ 2. `~/.codebuddy/mcp.json` (deprecated)
129
+ 3. `~/.codebuddy.json` (legacy configuration file)
130
+
131
+ **Read rules**: The system searches in the above order and reads the first existing file.
132
+
133
+ **Write rules**:
134
+ - If any of the above files exist, writes to the first existing file
135
+ - If none exist, creates `~/.codebuddy/.mcp.json` (highest priority)
136
+
137
+ #### PROJECT Scope
138
+
139
+ Priority order (highest to lowest):
140
+ 1. `<project root directory>/.mcp.json` (recommended)
141
+ 2. `<project root directory>/mcp.json` (deprecated)
142
+
143
+ **Read rules**: The system searches in the above order and reads the first existing file.
144
+
145
+ **Write rules**:
146
+ - If any of the above files exist, writes to the first existing file
147
+ - If none exist, creates `<project root directory>/.mcp.json` (highest priority)
148
+
149
+ #### LOCAL Scope
150
+
151
+ Local scope configuration is actually saved in the user scope configuration file, differentiated by project through the `projects` field.
152
+
153
+ File path: `~/.codebuddy.json#/projects/<workspace_path>`
154
+
155
+ `#/projects/<workspace_path>` uses JSON Pointer syntax to point to a specific location in the JSON document. For detailed information about JSON Pointer, please refer to: https://datatracker.ietf.org/doc/html/rfc6901
156
+
157
+ **Note**:
158
+ - The system does not merge multiple configuration files within the same scope; it only uses the first existing file
159
+
160
+ See the configuration file format section below for examples.
161
+
162
+ ### Configuration File Format
163
+
164
+ MCP configuration files support the **JSONC (JSON with Comments)** format, allowing comments to be added to configurations for improved readability and maintainability.
165
+
166
+ #### JSONC Supported Features
167
+
168
+ - **Single-line comments**: Use `//` to add inline or end-of-line comments
169
+ - **Multi-line comments**: Use `/* */` to add block comments
170
+ - **Trailing commas**: A comma can be added after the last element in arrays and objects
171
+
172
+ #### Basic Configuration Format
173
+
174
+ ```jsonc
175
+ {
176
+ // MCP server configuration
177
+ "mcpServers": {
178
+ "server-name": {
179
+ "type": "stdio|sse|http",
180
+ "command": "command path",
181
+ "args": ["arg1", "arg2"],
182
+ "env": {
183
+ "ENV_VAR": "value"
184
+ },
185
+ "url": "http://example.com/mcp",
186
+ "headers": {
187
+ "Authorization": "Bearer token"
188
+ },
189
+ "description": "Server description"
190
+ }
191
+ },
192
+ // The projects field is only valid in the user scope file and identifies local scope configurations
193
+ "projects": {
194
+ "/path/to/project": {
195
+ "mcpServers": {
196
+ "local-server": {
197
+ "type": "stdio",
198
+ "command": "./local-tool"
199
+ }
200
+ }
201
+ }
202
+ }
203
+ }
204
+ ```
205
+
206
+ #### Full Example with Comments
207
+
208
+ ```jsonc
209
+ {
210
+ // MCP Server Configuration for CodeBuddy
211
+ // This file configures the MCP servers used by the project
212
+
213
+ "mcpServers": {
214
+ /*
215
+ * Filesystem Server
216
+ * Provides file system access capabilities
217
+ * Docs: https://github.com/modelcontextprotocol/servers
218
+ */
219
+ "filesystem": {
220
+ "type": "stdio",
221
+ "command": "npx",
222
+ "args": [
223
+ "-y",
224
+ "@modelcontextprotocol/server-filesystem",
225
+ "/path/to/workspace", // Workspace directory path
226
+ ],
227
+ "env": {
228
+ "DEBUG": "true", // Enable debug mode
229
+ },
230
+ },
231
+
232
+ // HTTP API server example
233
+ "api-server": {
234
+ "type": "http",
235
+ "url": "http://localhost:3000/mcp", // Local development server
236
+ "headers": {
237
+ "Authorization": "Bearer your-token",
238
+ },
239
+ },
240
+ },
241
+
242
+ // Disabled servers list (for reference)
243
+ "disabledMcpServers": [
244
+ "deprecated-server",
245
+ ],
246
+ }
247
+ ```
248
+
249
+ **Note**:
250
+ - Standard JSON format files are still fully compatible
251
+ - Clear error messages are provided when parsing errors occur
252
+ ```
253
+
254
+ **Note**: The `type` field is optional. If not specified, the system will automatically infer based on the configuration content:
255
+ - When the `command` field is present, infers `stdio` type
256
+ - When the `url` field is present, infers `http` type
257
+
258
+ It is recommended to explicitly specify the `type` field to ensure configuration accuracy.
259
+
260
+ ### Environment Variable Expansion
261
+
262
+ MCP configuration supports environment variable expansion, allowing you to reference system environment variables in your configuration. This is useful for sharing configurations across teams, managing sensitive information (such as API keys and tokens), and supporting environment-specific configurations (development, testing, production).
263
+
264
+ #### Supported Syntax
265
+
266
+ - **`${VAR_NAME}`** - Expands to the value of the environment variable VAR_NAME
267
+ - **`${VAR_NAME:-default_value}`** - Uses the default value if VAR_NAME is not set
268
+
269
+ #### Variable Naming Rules
270
+
271
+ - Variable names must start with an uppercase letter or underscore `[A-Z_]`
272
+ - Subsequent characters can only be uppercase letters, digits, or underscores `[A-Z0-9_]*`
273
+ - Variables with lowercase letters, mixed case, or starting with a digit will not be expanded
274
+
275
+ #### Supported Configuration Fields
276
+
277
+ Environment variables can be expanded in the following configuration fields:
278
+
279
+ **STDIO type configuration**:
280
+ - `command` - Executable file path or command
281
+ - `args` - Each argument in the command line arguments list
282
+ - `env` - Environment variable values (keys are not expanded)
283
+
284
+ **SSE/HTTP/Remote type configuration**:
285
+ - `url` - Service endpoint URL
286
+ - `headers` - HTTP request header values (keys are not expanded)
287
+
288
+ #### Error Handling
289
+
290
+ **Behavior when an environment variable is not set**:
291
+ - If the environment variable is not set and **has a default value**, the default value is used
292
+ - If the environment variable is not set and **has no default value**, the original placeholder (`${VAR}`) is preserved, and a WARNING message is reported in diagnostics
293
+
294
+ This means the configuration will not fail due to missing environment variables; instead, it preserves the placeholder and issues a warning.
295
+
296
+ #### Example Configurations
297
+
298
+ **Example 1: STDIO type server with environment variables**
299
+ ```json
300
+ {
301
+ "mcpServers": {
302
+ "python-tools": {
303
+ "type": "stdio",
304
+ "command": "${PYTHON_PATH:-python}",
305
+ "args": [
306
+ "-m",
307
+ "my_mcp_server",
308
+ "--config",
309
+ "${CONFIG_DIR:-/etc/config}"
310
+ ],
311
+ "env": {
312
+ "PYTHONPATH": "${PYTHON_LIB_PATH}",
313
+ "DEBUG": "${DEBUG_MODE:-false}",
314
+ "API_KEY": "${API_KEY}"
315
+ }
316
+ }
317
+ }
318
+ }
319
+ ```
320
+
321
+ **Example 2: HTTP type server with environment variables and default values**
322
+ ```json
323
+ {
324
+ "mcpServers": {
325
+ "api-server": {
326
+ "type": "http",
327
+ "url": "${API_BASE_URL:-https://api.example.com}/mcp",
328
+ "headers": {
329
+ "Authorization": "Bearer ${API_TOKEN}",
330
+ "X-API-Version": "${API_VERSION:-v1}",
331
+ "User-Agent": "CodeBuddy/${CODEBUDDY_VERSION:-1.0}"
332
+ }
333
+ }
334
+ }
335
+ }
336
+ ```
337
+
338
+ #### Common Use Cases
339
+
340
+ 1. **Team shared configuration**
341
+ ```bash
342
+ # Use environment variables in .mcp.json
343
+ # Each team member sets environment variables locally
344
+ export API_TOKEN="their-personal-token"
345
+ export LOCAL_TOOL_PATH="/home/user/tools"
346
+ ```
347
+
348
+ 2. **Environment-specific configuration**
349
+ ```bash
350
+ # Development environment
351
+ export API_BASE_URL="http://localhost:3000"
352
+
353
+ # Production environment
354
+ export API_BASE_URL="https://api.production.com"
355
+ ```
356
+
357
+ 3. **Managing sensitive information**
358
+ ```json
359
+ {
360
+ "headers": {
361
+ "Authorization": "Bearer ${MY_API_KEY}"
362
+ }
363
+ }
364
+ ```
365
+ Store API keys in environment variables instead of writing them directly in configuration files.
366
+
367
+ #### Diagnostics and Debugging
368
+
369
+ When environment variables are expanded in configuration, you can understand the expansion results through the following methods:
370
+
371
+ 1. If an environment variable is not set and has no default value, the system will issue a WARNING diagnostic
372
+ 2. You can use the `/mcp` command to view MCP server configuration and diagnostic information
373
+ 3. Diagnostic messages will list all missing environment variables
374
+
375
+ **Example diagnostic message**:
376
+ ```
377
+ Missing environment variables: API_TOKEN, DATABASE_URL
378
+ ```
379
+
380
+ ### Configuration Structure Details
381
+
382
+ Depending on the transport type, MCP server configurations have different structures:
383
+
384
+ #### STDIO Type Configuration
385
+
386
+ Communication with local processes via standard input/output.
387
+
388
+ | Field | Type | Required | Description |
389
+ |------|------|------|------|
390
+ | `type` | string | Yes | Fixed value `"stdio"` |
391
+ | `command` | string | Yes | Executable file path or command |
392
+ | `args` | Array&lt;string&gt; | No | Command line arguments list |
393
+ | `env` | Object | No | Environment variable key-value pairs |
394
+ | `defer_loading` | boolean | No | Whether to defer tool loading (default false) |
395
+ | `tools` | Object | No | Tool-level configuration, can override server-level settings |
396
+
397
+ **Example**:
398
+ ```json
399
+ {
400
+ "type": "stdio",
401
+ "command": "python",
402
+ "args": ["-m", "my_mcp_server"],
403
+ "env": {
404
+ "PYTHONPATH": "/path/to/tools",
405
+ "DEBUG": "true"
406
+ }
407
+ }
408
+ ```
409
+
410
+ #### SSE Type Configuration
411
+
412
+ Communication with remote services via Server-Sent Events.
413
+
414
+ | Field | Type | Required | Description |
415
+ |------|------|------|------|
416
+ | `type` | string | Yes | Fixed value `"sse"` |
417
+ | `url` | string | Yes | SSE service endpoint URL |
418
+ | `headers` | Object | No | HTTP request header key-value pairs |
419
+ | `defer_loading` | boolean | No | Whether to defer tool loading (default false) |
420
+ | `tools` | Object | No | Tool-level configuration, can override server-level settings |
421
+
422
+ **Example**:
423
+ ```json
424
+ {
425
+ "type": "sse",
426
+ "url": "https://api.example.com/mcp/sse",
427
+ "headers": {
428
+ "Authorization": "Bearer your-api-token",
429
+ "X-API-Version": "v1"
430
+ }
431
+ }
432
+ ```
433
+
434
+ #### HTTP Type Configuration
435
+
436
+ Communication with remote services via HTTP streaming.
437
+
438
+ | Field | Type | Required | Description |
439
+ |------|------|------|------|
440
+ | `type` | string | Yes | Fixed value `"http"` |
441
+ | `url` | string | Yes | HTTP service endpoint URL |
442
+ | `headers` | Object | No | HTTP request header key-value pairs |
443
+ | `defer_loading` | boolean | No | Whether to defer tool loading (default false) |
444
+ | `tools` | Object | No | Tool-level configuration, can override server-level settings |
445
+
446
+ **Example**:
447
+ ```json
448
+ {
449
+ "type": "http",
450
+ "url": "https://mcp.example.com/api/v1",
451
+ "headers": {
452
+ "Authorization": "Bearer secret-token",
453
+ "Content-Type": "application/json"
454
+ }
455
+ }
456
+ ```
457
+
458
+ ### Deferred Loading (defer_loading)
459
+
460
+ When an MCP server provides a large number of tools, you can use the `defer_loading` configuration to defer tool loading, reducing context consumption and improving model tool selection accuracy.
461
+
462
+ #### How It Works
463
+
464
+ - Tools with `defer_loading: true` are not loaded into the model context during the initial request
465
+ - The model can search for these deferred tools through the `ToolSearch` tool
466
+ - Searched tools are activated and become available in subsequent requests
467
+ - The activation state persists throughout the current session
468
+
469
+ #### Server-level Configuration
470
+
471
+ Set all tools on a server to deferred loading:
472
+
473
+ ```json
474
+ {
475
+ "mcpServers": {
476
+ "my-server": {
477
+ "type": "stdio",
478
+ "command": "my-mcp-server",
479
+ "defer_loading": true
480
+ }
481
+ }
482
+ }
483
+ ```
484
+
485
+ #### Tool-level Configuration
486
+
487
+ You can override the server-level setting for individual tools:
488
+
489
+ ```json
490
+ {
491
+ "mcpServers": {
492
+ "my-server": {
493
+ "type": "stdio",
494
+ "command": "my-mcp-server",
495
+ "defer_loading": true,
496
+ "tools": {
497
+ "frequently_used_tool": {
498
+ "defer_loading": false
499
+ }
500
+ }
501
+ }
502
+ }
503
+ }
504
+ ```
505
+
506
+ #### Inheritance Rules
507
+
508
+ | Server defer_loading | Tool defer_loading | Final Result |
509
+ |---------------------|-------------------|---------|
510
+ | true | Not set | true (inherited) |
511
+ | true | false | false (overridden) |
512
+ | false/Not set | Not set | false |
513
+ | false/Not set | true | true (overridden) |
514
+
515
+ #### Use Cases
516
+
517
+ - **Large number of tools**: When an MCP server provides more than 30 tools
518
+ - **Cost reduction**: Reduce token consumption per request
519
+ - **Improved accuracy**: Allow the model to make more accurate selections among fewer tools
520
+
521
+ ## Command Line Usage
522
+
523
+ ### Add MCP Server
524
+
525
+ #### STDIO Server
526
+
527
+ ```bash
528
+ # Add a local executable
529
+ codebuddy mcp add --scope user my-tool -- /path/to/tool arg1 arg2
530
+
531
+ # Add a Python script
532
+ codebuddy mcp add --scope project python-tool -- python /path/to/script.py
533
+ ```
534
+
535
+ #### SSE Server
536
+
537
+ ```bash
538
+ # Add an SSE server
539
+ codebuddy mcp add --scope user --transport sse sse-server https://example.com/mcp/sse
540
+ ```
541
+
542
+ #### HTTP Server
543
+
544
+ ```bash
545
+ # Add an HTTP streaming server
546
+ codebuddy mcp add --scope project --transport http http-server https://example.com/mcp/http
547
+ ```
548
+
549
+ ### Add Server Using JSON Configuration
550
+
551
+ ```bash
552
+ # Add STDIO type server
553
+ codebuddy mcp add-json --scope user my-server '{"type":"stdio","command":"/usr/local/bin/tool","args":["--verbose"]}'
554
+
555
+ # Add HTTP type server
556
+ codebuddy mcp add-json --scope user http-server '{"type":"http","url":"https://example.com/mcp","headers":{"Authorization":"Bearer token"}}'
557
+
558
+ # Add SSE type server
559
+ codebuddy mcp add-json --scope project sse-server '{"type":"sse","url":"https://api.example.com/mcp/sse","headers":{"X-API-Key":"your-api-key"}}'
560
+
561
+ # Add STDIO server with environment variables
562
+ codebuddy mcp add-json --scope user python-tool '{"type":"stdio","command":"python","args":["-m","my_mcp_server"],"env":{"PYTHONPATH":"/path/to/tools"}}'
563
+ ```
564
+
565
+ ### Manage MCP Servers
566
+
567
+ #### List All Servers
568
+
569
+ ```bash
570
+ # List servers for all scopes
571
+ codebuddy mcp list
572
+ ```
573
+
574
+ #### View Server Details
575
+
576
+ ```bash
577
+ # View specific server information
578
+ codebuddy mcp get my-server
579
+ ```
580
+
581
+ #### Remove Server
582
+
583
+ ```bash
584
+ # Remove a specific server
585
+ codebuddy mcp remove my-server
586
+
587
+ # Remove a server from a specific scope
588
+ codebuddy mcp remove my-server --scope user
589
+ ```
590
+
591
+ ## Best Practices
592
+
593
+ ### 1. Scope Selection
594
+
595
+ - Use **user** scope to store personal tools and global services
596
+ - Use **project** scope to store project-specific tools
597
+ - Use **local** scope to store temporary or experimental tools
598
+
599
+ ### 2. Security Considerations
600
+
601
+ - Avoid storing sensitive information in configuration files
602
+ - **Use environment variables to pass authentication information**: Leverage MCP's environment variable expansion feature (`${API_TOKEN}` or `${API_TOKEN:-default}`) to manage sensitive data such as API keys and tokens
603
+ - Regularly review and update server configurations
604
+ - MCP servers in the project scope require user approval before connecting, ensuring security
605
+ - OAuth authorization URLs are validated for security before opening, only supporting http/https protocols
606
+ - Commit configuration files containing environment variable references to version control, but exclude actual environment variable files in `.gitignore`
607
+
608
+ ### 3. Performance Optimization
609
+
610
+ - Properly configure server timeout durations
611
+ - Avoid running too many STDIO servers simultaneously
612
+ - Use caching mechanisms to reduce redundant connections
613
+
614
+ ### 4. Error Handling
615
+
616
+ - Monitor server connection status
617
+ - Implement reconnection mechanisms
618
+ - Log and analyze error logs
619
+
620
+ ## Troubleshooting
621
+
622
+ ### Common Issues
623
+
624
+ #### Server Connection Failure
625
+
626
+ 1. Check if the command path is correct
627
+ 2. Verify parameters and environment variables
628
+ 3. Confirm network connectivity (for remote servers)
629
+ 4. Review server log output
630
+
631
+ #### Tool Unavailable
632
+
633
+ 1. Confirm that the server has successfully connected
634
+ 2. Check tool permission settings
635
+ 3. Verify tool compatibility
636
+
637
+ #### Configuration Not Taking Effect
638
+
639
+ 1. Check configuration file syntax
640
+ 2. Confirm scope priority
641
+ 3. Restart the CodeBuddy application
642
+
643
+ ## Example Configurations
644
+
645
+ ### Python Tool Server
646
+
647
+ ```json
648
+ {
649
+ "mcpServers": {
650
+ "python-tools": {
651
+ "type": "stdio",
652
+ "command": "python",
653
+ "args": ["-m", "my_mcp_server"],
654
+ "env": {
655
+ "PYTHONPATH": "/path/to/tools"
656
+ },
657
+ "description": "Python toolset"
658
+ }
659
+ }
660
+ }
661
+ ```
662
+
663
+ ### Remote API Server
664
+
665
+ ```json
666
+ {
667
+ "mcpServers": {
668
+ "api-server": {
669
+ "type": "sse",
670
+ "url": "https://api.example.com/mcp/sse",
671
+ "headers": {
672
+ "Authorization": "Bearer your-token",
673
+ "X-API-Version": "v1"
674
+ },
675
+ "description": "Remote API service"
676
+ }
677
+ }
678
+ }
679
+ ```
680
+
681
+ ### Node.js Local Server
682
+
683
+ ```json
684
+ {
685
+ "mcpServers": {
686
+ "node-server": {
687
+ "type": "stdio",
688
+ "command": "node",
689
+ "args": ["./mcp-server.js"],
690
+ "env": {
691
+ "NODE_ENV": "production"
692
+ },
693
+ "description": "Node.js MCP server"
694
+ }
695
+ }
696
+ }
697
+ ```
698
+
699
+ ## Extension Development
700
+
701
+ ### Creating a Custom MCP Server
702
+
703
+ 1. **Choose Implementation Language**: Python, Node.js, Go, etc.
704
+ 2. **Implement MCP Protocol**: Use official SDK or implement yourself
705
+ 3. **Define Tool Interfaces**: Describe tool functionality and parameters
706
+ 4. **Handle Requests**: Receive and process requests from CodeBuddy
707
+ 5. **Return Results**: Return execution results in MCP format
708
+
709
+ ### SDKs and Libraries
710
+
711
+ - **Python**: `FastMCP`
712
+ - **TypeScript/JavaScript**: `@modelcontextprotocol/sdk`
713
+ - **Other Languages**: Refer to official documentation for implementation
714
+
715
+ ## Configuration Examples
716
+
717
+ ### TAPD
718
+
719
+ ```bash
720
+ codebuddy mcp add --scope user --transport http --header "X-Tapd-Access-Token: TAPD_ACCESS_TOKEN" -- tapd_mcp_http https://mcp-oa.tapd.woa.com/mcp
721
+ ```
722
+
723
+ ### Chrome Devtools
724
+
725
+ ```bash
726
+ codebuddy mcp add --scope user chrome-devtools -- npx -y chrome-devtools-mcp@latest
727
+ ```
728
+
729
+ ### iWiki
730
+
731
+ ```bash
732
+ codebuddy mcp add --scope user iwiki -- npx -y mcp-remote@latest https://prod.mcp.it.woa.com/app_iwiki_mcp/mcp3
733
+ ```
734
+
735
+ ## Related Links
736
+
737
+ - [MCP Official Documentation](https://modelcontextprotocol.io/)
738
+ - [MCP GitHub Repository](https://github.com/modelcontextprotocol)
739
+ - [CodeBuddy Official Documentation](https://cnb.cool/codebuddy/codebuddy-code/-/blob/main/docs)