()
| 47 | } |
| 48 | |
| 49 | func (e McpError) Error() string { |
| 50 | if e.Data != nil { |
| 51 | return fmt.Sprintf("[%d] %s (data: %v)", e.Code, e.Message, e.Data) |
| 52 | } |
| 53 | return fmt.Sprintf("[%d] %s", e.Code, e.Message) |
| 54 | } |
| 55 | |
| 56 | type McpClient struct { |
| 57 | config McpServerConfig |
no outgoing calls