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

Function makeConfig

coderd/x/chatd/mcpclient/mcpclient_test.go:79–89  ·  view source on GitHub ↗

makeConfig builds a database.MCPServerConfig suitable for tests.

(slug, url string)

Source from the content-addressed store, hash-verified

77
78// makeConfig builds a database.MCPServerConfig suitable for tests.
79func makeConfig(slug, url string) database.MCPServerConfig {
80 return database.MCPServerConfig{
81 ID: uuid.New(),
82 Slug: slug,
83 DisplayName: slug,
84 Url: url,
85 Transport: "streamable_http",
86 AuthType: "none",
87 Enabled: true,
88 }
89}
90
91func TestConnectAll_DiscoverTools(t *testing.T) {
92 t.Parallel()

Calls 1

NewMethod · 0.65

Tested by

no test coverage detected