MCPcopy
hub / github.com/docker/docker-agent / Initialize

Method Initialize

pkg/tools/mcp/mcp_test.go:79–84  ·  view source on GitHub ↗
(context.Context, *mcp.InitializeRequest)

Source from the content-addressed store, hash-verified

77}
78
79func (m *reconnectableMockClient) Initialize(context.Context, *mcp.InitializeRequest) (*mcp.InitializeResult, error) {
80 m.mu.Lock()
81 defer m.mu.Unlock()
82 m.waitCh = make(chan struct{}) // fresh channel for each session
83 return &mcp.InitializeResult{}, nil
84}
85
86func (m *reconnectableMockClient) Wait() error {
87 m.mu.Lock()

Callers

nothing calls this directly

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected