isAcceptedError checks if the error is an accepted error.
(err error)
| 36 | |
| 37 | // isAcceptedError checks if the error is an accepted error. |
| 38 | func isAcceptedError(err error) bool { |
| 39 | var acceptedError *github.AcceptedError |
| 40 | return errors.As(err, &acceptedError) |
| 41 | } |
| 42 | |
| 43 | // toInt converts a value to int, handling both float64 and string representations. |
| 44 | // Some MCP clients send numeric values as strings. It rejects NaN, ±Inf, |