MCPcopy Index your code
hub / github.com/coder/coder / cachedTools

Method cachedTools

agent/x/agentmcp/manager.go:732–737  ·  view source on GitHub ↗

cachedTools returns the cached tool list. Thread-safe.

()

Source from the content-addressed store, hash-verified

730
731// cachedTools returns the cached tool list. Thread-safe.
732func (m *Manager) cachedTools() []workspacesdk.MCPToolInfo {
733 m.mu.RLock()
734 defer m.mu.RUnlock()
735
736 return slices.Clone(m.tools)
737}
738
739// CallTool proxies a tool call to the appropriate MCP server.
740func (m *Manager) CallTool(ctx context.Context, req workspacesdk.CallMCPToolRequest) (workspacesdk.CallMCPToolResponse, error) {

Calls 1

CloneMethod · 0.45