|
dolibarr 24.0.0-beta
|
File of the MCP Server service. More...
Go to the source code of this file.
Functions | |
| mcp_log_request (array $req, $resp, float $tStart, string $rawInput) | |
| Persist an MCP tools/call invocation to the llx_ai_request_log table. | |
File of the MCP Server service.
Definition in file mcp_server.php.
| mcp_log_request | ( | array | $req, |
| $resp, | |||
| float | $tStart, | ||
| string | $rawInput ) |
Persist an MCP tools/call invocation to the llx_ai_request_log table.
Mirrors what parse_intent.php does for the web AI Assistant. Only tools/call is logged – lifecycle methods (initialize, ping, notifications/initialized, tools/list, ...) are skipped to avoid noise.
| array<string,mixed> | $req The JSON-RPC request | |
| ?mixed | $resp | The JSON-RPC response (null for notifications) |
| float | $tStart | microtime(true) captured before processing |
| string | $rawInput | Raw request body |
Definition at line 168 of file mcp_server.php.
References $db, ai_log_request(), dol_substr(), and string.