mcp: rename logging symbols (#321)

Fixes #279.
This commit is contained in:
Jonathan Amsterdam 2025-08-19 07:49:56 -04:00 • committed by GitHub
commit 52734fd414
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,8 +103,7 @@ func (e unsupportedProtocolVersionError) Error() string {
}
// ClientSessionOptions is reserved for future use.
type ClientSessionOptions struct {
}
type ClientSessionOptions struct{}
// Connect begins an MCP session by connecting to a server over the given
// transport, and initializing the session.
@ -398,7 +397,7 @@ func (cs *ClientSession) CallTool(ctx context.Context, params *CallToolParams) (
return handleSend[*CallToolResult](ctx, methodCallTool, newClientRequest(cs, orZero[Params](params)))
}
func (cs *ClientSession) SetLevel(ctx context.Context, params *SetLevelParams) error {
func (cs *ClientSession) SetLoggingLevel(ctx context.Context, params *SetLoggingLevelParams) error {
_, err := handleSend[*emptyResult](ctx, methodSetLevel, newClientRequest(cs, orZero[Params](params)))
return err
}