-
Notifications
You must be signed in to change notification settings - Fork 93
Remote server support #1423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Remote server support #1423
Conversation
@@ -159,12 +159,17 @@ func printTextServers(servers []registry.ServerMetadata) { | |||
} | |||
} | |||
|
|||
const ( | |||
serverTypeRemote = "remote" | |||
serverTypeContainer = "container" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps we should make these public
@@ -4166,5 +4166,93 @@ | |||
"transport": "stdio" | |||
} | |||
}, | |||
"remote_servers": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These remote servers are currently added only for testing purposes. I’m not suggesting adding them permanently to our registry.
If we decide to include them, I can ensure that all tools and associated metadata are correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no biggie.
|
||
// isURL checks if the input is a URL | ||
func isURL(input string) bool { | ||
return strings.HasPrefix(input, "http://") || strings.HasPrefix(input, "https://") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use https://pkg.go.dev/net/url#Parse
No description provided.