# 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"},"server_description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Description shown to MCP clients.","title":"Server Description"},"server_name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Display name shown to MCP clients.","title":"Server Name"}},"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"},"server_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Description"},"server_name":{"title":"Server Name","type":"string"},"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>
