Save an edit
PUT
/api/mcp/{id}
const url = 'http://localhost:5173/api/mcp/example';const options = { method: 'PUT', headers: {cookie: 'authjs.session-token=<authjs.session-token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:5173/api/mcp/example \ --cookie authjs.session-token=<authjs.session-token>An absent field is left alone. secret omitted keeps the stored token,
secret: "" clears it. Renaming can change the slug the tools are named
after, so the answer carries the record as stored.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”Saved.
No such server

