Skip to content

Ask the server what it offers now, and store the answer

POST
/api/mcp/{id}/tools
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.

id
required
string

The outcome

No such server