Allow or refuse one MCP call the turn is stopped on.
POST
/api/runs/{id}/approve
const url = 'http://localhost:5173/api/runs/example/approve';const options = { method: 'POST', 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 POST \ --url http://localhost:5173/api/runs/example/approve \ --cookie authjs.session-token=<authjs.session-token>Takes { callId, allow }. The call id comes from the run's approval event. Answers { answered }, false when the question has already been settled, has timed out, or was never asked: two clients answering at once is ordinary, and the first answer is the one that counts. Unanswered for two minutes, a call is refused.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”The decision was recorded
Expected a call id and a boolean.
No such run

