MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / SetLoggingLevel

Method SetLoggingLevel

mcp/client.go:1001–1004  ·  view source on GitHub ↗
(ctx context.Context, params *SetLoggingLevelParams)

Source from the content-addressed store, hash-verified

999}
1000
1001func (cs *ClientSession) SetLoggingLevel(ctx context.Context, params *SetLoggingLevelParams) error {
1002 _, err := handleSend[*emptyResult](ctx, methodSetLevel, newClientRequest(cs, orZero[Params](params)))
1003 return err
1004}
1005
1006// ListResources lists the resources that are currently available on the server.
1007func (cs *ClientSession) ListResources(ctx context.Context, params *ListResourcesParams) (*ListResourcesResult, error) {

Callers 2

TestEndToEndFunction · 0.80
Example_loggingFunction · 0.80

Calls 1

newClientRequestFunction · 0.85

Tested by 2

TestEndToEndFunction · 0.64
Example_loggingFunction · 0.64