Skip to content

Commit 3fa94d1

Browse files
authored
feat(workflow): add cloudbase cli installation and update trigger keyword (#132)
* feat(vscode): update MCP configuration for VSCode Copilot integration 🔧 * feat(workflow): add cloudbase cli installation and update trigger keyword 🚀
1 parent 4d7303c commit 3fa94d1

5 files changed

Lines changed: 41 additions & 5 deletions

File tree

.claude/settings.local.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"enabledMcpjsonServers": [
3+
"cloudbase-mcp"
4+
],
5+
"enableAllProjectMcpServers": true
6+
}

.github/workflows/ai-dev.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ on:
1313
jobs:
1414
claude:
1515
if: |
16-
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
17-
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
18-
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
19-
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
16+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@tcb-ai')) ||
17+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@tcb-ai')) ||
18+
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@tcb-ai')) ||
19+
(github.event_name == 'issues' && (contains(github.event.issue.body, '@tcb-ai') || contains(github.event.issue.title, '@tcb-ai')))
2020
runs-on: ubuntu-latest
2121
permissions:
2222
contents: read
@@ -28,6 +28,12 @@ jobs:
2828
uses: actions/checkout@v4
2929
with:
3030
fetch-depth: 1
31+
- name: Setup Node.js
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: '18'
35+
- name: Install @cloudbase/cli
36+
run: npm install -g @cloudbase/cli
3137
- name: Run Claude Code
3238
id: claude
3339
uses: anthropics/claude-code-action@beta

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
**/dist
22
**/node_modules
33
**/.env
4-
**/*.dxt
4+
**/*.dxt
5+
# Environment variables
6+
.env.local

.mcp.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"mcpServers": {
3+
"cloudbase-mcp": {
4+
"command": "cloudbase-mcp"
5+
}
6+
}
7+
}

cloudbaserc.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"envId": "{{env.ENV_ID}}",
3+
"functionRoot": "./functions",
4+
"functions": [],
5+
"ai": {
6+
"defaultAgent": "{{env.AI_DEFAULT_AGENT}}",
7+
"agents": {
8+
"claude": {
9+
"type": "custom",
10+
"baseUrl": "{{env.AI_CLAUDE_BASE_URL}}",
11+
"apiKey": "{{env.AI_CLAUDE_API_KEY}}"
12+
}
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)