PluginProbe
Extendify / 3.2.2
Extendify v3.2.2
3.2.2 3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 All 128 releases
← All changes | bootstrap.php +20 -0 3.2.1 → 3.2.2 View file →
@@ -17,8 +17,16 @@
17 17 use Extendify\Launch\Admin as LaunchAdmin;
18 18 use Extendify\AutoLaunch\Admin as AutoLaunchAdmin;
19 19 use Extendify\Library\Admin as LibraryAdmin;
20 20 use Extendify\Library\Frontend as LibraryFrontend;
21 +use Extendify\Mcp\Server as McpServer;
22 +use Extendify\Mcp\OAuth\Metadata as McpMetadata;
23 +use Extendify\Mcp\OAuth\Authorize as McpAuthorize;
24 +use Extendify\Mcp\OAuth\TokenEndpoint as McpTokenEndpoint;
25 +use Extendify\Mcp\OAuth\RegistrationEndpoint as McpRegistrationEndpoint;
26 +use Extendify\Mcp\Profile as McpProfile;
27 +use Extendify\Mcp\Lifecycle as McpLifecycle;
28 +use Extendify\Mcp\Jobs as McpJobs;
21 29 use Extendify\Agent\Frontend as AgentFrontend;
22 30 use Extendify\QuickEdit\Frontend as QuickEditFrontend;
23 31 use Extendify\PageCreator\Admin as PageCreatorAdmin;
24 32 use Extendify\PartnerData;
@@ -126,8 +134,20 @@
126 134 // Set up scheduled cache (if opt-in and active).
127 135 if (!PartnerData::setting('deactivated')) {
128 136 ResourceData::scheduleCache();
129 137 NotificationData::scheduleCache();
138 + }
139 +
140 + // A token request carries no session and would fail the capability check.
141 + if (defined('EXTENDIFY_PARTNER_ID') && !PartnerData::setting('deactivated')) {
142 + McpServer::register();
143 + McpMetadata::register();
144 + McpAuthorize::register();
145 + McpTokenEndpoint::register();
146 + McpRegistrationEndpoint::register();
147 + McpProfile::register();
148 + McpLifecycle::register();
149 + McpJobs::register();
130 150 }
131 151
132 152 if (!current_user_can(EXTENDIFY_REQUIRED_CAPABILITY)) {
133 153 if (!SiteVisibility::isPublished()) {