A MethodHandler handles MCP messages. For methods, exactly one of the return values must be nil. For notifications, both must be nil.
func(ctx context.Context, method string, req Request) (result Result, err error)
| 68 | // For methods, exactly one of the return values must be nil. |
| 69 | // For notifications, both must be nil. |
| 70 | type MethodHandler func(ctx context.Context, method string, req Request) (result Result, err error) |
| 71 | |
| 72 | // A Session is either a [ClientSession] or a [ServerSession]. |
| 73 | type Session interface { |
no outgoing calls
no test coverage detected
searching dependent graphs…