| 1 |
<?php |
| 2 |
/** |
| 3 |
* Setting tab MCP. |
| 4 |
*/ |
| 5 |
|
| 6 |
return apply_filters( |
| 7 |
'learn_press_mcp_settings', |
| 8 |
array( |
| 9 |
array( |
| 10 |
'type' => 'title', |
| 11 |
'title' => esc_html__( 'MCP Integration', 'learnpress' ), |
| 12 |
'id' => 'lp_metabox_mcp_general', |
| 13 |
), |
| 14 |
array( |
| 15 |
'title' => esc_html__( 'Enable MCP Integration', 'learnpress' ), |
| 16 |
'id' => 'enable_mcp_integration', |
| 17 |
'default' => 'no', |
| 18 |
'type' => 'checkbox', |
| 19 |
'desc' => sprintf( |
| 20 |
/* translators: %s: MCP documentation URL. */ |
| 21 |
__( |
| 22 |
'Enable Model Context Protocol integration for AI-powered LMS operations. Review all AI actions before executing. <a href="%s" target="_blank" rel="noopener noreferrer">Learn more</a>.', |
| 23 |
'learnpress' |
| 24 |
), |
| 25 |
esc_url( 'https://learnpresslms.com/docs/learnpress-developer-documentation/model-context-protocol-mcp-integration/' ) |
| 26 |
), |
| 27 |
), |
| 28 |
array( |
| 29 |
'type' => 'sectionend', |
| 30 |
'id' => 'lp_metabox_mcp_general', |
| 31 |
), |
| 32 |
) |
| 33 |
); |
| 34 |
|