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

Function setupMCPForTest

aibridge/internal/integrationtest/mockmcp.go:46–49  ·  view source on GitHub ↗

setupMCPForTest creates a ready-to-use MCP server with proxy named "coder".

(t *testing.T, tracer trace.Tracer)

Source from the content-addressed store, hash-verified

44
45// setupMCPForTest creates a ready-to-use MCP server with proxy named "coder".
46func setupMCPForTest(t *testing.T, tracer trace.Tracer) *mockMCP {
47 t.Helper()
48 return setupMCPForTestWithName(t, "coder", tracer)
49}
50
51func setupMCPForTestWithName(t *testing.T, name string, tracer trace.Tracer) *mockMCP {
52 t.Helper()

Calls 2

setupMCPForTestWithNameFunction · 0.85
HelperMethod · 0.65