(ctx context.Context, id uuid.UUID)
| 200 | } |
| 201 | |
| 202 | func (c *Client) DeleteMCPServerConfig(ctx context.Context, id uuid.UUID) error { |
| 203 | res, err := c.Request(ctx, http.MethodDelete, fmt.Sprintf("/api/experimental/mcp/servers/%s", id), nil) |
| 204 | if err != nil { |
| 205 | return err |
| 206 | } |
| 207 | defer res.Body.Close() |
| 208 | if res.StatusCode != http.StatusNoContent { |
| 209 | return ReadBodyAsError(res) |
| 210 | } |
| 211 | return nil |
| 212 | } |