Documentation
¶
Overview ¶
Package invocation adapts MCP calls to the protocol-neutral component port.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Invoker exec.ComponentInvoker
Client xmcp.Client
Authorize func(context.Context, exec.ComponentTarget) error
// Output selects the component's compiled JSON presentation adapter.
Output func(exec.ComponentTarget) OutputEncoder
}
type Execution ¶
type Execution struct {
// contains filtered or unexported fields
}
Execution is the protocol-neutral outcome of one exact MCP component call.
func (*Execution) StatusCode ¶
func (*Execution) ToolResult ¶
func (e *Execution) ToolResult() *schema.CallToolResult
type OutputEncoder ¶ added in v1.1.0
OutputEncoder applies a compiled presentation contract without exposing its runtime owner to the protocol-neutral invocation package.
type Request ¶
type Request struct {
Target exec.ComponentTarget
Scope *requestprovider.Scope
Method string
URI string
}
Click to show internal directories.
Click to hide internal directories.