MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / Reconnect

Method Reconnect

mcp/client.go:159–162  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

157}
158
159func (c *McpClient) Reconnect(ctx context.Context) bool {
160 c.Disconnect(ctx)
161 return c.Connect(ctx)
162}
163
164func (c *McpClient) DiscoverTools(ctx context.Context) ([]map[string]any, error) {
165 resp, err := c.Request(ctx, "tools/list", map[string]any{})

Callers

nothing calls this directly

Calls 2

DisconnectMethod · 0.95
ConnectMethod · 0.95

Tested by

no test coverage detected