MCPcopy Create free account
hub / github.com/coder/coder / findTool

Function findTool

coderd/x/chatd/mcpclient/mcpclient_test.go:423–430  ·  view source on GitHub ↗
(tools []fantasy.AgentTool, name string)

Source from the content-addressed store, hash-verified

421}
422
423func findTool(tools []fantasy.AgentTool, name string) fantasy.AgentTool {
424 for _, t := range tools {
425 if t.Info().Name == name {
426 return t
427 }
428 }
429 return nil
430}
431
432// TestConnectAll_DisabledServer verifies that disabled configs are
433// silently skipped.

Callers 1

Calls 1

InfoMethod · 0.45

Tested by

no test coverage detected