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

Function normalizeTools

agent/x/agentmcp/manager.go:254–259  ·  view source on GitHub ↗
(tools []workspacesdk.MCPToolInfo)

Source from the content-addressed store, hash-verified

252}
253
254func normalizeTools(tools []workspacesdk.MCPToolInfo) []workspacesdk.MCPToolInfo {
255 if tools == nil {
256 return []workspacesdk.MCPToolInfo{}
257 }
258 return tools
259}
260
261// startReloadIfNeeded registers the reload with the singleflight group
262// using a fixed key so concurrent triggers share one body. The body

Callers 2

ToolsMethod · 0.70
toolsAfterReloadErrorMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected