@tencent-ai/codebuddy-code 2.67.0 → 2.68.0-next.19b562c.20260330
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.
- package/CHANGELOG.md +26 -0
- package/dist/codebuddy-headless.js +58 -58
- package/dist/codebuddy.js +120 -79
- package/dist/web-ui/assets/{index-BPT-qRRx.js → index-Cl0stqCM.js} +145 -116
- package/dist/web-ui/assets/index-Dt1puyHn.css +32 -0
- package/dist/web-ui/docs/cn/cli/acp.md +152 -0
- package/dist/web-ui/docs/cn/cli/agent-teams.md +327 -0
- package/dist/web-ui/docs/cn/cli/bash-sandboxing.md +290 -0
- package/dist/web-ui/docs/cn/cli/best-practices.md +554 -0
- package/dist/web-ui/docs/cn/cli/channels-reference.md +293 -0
- package/dist/web-ui/docs/cn/cli/channels.md +215 -0
- package/dist/web-ui/docs/cn/cli/checkpointing.md +51 -0
- package/dist/web-ui/docs/cn/cli/cli-reference.md +187 -0
- package/dist/web-ui/docs/cn/cli/common-workflows.md +1013 -0
- package/dist/web-ui/docs/cn/cli/costs.md +174 -0
- package/dist/web-ui/docs/cn/cli/devcontainer.md +553 -0
- package/dist/web-ui/docs/cn/cli/env-vars.md +326 -0
- package/dist/web-ui/docs/cn/cli/gitlab-ci-cd.md +357 -0
- package/dist/web-ui/docs/cn/cli/headless.md +258 -0
- package/dist/web-ui/docs/cn/cli/hooks-guide.md +9 -0
- package/dist/web-ui/docs/cn/cli/hooks.md +805 -0
- package/dist/web-ui/docs/cn/cli/iam.md +530 -0
- package/dist/web-ui/docs/cn/cli/ide-integrations.md +92 -0
- package/dist/web-ui/docs/cn/cli/installation.md +291 -0
- package/dist/web-ui/docs/cn/cli/interactive-mode.md +233 -0
- package/dist/web-ui/docs/cn/cli/mcp.md +739 -0
- package/dist/web-ui/docs/cn/cli/memory.md +436 -0
- package/dist/web-ui/docs/cn/cli/models.md +356 -0
- package/dist/web-ui/docs/cn/cli/overview.md +100 -0
- package/dist/web-ui/docs/cn/cli/plugin-marketplaces.md +533 -0
- package/dist/web-ui/docs/cn/cli/plugins-reference.md +774 -0
- package/dist/web-ui/docs/cn/cli/plugins.md +689 -0
- package/dist/web-ui/docs/cn/cli/quickstart.md +249 -0
- package/dist/web-ui/docs/cn/cli/release-notes/README.md +199 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.10.0.md +23 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.10.1.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.11.0.md +24 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.12.0.md +21 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.13.0.md +20 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.14.0.md +22 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.14.1.md +8 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.15.0.md +18 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.15.1.md +11 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.16.0.md +20 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.17.0.md +29 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.18.0.md +17 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.19.0.md +11 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.19.1.md +14 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.19.2.md +11 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.20.0.md +23 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.20.1.md +15 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.21.0.md +13 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.22.0.md +16 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.23.0.md +20 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.23.2.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.23.3.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.23.4.md +15 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.23.5.md +11 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.24.0.md +17 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.25.0.md +18 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.25.1.md +21 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.26.0.md +18 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.27.0.md +16 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.27.1.md +16 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.27.2.md +7 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.27.3.md +15 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.28.0.md +26 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.28.1.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.29.0.md +35 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.3.1.md +16 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.30.0.md +19 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.30.1.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.31.0.md +51 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.31.1.md +11 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.31.2.md +16 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.32.0.md +19 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.33.0.md +28 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.33.1.md +7 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.36.3.md +17 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.0.md +15 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.1.md +15 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.10.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.11.md +8 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.12.md +14 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.13.md +11 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.14.md +24 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.15.md +11 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.16.md +9 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.17.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.18.md +9 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.19.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.2.md +28 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.20.md +8 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.3.md +22 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.4.md +19 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.5.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.6.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.7.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.8.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.37.9.md +8 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.38.0.md +22 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.38.1.md +6 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.38.2.md +9 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.39.0.md +18 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.4.0.md +19 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.40.0.md +20 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.40.1.md +6 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.41.0.md +15 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.41.1.md +6 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.41.2.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.41.3.md +8 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.41.4.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.41.5.md +10 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.41.6.md +9 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.41.7.md +14 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.41.8.md +18 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.42.0.md +39 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.42.1.md +8 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.42.3.md +18 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.43.0.md +27 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.43.1.md +27 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.44.0.md +11 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.44.1.md +22 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.45.0.md +34 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.45.1.md +7 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.46.0.md +12 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.47.0.md +20 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.48.0.md +32 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.48.1.md +11 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.49.0.md +26 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.49.1.md +14 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.49.2.md +39 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.49.3.md +7 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.49.5.md +11 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.49.6.md +9 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.49.7.md +7 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.5.0.md +24 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.50.0.md +25 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.50.1.md +9 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.50.2.md +11 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.50.3.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.50.4.md +17 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.50.5.md +16 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.50.6.md +15 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.50.7.md +15 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.51.0.md +24 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.51.1.md +17 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.51.2.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.52.0.md +30 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.52.1.md +28 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.52.2.md +12 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.52.3.md +13 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.52.4.md +27 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.52.5.md +21 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.52.6.md +7 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.53.0.md +29 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.54.0.md +26 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.55.0.md +21 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.55.1.md +13 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.56.0.md +20 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.56.1.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.57.0.md +32 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.57.1.md +10 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.58.0.md +34 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.59.0.md +28 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.6.0.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.6.1.md +10 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.60.0.md +20 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.61.0.md +29 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.61.1.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.61.2.md +6 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.61.3.md +13 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.62.0.md +21 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.62.1.md +11 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.63.0.md +19 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.63.1.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.63.2.md +7 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.63.3.md +6 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.63.4.md +8 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.63.5.md +6 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.64.0.md +37 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.64.1.md +6 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.64.2.md +11 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.65.0.md +19 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.65.1.md +11 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.66.0.md +15 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.66.1.md +14 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.66.2.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.67.0.md +33 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.7.0.md +16 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.8.0.md +18 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.8.1.md +17 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.8.2.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.8.3.md +14 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.8.4.md +9 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.8.5.md +5 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.8.6.md +14 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.9.0.md +5 -0
- package/dist/web-ui/docs/cn/cli/remote-control.md +247 -0
- package/dist/web-ui/docs/cn/cli/sandboxing.md +316 -0
- package/dist/web-ui/docs/cn/cli/scheduled-tasks.md +161 -0
- package/dist/web-ui/docs/cn/cli/sdk-custom-tools.md +1195 -0
- package/dist/web-ui/docs/cn/cli/sdk-demos.md +347 -0
- package/dist/web-ui/docs/cn/cli/sdk-hooks.md +803 -0
- package/dist/web-ui/docs/cn/cli/sdk-mcp.md +643 -0
- package/dist/web-ui/docs/cn/cli/sdk-permissions.md +501 -0
- package/dist/web-ui/docs/cn/cli/sdk-python.md +783 -0
- package/dist/web-ui/docs/cn/cli/sdk-sessions.md +332 -0
- package/dist/web-ui/docs/cn/cli/sdk-typescript.md +759 -0
- package/dist/web-ui/docs/cn/cli/sdk.md +1105 -0
- package/dist/web-ui/docs/cn/cli/security.md +387 -0
- package/dist/web-ui/docs/cn/cli/settings.md +602 -0
- package/dist/web-ui/docs/cn/cli/skills.md +448 -0
- package/dist/web-ui/docs/cn/cli/slash-commands.md +397 -0
- package/dist/web-ui/docs/cn/cli/statusline.md +525 -0
- package/dist/web-ui/docs/cn/cli/sub-agents.md +634 -0
- package/dist/web-ui/docs/cn/cli/terminal-config.md +77 -0
- package/dist/web-ui/docs/cn/cli/tools-reference.md +99 -0
- package/dist/web-ui/docs/cn/cli/troubleshooting.md +190 -0
- package/dist/web-ui/docs/cn/cli/web-ui.md +164 -0
- package/dist/web-ui/docs/cn/cli/wecom-bot-setup.md +274 -0
- package/dist/web-ui/docs/cn/cli/worktree.md +660 -0
- package/dist/web-ui/docs/en/cli/acp.md +126 -0
- package/dist/web-ui/docs/en/cli/agent-teams.md +327 -0
- package/dist/web-ui/docs/en/cli/bash-sandboxing.md +357 -0
- package/dist/web-ui/docs/en/cli/best-practices.md +554 -0
- package/dist/web-ui/docs/en/cli/channels-reference.md +293 -0
- package/dist/web-ui/docs/en/cli/channels.md +215 -0
- package/dist/web-ui/docs/en/cli/checkpointing.md +53 -0
- package/dist/web-ui/docs/en/cli/cli-reference.md +187 -0
- package/dist/web-ui/docs/en/cli/common-workflows.md +1011 -0
- package/dist/web-ui/docs/en/cli/costs.md +174 -0
- package/dist/web-ui/docs/en/cli/devcontainer.md +553 -0
- package/dist/web-ui/docs/en/cli/env-vars.md +326 -0
- package/dist/web-ui/docs/en/cli/gitlab-ci-cd.md +357 -0
- package/dist/web-ui/docs/en/cli/headless.md +258 -0
- package/dist/web-ui/docs/en/cli/hooks-guide.md +9 -0
- package/dist/web-ui/docs/en/cli/hooks.md +801 -0
- package/dist/web-ui/docs/en/cli/iam.md +526 -0
- package/dist/web-ui/docs/en/cli/ide-integrations.md +92 -0
- package/dist/web-ui/docs/en/cli/installation.md +266 -0
- package/dist/web-ui/docs/en/cli/interactive-mode.md +233 -0
- package/dist/web-ui/docs/en/cli/mcp.md +739 -0
- package/dist/web-ui/docs/en/cli/memory.md +436 -0
- package/dist/web-ui/docs/en/cli/models.md +355 -0
- package/dist/web-ui/docs/en/cli/overview.md +100 -0
- package/dist/web-ui/docs/en/cli/plugin-marketplaces.md +534 -0
- package/dist/web-ui/docs/en/cli/plugins-reference.md +774 -0
- package/dist/web-ui/docs/en/cli/plugins.md +688 -0
- package/dist/web-ui/docs/en/cli/quickstart.md +249 -0
- package/dist/web-ui/docs/en/cli/release-notes/README.md +193 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.10.0.md +23 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.10.1.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.11.0.md +24 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.12.0.md +21 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.13.0.md +20 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.14.0.md +22 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.14.1.md +8 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.15.0.md +18 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.15.1.md +11 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.16.0.md +20 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.17.0.md +29 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.18.0.md +17 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.19.0.md +11 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.19.1.md +14 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.19.2.md +11 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.20.0.md +23 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.20.1.md +15 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.21.0.md +13 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.22.0.md +16 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.23.0.md +41 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.23.2.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.23.3.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.23.4.md +15 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.23.5.md +11 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.24.0.md +17 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.25.0.md +18 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.25.1.md +21 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.26.0.md +18 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.27.0.md +16 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.27.1.md +16 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.27.2.md +7 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.27.3.md +15 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.28.0.md +26 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.28.1.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.29.0.md +35 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.3.1.md +16 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.30.0.md +19 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.30.1.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.31.0.md +51 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.31.1.md +11 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.31.2.md +16 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.32.0.md +19 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.33.0.md +28 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.33.1.md +7 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.34.0.md +27 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.34.1.md +7 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.35.0.md +22 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.36.0.md +23 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.36.1.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.36.2.md +22 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.36.3.md +17 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.0.md +15 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.1.md +15 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.10.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.11.md +8 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.12.md +14 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.13.md +11 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.14.md +24 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.15.md +11 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.16.md +9 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.17.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.18.md +9 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.19.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.2.md +28 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.20.md +8 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.3.md +22 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.4.md +19 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.5.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.6.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.7.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.8.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.37.9.md +8 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.38.0.md +22 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.38.1.md +6 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.38.2.md +9 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.39.0.md +18 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.4.0.md +19 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.40.0.md +20 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.40.1.md +6 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.41.0.md +15 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.41.1.md +6 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.41.2.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.41.3.md +8 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.41.4.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.41.5.md +10 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.41.6.md +9 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.41.7.md +14 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.41.8.md +18 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.42.0.md +39 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.42.1.md +8 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.42.3.md +18 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.43.0.md +27 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.43.1.md +27 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.44.0.md +11 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.44.1.md +22 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.45.0.md +34 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.45.1.md +7 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.46.0.md +12 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.47.0.md +20 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.48.0.md +32 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.48.1.md +11 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.49.0.md +26 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.49.1.md +14 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.49.2.md +39 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.49.3.md +7 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.49.5.md +11 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.49.6.md +9 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.49.7.md +7 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.5.0.md +24 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.50.0.md +25 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.50.1.md +9 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.50.2.md +11 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.50.3.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.50.4.md +17 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.50.5.md +16 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.50.6.md +15 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.50.7.md +15 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.51.0.md +24 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.51.1.md +17 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.51.2.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.52.0.md +30 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.52.1.md +28 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.52.2.md +12 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.52.3.md +13 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.52.4.md +27 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.52.5.md +21 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.52.6.md +7 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.53.0.md +29 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.54.0.md +26 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.55.0.md +21 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.55.1.md +13 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.56.0.md +20 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.56.1.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.57.0.md +32 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.57.1.md +10 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.58.0.md +34 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.59.0.md +28 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.6.0.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.6.1.md +10 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.60.0.md +20 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.61.0.md +29 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.61.1.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.61.2.md +6 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.61.3.md +13 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.62.0.md +21 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.62.1.md +11 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.63.0.md +19 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.63.1.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.63.2.md +7 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.63.3.md +6 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.63.4.md +8 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.63.5.md +6 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.64.0.md +37 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.64.1.md +6 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.64.2.md +11 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.65.0.md +19 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.65.1.md +11 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.66.0.md +15 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.66.1.md +14 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.66.2.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.67.0.md +33 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.7.0.md +16 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.8.0.md +18 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.8.1.md +17 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.8.2.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.8.3.md +14 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.8.4.md +9 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.8.5.md +5 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.8.6.md +14 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.9.0.md +5 -0
- package/dist/web-ui/docs/en/cli/remote-control.md +247 -0
- package/dist/web-ui/docs/en/cli/sandboxing.md +316 -0
- package/dist/web-ui/docs/en/cli/scheduled-tasks.md +160 -0
- package/dist/web-ui/docs/en/cli/sdk-custom-tools.md +1131 -0
- package/dist/web-ui/docs/en/cli/sdk-demos.md +347 -0
- package/dist/web-ui/docs/en/cli/sdk-hooks.md +813 -0
- package/dist/web-ui/docs/en/cli/sdk-mcp.md +645 -0
- package/dist/web-ui/docs/en/cli/sdk-permissions.md +461 -0
- package/dist/web-ui/docs/en/cli/sdk-python.md +797 -0
- package/dist/web-ui/docs/en/cli/sdk-sessions.md +340 -0
- package/dist/web-ui/docs/en/cli/sdk-typescript.md +770 -0
- package/dist/web-ui/docs/en/cli/sdk.md +1103 -0
- package/dist/web-ui/docs/en/cli/security.md +388 -0
- package/dist/web-ui/docs/en/cli/settings.md +602 -0
- package/dist/web-ui/docs/en/cli/skills.md +448 -0
- package/dist/web-ui/docs/en/cli/slash-commands.md +397 -0
- package/dist/web-ui/docs/en/cli/statusline.md +525 -0
- package/dist/web-ui/docs/en/cli/sub-agents.md +621 -0
- package/dist/web-ui/docs/en/cli/terminal-config.md +77 -0
- package/dist/web-ui/docs/en/cli/tools-reference.md +99 -0
- package/dist/web-ui/docs/en/cli/troubleshooting.md +190 -0
- package/dist/web-ui/docs/en/cli/web-ui.md +164 -0
- package/dist/web-ui/docs/en/cli/wecom-bot-setup.md +274 -0
- package/dist/web-ui/docs/en/cli/worktree.md +660 -0
- package/dist/web-ui/docs/search-index-en.json +1 -0
- package/dist/web-ui/docs/search-index-zh.json +1 -0
- package/dist/web-ui/docs/sidebar-en.json +1 -0
- package/dist/web-ui/docs/sidebar-zh.json +1 -0
- package/dist/web-ui/index.html +2 -2
- package/package.json +3 -2
- package/product.cloudhosted.json +2 -2
- package/product.internal.json +2 -2
- package/product.ioa.json +2 -2
- package/product.json +3 -3
- package/product.selfhosted.json +2 -2
- 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<string> | 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)
|