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 supplies the component's compiled JSON presentation contract.
Output func(exec.ComponentTarget) *output.Plan
}
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 Request ¶
type Request struct {
Target exec.ComponentTarget
Scope *requestprovider.Scope
Method string
URI string
}
Click to show internal directories.
Click to hide internal directories.