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

Function slogLevelToMCP

mcp/logging.go:49–54  ·  view source on GitHub ↗
(sl slog.Level)

Source from the content-addressed store, hash-verified

47}
48
49func slogLevelToMCP(sl slog.Level) LoggingLevel {
50 if ml, ok := slogToMCP[sl]; ok {
51 return ml
52 }
53 return "debug" // for lack of a better idea
54}
55
56func mcpLevelToSlog(ll LoggingLevel) slog.Level {
57 if sl, ok := mcpToSlog[ll]; ok {

Callers 1

handleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…