yt-transcript-strapi-plugin 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/index.js +2 -12
- package/dist/server/index.mjs +2 -12
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -855,21 +855,11 @@ const bootstrap = async ({ strapi }) => {
|
|
|
855
855
|
plugin.sessions = /* @__PURE__ */ new Map();
|
|
856
856
|
const oauthPlugin = strapi.plugin(OAUTH_PLUGIN_ID);
|
|
857
857
|
if (oauthPlugin) {
|
|
858
|
-
|
|
859
|
-
await oauthPlugin.service("endpoint").register({
|
|
860
|
-
name: "YouTube Transcript MCP",
|
|
861
|
-
pluginId: PLUGIN_ID,
|
|
862
|
-
path: `/api/${PLUGIN_ID}/mcp`,
|
|
863
|
-
description: "MCP endpoint for YouTube transcript tools"
|
|
864
|
-
});
|
|
865
|
-
strapi.log.info(`[${PLUGIN_ID}] Registered with OAuth plugin - supports OAuth + API tokens`);
|
|
866
|
-
} catch (error) {
|
|
867
|
-
strapi.log.error(`[${PLUGIN_ID}] Failed to register with OAuth plugin`, { error });
|
|
868
|
-
}
|
|
858
|
+
strapi.log.info(`[${PLUGIN_ID}] OAuth manager detected - OAuth + API token auth enabled`);
|
|
869
859
|
} else {
|
|
870
860
|
const fallbackMiddleware = createFallbackAuthMiddleware();
|
|
871
861
|
strapi.server.use(fallbackMiddleware);
|
|
872
|
-
strapi.log.info(`[${PLUGIN_ID}] Using API token authentication (OAuth
|
|
862
|
+
strapi.log.info(`[${PLUGIN_ID}] Using API token authentication (OAuth manager not installed)`);
|
|
873
863
|
}
|
|
874
864
|
strapi.log.info(`[${PLUGIN_ID}] MCP endpoint available at: /api/${PLUGIN_ID}/mcp`);
|
|
875
865
|
};
|
package/dist/server/index.mjs
CHANGED
|
@@ -854,21 +854,11 @@ const bootstrap = async ({ strapi }) => {
|
|
|
854
854
|
plugin.sessions = /* @__PURE__ */ new Map();
|
|
855
855
|
const oauthPlugin = strapi.plugin(OAUTH_PLUGIN_ID);
|
|
856
856
|
if (oauthPlugin) {
|
|
857
|
-
|
|
858
|
-
await oauthPlugin.service("endpoint").register({
|
|
859
|
-
name: "YouTube Transcript MCP",
|
|
860
|
-
pluginId: PLUGIN_ID,
|
|
861
|
-
path: `/api/${PLUGIN_ID}/mcp`,
|
|
862
|
-
description: "MCP endpoint for YouTube transcript tools"
|
|
863
|
-
});
|
|
864
|
-
strapi.log.info(`[${PLUGIN_ID}] Registered with OAuth plugin - supports OAuth + API tokens`);
|
|
865
|
-
} catch (error) {
|
|
866
|
-
strapi.log.error(`[${PLUGIN_ID}] Failed to register with OAuth plugin`, { error });
|
|
867
|
-
}
|
|
857
|
+
strapi.log.info(`[${PLUGIN_ID}] OAuth manager detected - OAuth + API token auth enabled`);
|
|
868
858
|
} else {
|
|
869
859
|
const fallbackMiddleware = createFallbackAuthMiddleware();
|
|
870
860
|
strapi.server.use(fallbackMiddleware);
|
|
871
|
-
strapi.log.info(`[${PLUGIN_ID}] Using API token authentication (OAuth
|
|
861
|
+
strapi.log.info(`[${PLUGIN_ID}] Using API token authentication (OAuth manager not installed)`);
|
|
872
862
|
}
|
|
873
863
|
strapi.log.info(`[${PLUGIN_ID}] MCP endpoint available at: /api/${PLUGIN_ID}/mcp`);
|
|
874
864
|
};
|
package/package.json
CHANGED