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

Function insertInternalMCPServerConfig

coderd/x/chatd/subagent_internal_test.go:644–661  ·  view source on GitHub ↗
(
	t *testing.T,
	db database.Store,
	userID uuid.UUID,
	slug string,
	allowInPlanMode bool,
)

Source from the content-addressed store, hash-verified

642}
643
644func insertInternalMCPServerConfig(
645 t *testing.T,
646 db database.Store,
647 userID uuid.UUID,
648 slug string,
649 allowInPlanMode bool,
650) database.MCPServerConfig {
651 t.Helper()
652
653 return dbgen.MCPServerConfig(t, db, database.MCPServerConfig{
654 DisplayName: slug,
655 Slug: slug,
656 Url: "https://" + slug + ".example.com",
657 AllowInPlanMode: allowInPlanMode,
658 CreatedBy: uuid.NullUUID{UUID: userID, Valid: true},
659 UpdatedBy: uuid.NullUUID{UUID: userID, Valid: true},
660 })
661}
662
663func seedWorkspaceBinding(
664 t *testing.T,

Calls 2

MCPServerConfigFunction · 0.92
HelperMethod · 0.65

Tested by

no test coverage detected