Documentation
¶
Overview ¶
Package resource compiles and resolves MCP resource route exposures.
Index ¶
- Variables
- type Catalog
- type Compiler
- type Folder
- type Handler
- type Input
- type Plan
- func (p *Plan) Input() *registry.RouteInputContract
- func (p *Plan) Kind() spec.MCPExposureKind
- func (p *Plan) MIMEType() string
- func (p *Plan) Resource() (schema.Resource, bool)
- func (p *Plan) Target() exec.ComponentTarget
- func (p *Plan) Template() (schema.ResourceTemplate, bool)
- func (p *Plan) URI() string
- type Publisher
- type Resolved
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct {
// contains filtered or unexported fields
}
func NewCatalog ¶
func (*Catalog) RegisterSkills ¶
RegisterSkills publishes validated metadata for explicitly declared roots. Resources must be registered first; the native registry rejects missing files.
func (*Catalog) Templates ¶
func (c *Catalog) Templates() []schema.ResourceTemplate
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
func NewCompiler ¶
type Folder ¶
type Folder struct {
// Skills explicitly declares relative skill directory roots ("." for this
// folder). Descendant SKILL.md files are supporting files unless declared.
Skills []string
Namespace string
Root string
URIPrefix string
Description string
FS fs.FS `json:"-"`
LocalDir string
}
Folder explicitly publishes one complete, immutable tree. Namespace groups metadata and selects a canonical Store source when FS is absent. LocalDir is an optional development override, confined by os.Root; binaries should use FS.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(catalog *Catalog, invoker *invocation.Invoker) *Handler
type Input ¶
type Input struct {
Component spec.Key
Route *spec.Route
Exposure *spec.MCPExposure
Contract *registry.RouteInputContract
}
type Plan ¶
type Plan struct {
// contains filtered or unexported fields
}
func (*Plan) Input ¶
func (p *Plan) Input() *registry.RouteInputContract
func (*Plan) Kind ¶
func (p *Plan) Kind() spec.MCPExposureKind
func (*Plan) Target ¶
func (p *Plan) Target() exec.ComponentTarget
type Publisher ¶
type Publisher struct{ Resources *bindresource.Store }
Click to show internal directories.
Click to hide internal directories.