tools

package
v0.45.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2026 License: MIT Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL