agent agents api audit auth config db llm mcp_client