Overview
PATCH
/persona/mcp-servers/{id}registryUpdate / enable / disable / rotate the secret of an MCP server (site-admin)
Update fields of a record in mcp-servers by id.
Auth: bearerAuth — calls run as the authenticated user.
Parameters
- idpathstring
Request body
application/json · optional
- nameoptionalstring
- urloptionalstring
- enabledoptionalboolean
- authSecretoptionalstring
Blank/absent preserves the stored secret; a non-empty value rotates it
Example
{
"name": "string",
"url": "string",
"enabled": true,
"authSecret": "string"
}Responses
200
the updated server (secret redacted)
- serverRegistryAgentMcpServer
Example
{
"server": {
"id": "string",
"slug": "string",
"name": "string",
"url": "string",
"enabled": true,
"hasAuthSecret": true,
"createdBy": "string",
"createdAt": "string",
"updatedAt": "string"
}
}400
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}401
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}403
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}404
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}Code examples
cURL
curl -X PATCH "https://api.agenticdeveloperhub.com/persona/mcp-servers/{id}" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"url": "string",
"enabled": true,
"authSecret": "string"
}'JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/persona/mcp-servers/{id}", {
method: "PATCH",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: "{\n \"name\": \"string\",\n \"url\": \"string\",\n \"enabled\": true,\n \"authSecret\": \"string\"\n}",
});
const data = await res.json();