Skip to content

Commit 097a33c

Browse files
style: update style for mcp server (#8338)
1 parent 3be3bf9 commit 097a33c

12 files changed

Lines changed: 34 additions & 14 deletions

File tree

backend/app/service/mcp_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func (m McpServerService) GetBindDomain() (response.McpBindDomainRes, error) {
238238
}
239239
website, err := websiteRepo.GetFirst(commonRepo.WithByID(websiteID))
240240
if err != nil {
241-
return res, err
241+
return res, nil
242242
}
243243
res.WebsiteID = website.ID
244244
res.Domain = website.PrimaryDomain

backend/app/service/website.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ func (w WebsiteService) DeleteWebsite(req request.WebsiteDelete) error {
498498
}
499499
websiteID := GetWebsiteID()
500500
if req.ID == websiteID {
501-
_ = settingRepo.UpdateOrCreate("MCP_WEBSITE_ID", "0")
501+
_ = settingRepo.Update("MCP_WEBSITE_ID", "0")
502502
}
503503
tx.Commit()
504504

frontend/src/api/interface/ai.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ export namespace AI {
135135
volumes: Volume[];
136136
dir?: string;
137137
hostIP: string;
138+
protocol: string;
139+
url: string;
138140
}
139141

140142
export interface McpServerSearch extends ReqPage {

frontend/src/lang/modules/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2609,7 +2609,7 @@ const message = {
26092609
edit: 'Edit MCP Server',
26102610
commandHelper: 'For example: npx -y {0}',
26112611
baseUrl: 'External Access Path',
2612-
baseUrlHelper: 'For example: https://127.0.0.1:8080',
2612+
baseUrlHelper: 'For example: http://192.168.1.2:8000',
26132613
ssePath: 'SSE Path',
26142614
ssePathHelper: 'For example: /sse, note not to duplicate with other servers',
26152615
environment: 'Environment Variables',

frontend/src/lang/modules/ja.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2579,7 +2579,7 @@ const message = {
25792579
edit: 'サーバーを編集',
25802580
commandHelper: '例: npx -y {0}',
25812581
baseUrl: '外部アクセスパス',
2582-
baseUrlHelper: '例: https://127.0.0.1:8080',
2582+
baseUrlHelper: '例: http://192.168.1.2:8000',
25832583
ssePath: 'SSE パス',
25842584
ssePathHelper: '例: /sse, 他のサーバーと重複しないように注意してください',
25852585
environment: '環境変数',

frontend/src/lang/modules/ko.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2538,7 +2538,7 @@ const message = {
25382538
edit: 'サーバーを編集',
25392539
commandHelper: '例: npx -y {0}',
25402540
baseUrl: '外部アクセスパス',
2541-
baseUrlHelper: '例: https://127.0.0.1:8080',
2541+
baseUrlHelper: '例: http://192.168.1.2:8000',
25422542
ssePath: 'SSE パス',
25432543
ssePathHelper: '例: /sse, 他のサーバーと重複しないように注意してください',
25442544
environment: '環境変数',

frontend/src/lang/modules/ms.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2637,7 +2637,7 @@ const message = {
26372637
edit: 'Edit Pelayan',
26382638
commandHelper: 'Contoh: npx -y {0}',
26392639
baseUrl: 'Laluan Akses Luar',
2640-
baseUrlHelper: 'Contoh: https://127.0.0.1:8080',
2640+
baseUrlHelper: 'Contoh: http://192.168.1.2:8000',
26412641
ssePath: 'Laluan SSE',
26422642
ssePathHelper: 'Contoh: /sse, berhati-hati jangan bertindan dengan pelayan lain',
26432643
environment: 'Pemboleh Ubah Persekitaran',

frontend/src/lang/modules/pt-br.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2635,7 +2635,7 @@ const message = {
26352635
edit: 'Editar Servidor',
26362636
commandHelper: 'Por exemplo: npx -y {0}',
26372637
baseUrl: 'Caminho de Acesso Externo',
2638-
baseUrlHelper: 'Por exemplo: https://127.0.0.1:8080',
2638+
baseUrlHelper: 'Por exemplo: http://192.168.1.2:8000',
26392639
ssePath: 'Caminho SSE',
26402640
ssePathHelper: 'Por exemplo: /sse, tome cuidado para não duplicar com outros servidores',
26412641
environment: 'Variáveis de Ambiente',

frontend/src/lang/modules/ru.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2631,7 +2631,7 @@ const message = {
26312631
edit: 'Редактировать сервер',
26322632
commandHelper: 'Например: npx -y {0}',
26332633
baseUrl: 'Внешний путь доступа',
2634-
baseUrlHelper: 'Например: https://127.0.0.1:8080',
2634+
baseUrlHelper: 'Например: http://192.168.1.2:8000',
26352635
ssePath: 'Путь SSE',
26362636
ssePathHelper: 'Например: /sse, будьте осторожны, чтобы не дублировать с другими серверами',
26372637
environment: 'Переменные среды',

frontend/src/lang/modules/tw.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2444,7 +2444,7 @@ const message = {
24442444
edit: '編輯 MCP Server',
24452445
commandHelper: '例如:npx -y {0}',
24462446
baseUrl: '外部訪問路徑',
2447-
baseUrlHelper: '例如:https://127.0.0.1:8080',
2447+
baseUrlHelper: '例如:http://192.168.1.2:8000',
24482448
ssePath: 'SSE 路徑',
24492449
ssePathHelper: '例如:/sse,注意不要與其他 Server 重複',
24502450
environment: '環境變數',

0 commit comments

Comments
 (0)