MCPcopy Index your code
hub / github.com/coder/coder / DeleteMCPServerConfig

Method DeleteMCPServerConfig

codersdk/mcp.go:202–212  ·  view source on GitHub ↗
(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

200}
201
202func (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}

Callers 1

TestMCPServerConfigsCRUDFunction · 0.80

Calls 3

RequestMethod · 0.95
ReadBodyAsErrorFunction · 0.85
CloseMethod · 0.65

Tested by 1

TestMCPServerConfigsCRUDFunction · 0.64