MCP tools

transporttype: jsonrpc, sse or streamablehttp. authtype: none, apikey, bearer or basic (credentials = the key, token, or base64 user:pass).

Then:

1. POST /api/mcp-servers/{id}/test-connection/ 2. POST /api/mcp-servers/{id}/discover-tools/ — lists the server's tools 3. GET /api/knowledge-bases/{botid}/mcp-tools/ — the tools the bot can call 4. POST /api/mcp-servers/{id}/invoke-tool/ — call one directly to test it

Credentials are stored encrypted.