Skip to content

Commit 63f070b

Browse files
authored
feat(interactive): enhance interactive server functionality (#141)
* refactor(interactive): remove empty state icon for cleaner design 🎨 * feat(interactive): enhance interactive server functionality 🚀
1 parent c4e11b3 commit 63f070b

5 files changed

Lines changed: 12 additions & 7 deletions

File tree

config/.cursor/rules/cloudbase-rules.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
cloudbaseAIVersion:1.8.30
2+
cloudbaseAIVersion:1.8.31
33
---
44
description: CloudBase AI 开发规则指南 - 提供场景化的最佳实践,确保开发质量
55
globs: *

mcp/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mcp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cloudbase/cloudbase-mcp",
3-
"version": "1.8.30",
3+
"version": "1.8.31",
44
"description": "腾讯云开发 MCP Server,通过AI提示词和MCP协议+云开发,让开发更智能、更高效,当你在Cursor/ VSCode GitHub Copilot/WinSurf/CodeBuddy/Augment Code/Claude Code等AI编程工具里写代码时,它能自动帮你生成可直接部署的前后端应用+小程序,并一键发布到腾讯云开发 CloudBase。",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.js",

mcp/src/auth.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,14 @@ export async function getLoginState() {
1313
debug('TENCENTCLOUD_SECRETID',TENCENTCLOUD_SECRETID)
1414
if (TENCENTCLOUD_SECRETID && TENCENTCLOUD_SECRETKEY) {
1515
debug('loginByApiSecret')
16-
await auth.loginByApiSecret(TENCENTCLOUD_SECRETID, TENCENTCLOUD_SECRETKEY, TENCENTCLOUD_SESSIONTOKEN)
16+
return {
17+
secretId: TENCENTCLOUD_SECRETID,
18+
secretKey: TENCENTCLOUD_SECRETKEY,
19+
token: TENCENTCLOUD_SESSIONTOKEN
20+
}
21+
// await auth.loginByApiSecret(TENCENTCLOUD_SECRETID, TENCENTCLOUD_SECRETKEY, TENCENTCLOUD_SESSIONTOKEN)
1722
}
23+
1824
const loginState = await auth.getLoginState()
1925
if (!loginState) {
2026
debug('loginByApiSecret')

mcp/src/interactive-server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,8 +1102,7 @@ export class InteractiveServer {
11021102
function createNewEnv() {
11031103
const integrationIde = '${process.env.INTEGRATION_IDE || "AI Toolkit"}';
11041104
const url = \`http://tcb.cloud.tencent.com/dev?from=\${encodeURIComponent(integrationIde)}\`;
1105-
console.log('🚀 打开新建环境页面:', url);
1106-
window.open(url, '_blank');
1105+
location.href = url;
11071106
}
11081107
11091108
function cancel() {

0 commit comments

Comments
 (0)