Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd76757f

Browse files
committed
Pre-release 0.44.148
1 parente445012 commitd76757f

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

‎Core/Sources/HostApp/ToolsSettings/MCPManualInstallView.swift‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ struct MCPManualInstallView: View {
1010
VStack(spacing:0){
1111
DisclosureSettingsRow(
1212
isExpanded: $isExpanded,
13-
accessibilityLabel:{ $0?"Collapsemanual install section":"Expandmanual install section"},
14-
title:{Text("Manual Install").font(.headline)},
13+
accessibilityLabel:{ $0?"CollapseMCP configuration section":"ExpandMCP configuration section"},
14+
title:{Text("MCP Configuration").font(.headline)},
1515
subtitle:{Text("Add MCP Servers to power AI with tools for files, databases, and external APIs.")},
1616
actions:{
1717
HStack(spacing:8){

‎Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPRegistryURLSheet.swift‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ struct MCPRegistryURLSheet: View {
4242
Button("Cancel", role:.cancel){dismiss()}
4343
Button("Update"){
4444
// Check if URL changed before updating
45+
originalMcpRegistryURL= originalMcpRegistryURL.trimmingCharacters(in:.whitespacesAndNewlines)
4546
if originalMcpRegistryURL!= mcpRegistryURL{
4647
mcpRegistryURL= originalMcpRegistryURL
4748
onURLUpdated?()

‎Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPRegistryURLView.swift‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ struct MCPRegistryURLView: View {
8080
},
8181
onCommit:{
8282
// Update mcpRegistryURL when user presses Enter
83+
tempURLText= tempURLText.trimmingCharacters(in:.whitespacesAndNewlines)
8384
if tempURLText!= mcpRegistryURL{
8485
mcpRegistryURL= tempURLText
8586
}
@@ -128,6 +129,7 @@ struct MCPRegistryURLView: View {
128129

129130
privatefunc loadMCPServers()async{
130131
// Update mcpRegistryURL with current tempURLText before loading
132+
tempURLText= tempURLText.trimmingCharacters(in:.whitespacesAndNewlines)
131133
if tempURLText!= mcpRegistryURL{
132134
mcpRegistryURL= tempURLText
133135
}

‎Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPServerGalleryViewModel.swift‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ final class MCPServerGalleryViewModel: ObservableObject {
3131
@Publishedprivate(set)varlastError:Error?
3232

3333
@AppStorage(\.mcpRegistryURL)varmcpRegistryURL
34+
@AppStorage(\.mcpRegistryURLHistory)privatevarmcpRegistryURLHistory
3435

3536
// Service integration
3637
privateletregistryService=MCPRegistryService.shared
@@ -253,6 +254,8 @@ final class MCPServerGalleryViewModel: ObservableObject {
253254
servers.append(contentsOf: serverList?.servers??[])
254255
registryMetadata= serverList?.metadata
255256
}
257+
258+
mcpRegistryURLHistory.addToHistory(mcpRegistryURL)
256259

257260
returnnil
258261
}catch{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp