# Update Mcp Config

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Update Mcp Config"}
>
</Heading>

<MethodEndpoint
  method={"patch"}
  path={"/api/v2/workspaces/{workspace_id}/mcp/config"}
  context={"endpoint"}
>
  
</MethodEndpoint>

Update the MCP server configuration for a workspace.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"description":"Type the id of the workspace.","in":"path","name":"workspace_id","required":true,"schema":{"description":"Type the id of the workspace.","format":"uuid","title":"Workspace Id","type":"string"}}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={{"content":{"application/json":{"schema":{"description":"Partial update for a workspace MCP server configuration.","properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether the MCP server is active.","title":"Enabled"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Server-level instructions for LLM clients.","title":"Instructions"},"server_description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Internal description for workspace UI; not sent in MCP handshake.","title":"Server Description"},"server_icons":{"anyOf":[{"items":{"description":"An icon descriptor matching the MCP spec's Icon type.","properties":{"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MIME type of the icon.","title":"Mimetype"},"sizes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Icon dimensions, e.g. [\"48x48\", \"96x96\"].","title":"Sizes"},"src":{"description":"URL or data URI for the icon.","title":"Src","type":"string"}},"required":["src"],"title":"IconModel","type":"object"},"type":"array"},{"type":"null"}],"description":"Icons for the MCP server.","title":"Server Icons"},"server_name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Display name shown to MCP clients.","title":"Server Name"},"server_version":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Version of this MCP server.","title":"Server Version"},"server_website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"URL to the server website.","title":"Server Website Url"}},"title":"UpdateMCPConfigRequest","type":"object"}}},"required":true}}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"200":{"content":{"application/json":{"schema":{"description":"Response representing a workspace MCP server configuration.","properties":{"created_at":{"format":"date-time","title":"Created At","type":"string"},"created_by":{"anyOf":[{"properties":{"family_name":{"description":"Family name of a user.","title":"Family name","type":"string"},"given_name":{"description":"Given name of a user.","title":"Given name","type":"string"},"user_id":{"description":"Unique identifier of a user.","format":"uuid","title":"User ID","type":"string"}},"required":["given_name","family_name","user_id"],"title":"Oauth User","type":"object"},{"type":"null"}]},"enabled":{"title":"Enabled","type":"boolean"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"server_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Description"},"server_icons":{"anyOf":[{"items":{"description":"An icon descriptor matching the MCP spec's Icon type.","properties":{"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MIME type of the icon.","title":"Mimetype"},"sizes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Icon dimensions, e.g. [\"48x48\", \"96x96\"].","title":"Sizes"},"src":{"description":"URL or data URI for the icon.","title":"Src","type":"string"}},"required":["src"],"title":"IconModel","type":"object"},"type":"array"},{"type":"null"}],"title":"Server Icons"},"server_name":{"title":"Server Name","type":"string"},"server_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Version"},"server_website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Website Url"},"updated_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Updated At"},"workspace_id":{"format":"uuid","title":"Workspace Id","type":"string"},"workspace_mcp_config_id":{"format":"uuid","title":"Workspace Mcp Config Id","type":"string"}},"required":["workspace_mcp_config_id","workspace_id","enabled","server_name","server_description","created_at","updated_at"],"title":"MCPConfigResponse","type":"object"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"}}},"description":"Validation Error"}}}
>
  
</StatusCodes>
