mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-11-13 08:06:06 +00:00
* feat: add MCP error metadata handling and improve source policy resolution * fix: adjust height-diff for improved table layout
61 lines
2.3 KiB
Go
61 lines
2.3 KiB
Go
package dto
|
|
|
|
type MCPRuntimeSettings struct {
|
|
RuntimeType string `json:"runtimeType"`
|
|
DockerImage string `json:"dockerImage"`
|
|
Enabled bool `json:"enabled"`
|
|
ListenPort int `json:"listenPort"`
|
|
ExternalURL string `json:"externalUrl"`
|
|
Revision uint64 `json:"revision"`
|
|
AccessPolicy string `json:"accessPolicy"`
|
|
AllowedIPs []string `json:"allowedIPs"`
|
|
}
|
|
|
|
type MCPRuntimeSettingsUpdate = MCPRuntimeSettings
|
|
|
|
type MCPRuntimeInstall struct {
|
|
DockerImage string `json:"dockerImage"`
|
|
DeleteOldImage bool `json:"deleteOldImage"`
|
|
ListenPort int `json:"listenPort"`
|
|
ExternalURL string `json:"externalUrl"`
|
|
Revision uint64 `json:"revision"`
|
|
AccessPolicy string `json:"accessPolicy"`
|
|
AllowedIPs []string `json:"allowedIPs"`
|
|
Website *MCPRuntimeInstallWebsite `json:"website,omitempty"`
|
|
}
|
|
|
|
type MCPRuntimeInstallWebsite struct {
|
|
Domain string `json:"domain"`
|
|
EnableSSL bool `json:"enableSSL"`
|
|
SSLID uint `json:"sslID"`
|
|
}
|
|
|
|
type MCPRuntimeInstallTask struct {
|
|
TaskID string `json:"taskID"`
|
|
}
|
|
|
|
type MCPRuntimeStatus struct {
|
|
RuntimeType string `json:"runtimeType"`
|
|
DockerImage string `json:"dockerImage"`
|
|
ContainerName string `json:"containerName"`
|
|
ImageID string `json:"imageId"`
|
|
Enabled bool `json:"enabled"`
|
|
Installed bool `json:"installed"`
|
|
Status string `json:"status"`
|
|
Ready bool `json:"ready"`
|
|
Reason string `json:"reason"`
|
|
AdapterVersion string `json:"adapterVersion"`
|
|
ContractVersion int `json:"contractVersion"`
|
|
Protocol string `json:"protocol"`
|
|
InternalEndpoint string `json:"internalEndpoint"`
|
|
Endpoint string `json:"endpoint"`
|
|
CanManageService bool `json:"canManageService"`
|
|
InstallTaskID string `json:"installTaskID,omitempty"`
|
|
Installing bool `json:"installing"`
|
|
Website *MCPWebsiteStatus `json:"website,omitempty"`
|
|
}
|
|
|
|
type MCPRuntimeLogs struct {
|
|
Content string `json:"content"`
|
|
}
|