providerapi

package
v0.2.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2026 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBundleCodec

func NewBundleCodec() providerapi.SchemaCodec

func NewCollectionBehavior

func NewCollectionBehavior() providerapi.CollectionBehavior

func NewPolicyCodec

func NewPolicyCodec() providerapi.SchemaCodec

func NewServerCodec

func NewServerCodec() providerapi.SchemaCodec

Types

type BundleCodec

type BundleCodec struct{}

func (BundleCodec) Canonicalize

func (BundleCodec) Canonicalize(
	ctx context.Context,
	raw []byte,
) (schema.ParsedDocument, error)

func (BundleCodec) JSONSchema

func (BundleCodec) JSONSchema() []byte

func (BundleCodec) Key

func (BundleCodec) Key() schema.Key

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder() *Decoder

func (*Decoder) BindExpectedCanonicalizer

func (d *Decoder) BindExpectedCanonicalizer(
	schemas providerapi.SchemaCatalog,
) error

func (*Decoder) Decode

func (d *Decoder) Decode(
	ctx context.Context,
	candidate providerapi.Candidate,
) ([]providerapi.Decoded, []diagnostic.Diagnostic)

func (*Decoder) ID

func (*Decoder) ID() basespec.DecoderID

func (*Decoder) Recognize

func (d *Decoder) Recognize(
	_ context.Context,
	candidate providerapi.Candidate,
) providerapi.Recognition

func (*Decoder) RequiredSchemaKeys

func (*Decoder) RequiredSchemaKeys() []schema.Key

func (*Decoder) Revision

func (*Decoder) Revision() string

type PolicyCodec

type PolicyCodec struct{}

func (PolicyCodec) Canonicalize

func (PolicyCodec) Canonicalize(
	ctx context.Context,
	raw []byte,
) (schema.ParsedDocument, error)

func (PolicyCodec) JSONSchema

func (PolicyCodec) JSONSchema() []byte

func (PolicyCodec) Key

func (PolicyCodec) Key() schema.Key

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider registers the MCP Bundle collection behavior, portable schemas, and bundle decoder as one Artifact Store plugin.

func NewProvider

func NewProvider() (*Provider, error)

func (*Provider) Descriptor

func (p *Provider) Descriptor() providerapi.Descriptor

type ServerCodec

type ServerCodec struct{}

func (ServerCodec) Canonicalize

func (ServerCodec) Canonicalize(
	ctx context.Context,
	raw []byte,
) (schema.ParsedDocument, error)

func (ServerCodec) JSONSchema

func (ServerCodec) JSONSchema() []byte

func (ServerCodec) Key

func (ServerCodec) Key() schema.Key

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL