Aller au contenu principal

`PUT /api/v1/mcp/servers/:name/config`, Replace a server configuration and restart the session.

PUT 

/api/v1/mcp/servers/:name/config

Removes the current session, starts a new one with the updated configuration, upserts the entry in mcp.db, then journals the change. Returns 200 OK with the new [McpServerStatus] on success. Returns 404 Not Found when no server with name is managed. Returns 400 Bad Request when the new session fails to start. Returns 503 Service Unavailable when MCP is not configured.

Request​

Responses​

Configuration replaced and session restarted