Documentation
¶
Index ¶
- Constants
- Variables
- func MCPServerJSONSchema() []byte
- type MCPServerAuthentication
- type MCPServerConnectionProfile
- type MCPServerCoreServer
- type MCPServerDocument
- func (v MCPServerDocument) CalculatedDigest() (cryptoutil.Digest, error)
- func (v MCPServerDocument) CanonicalJSON() ([]byte, error)
- func (v MCPServerDocument) Canonicalize() (MCPServerDocument, error)
- func (v MCPServerDocument) Clone() (MCPServerDocument, error)
- func (v MCPServerDocument) Validate() error
- type MCPServerExtension
- type MCPServerHTTPProfile
- type MCPServerInputDeclaration
- type MCPServerInstallation
- type MCPServerPolicyReference
- type MCPServerStdioProfile
Constants ¶
View Source
const ( MCPServerKind = "mcp.server" MCPServerSchemaID = "mcp.server.v1" MCPServerSchemaVersion = "v1" )
Variables ¶
View Source
var MCPServerSchemaKey = schema.ArtifactKey( artifact.ArtifactKind(MCPServerKind), schema.SchemaID(MCPServerSchemaID), MCPServerSchemaVersion, )
Functions ¶
func MCPServerJSONSchema ¶
func MCPServerJSONSchema() []byte
Types ¶
type MCPServerAuthentication ¶
type MCPServerConnectionProfile ¶
type MCPServerConnectionProfile struct {
Platforms []string `json:"platforms,omitempty"`
Stdio *MCPServerStdioProfile `json:"stdio,omitempty"`
HTTP *MCPServerHTTPProfile `json:"http,omitempty"`
}
type MCPServerCoreServer ¶
type MCPServerDocument ¶
type MCPServerDocument struct {
Digest *string `json:"digest,omitempty"`
Kind string `json:"kind"`
SchemaID string `json:"schemaID"`
SchemaVersion string `json:"schemaVersion"`
LogicalName string `json:"logicalName"`
LogicalVersion string `json:"logicalVersion,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Description string `json:"description,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
MCPServer MCPServerCoreServer `json:"mcpServer"`
Extension MCPServerExtension `json:"extension"`
}
func DecodeMCPServerJSON ¶
func DecodeMCPServerJSON(raw []byte) (MCPServerDocument, error)
func (MCPServerDocument) CalculatedDigest ¶
func (v MCPServerDocument) CalculatedDigest() ( cryptoutil.Digest, error, )
func (MCPServerDocument) CanonicalJSON ¶
func (v MCPServerDocument) CanonicalJSON() ([]byte, error)
func (MCPServerDocument) Canonicalize ¶
func (v MCPServerDocument) Canonicalize() (MCPServerDocument, error)
func (MCPServerDocument) Clone ¶
func (v MCPServerDocument) Clone() (MCPServerDocument, error)
func (MCPServerDocument) Validate ¶
func (v MCPServerDocument) Validate() error
type MCPServerExtension ¶
type MCPServerExtension struct {
LogicalVersion string `json:"logicalVersion,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Description string `json:"description,omitempty"`
TimeoutMS *int `json:"timeoutMS,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Auth *MCPServerAuthentication `json:"auth,omitempty"`
Install *MCPServerInstallation `json:"install,omitempty"`
ConnectionProfiles map[string]MCPServerConnectionProfile `json:"connectionProfiles,omitempty"`
Policy *MCPServerPolicyReference `json:"policy,omitempty"`
}
type MCPServerHTTPProfile ¶
type MCPServerInputDeclaration ¶
type MCPServerInputDeclaration struct {
Kind string `json:"kind"`
Label string `json:"label,omitempty"`
Description string `json:"description,omitempty"`
Note string `json:"note,omitempty"`
Placeholder string `json:"placeholder,omitempty"`
Required bool `json:"required,omitempty"`
Default string `json:"default,omitempty"`
ClientSecretRequired bool `json:"clientSecretRequired,omitempty"`
}
type MCPServerInstallation ¶
type MCPServerInstallation struct {
Note string `json:"note,omitempty"`
Inputs map[string]MCPServerInputDeclaration `json:"inputs,omitempty"`
AllowEnvironment []string `json:"allowEnvironment,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.