Documentation
¶
Overview ¶
Package mcpserver 用官方 go-sdk 构建 sctl 的 stdio MCP server:把 protocol.json 定义的 bridge action 暴露成 MCP 工具,并在阻塞等待(写审批 / 源码披露)期间周期发送 progress 通知(支持的 客户端可借此续期工具超时)。
扁平信任:接入(enrollment)建立可信通道后,MCP agent 继承信任、无需各自配对,故 tools/list 暴露全部工具;权威授权仍在扩展侧(写操作审批 / 源码披露闸门)。
stdout 由 MCP 协议独占:本包绝不向 stdout 写任何东西,日志走全局 stderr/文件 logger。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BridgeCaller ¶
type BridgeCaller interface {
Call(ctx context.Context, action string, input json.RawMessage) (control.CallResult, error)
}
BridgeCaller 抽象「向 daemon 转发一次 bridge action 调用」,便于测试注入桩。