Documentation
¶
Overview ¶
Package tool compiles route-effective component contracts into MCP tools.
Index ¶
- type Argument
- func (a Argument) Aliases() []string
- func (a Argument) Description() string
- func (a Argument) DestinationType() reflect.Type
- func (a Argument) Example() string
- func (a Argument) Path() string
- func (a Argument) PublicName() string
- func (a Argument) Required() bool
- func (a Argument) SourceKind() string
- func (a Argument) SourceName() string
- func (a Argument) SourceType() reflect.Type
- func (a Argument) WireSchema() *spec.WireSchema
- func (a Argument) WireSchemas() map[string]*spec.WireSchema
- type Compiler
- type Handler
- type Input
- type Plan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Argument ¶
type Argument struct {
// contains filtered or unexported fields
}
Argument is an immutable public projection of one canonical input field.
func (Argument) Description ¶
func (Argument) DestinationType ¶
func (Argument) PublicName ¶
func (Argument) SourceKind ¶
func (Argument) SourceName ¶
func (Argument) SourceType ¶
func (Argument) WireSchema ¶
func (a Argument) WireSchema() *spec.WireSchema
func (Argument) WireSchemas ¶
func (a Argument) WireSchemas() map[string]*spec.WireSchema
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
func NewCompiler ¶
func NewCompiler() *Compiler
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(plan *Plan, invoker *invocation.Invoker) *Handler
type Input ¶
type Input struct {
Fields []registry.InputField
Example string
TransportReady bool
Documentation *documentation.Snapshot
Component spec.Key
Exposure *spec.MCPExposure
Contract *registry.RouteInputContract
// OutputType is the execution result shape. MCP output schemas are only
// emitted for object-shaped structuredContent, as required by the protocol.
OutputType reflect.Type
// Output is the same compiled presentation plan used for MCP result encoding.
Output *output.Plan
}
type Plan ¶
type Plan struct {
// contains filtered or unexported fields
}
Plan is one immutable exact-route MCP tool plan.
func (*Plan) Input ¶
func (p *Plan) Input() *registry.RouteInputContract
func (*Plan) Scope ¶
func (p *Plan) Scope(arguments map[string]interface{}) (*requestprovider.Scope, error)
func (*Plan) Target ¶
func (p *Plan) Target() exec.ComponentTarget
Click to show internal directories.
Click to hide internal directories.