Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMcpServer ¶
func BuildMcpServer(tctx *Context) *agentsdk.McpSdkServer
BuildMcpServer assembles every tool into one in-process MCP server. The server name "cc-broker" matches the AllowedTools wildcard "mcp__cc-broker__*" used by runner/options.go.
Types ¶
type Context ¶
type Context struct {
SessionID string
WorkspaceID string
IMChannelID string
IMUserID string
ExecutorRegistryURL string
AgentserverURL string
IMBridgeURL string
InternalAPISecret string
Workspace *workspace.Workspace // for workspace_* tools
HTTP *http.Client // shared HTTP client
}
Context bundles the per-turn dependencies that tool handlers close over. Constructed in handler_turns once per request and discarded after the turn.
Click to show internal directories.
Click to hide internal directories.