Ask the server what it offers now, and store the answer
POST
/api/mcp/{id}/tools
const url = 'http://localhost:5173/api/mcp/example/tools';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/mcp/example/tools \ --cookie authjs.session-token=<authjs.session-token>The stored catalogue is a snapshot, taken when the server is added and retaken here. A gateway gains and loses tools without telling anybody, so this is the button behind "update tools". Answers { ok: true, server } with the record as stored, or { ok: false, error } when the server could not be reached: the server still exists, it is its answer that failed.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”The outcome
No such server

