Documentation
¶
Overview ¶
Package mcp exposes explicitly selected Ridu content reads through Model Context Protocol without bypassing the ordinary authorization and operation engine. It is optional compiled application code, not part of Ridu core.
Index ¶
Constants ¶
View Source
const (
// Key is the stable compiled plugin identity.
Key = "mcp"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Path string
MaxBodyBytes int64
DefaultLimit int
MaxLimit int
Collections []Resource
Globals []Resource
}
Config controls the bounded, read-only MCP surface. Omitted resources are not exposed even when the authenticated actor could read them over REST.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin is one configured MCP transport.
func (*Plugin) BindTransports ¶
func (*Plugin) Descriptor ¶
func (*Plugin) Descriptor() ridu.PluginDescriptor
type Resource ¶
type Resource struct {
Slug schema.CollectionSlug
Description string
}
Resource opts one manifest collection or global into MCP discovery. Description overrides manifest presentation text when clients need more task-specific guidance.
Click to show internal directories.
Click to hide internal directories.