octalens-mentions 0.1.0 → 0.1.1
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 +15 -10
- package/dist/server/index.mjs +15 -10
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -487,16 +487,21 @@ function createMcpServer(strapi) {
|
|
|
487
487
|
return server;
|
|
488
488
|
}
|
|
489
489
|
const bootstrap = async ({ strapi }) => {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
490
|
+
try {
|
|
491
|
+
const plugin = strapi.plugin("octalens-mentions");
|
|
492
|
+
if (!plugin) {
|
|
493
|
+
strapi.log.error("[octalens-mentions] Plugin not found - check strapi.name in package.json");
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
496
|
+
plugin.createMcpServer = () => createMcpServer(strapi);
|
|
497
|
+
plugin.sessions = /* @__PURE__ */ new Map();
|
|
498
|
+
strapi.log.info("[octalens-mentions] MCP plugin initialized");
|
|
499
|
+
strapi.log.info("[octalens-mentions] MCP endpoint available at: /api/octalens-mentions/mcp");
|
|
500
|
+
} catch (error) {
|
|
501
|
+
strapi.log.error("[octalens-mentions] Bootstrap failed:", {
|
|
502
|
+
error: error instanceof Error ? error.message : String(error)
|
|
503
|
+
});
|
|
504
|
+
}
|
|
500
505
|
};
|
|
501
506
|
const destroy = async ({ strapi }) => {
|
|
502
507
|
try {
|
package/dist/server/index.mjs
CHANGED
|
@@ -486,16 +486,21 @@ function createMcpServer(strapi) {
|
|
|
486
486
|
return server;
|
|
487
487
|
}
|
|
488
488
|
const bootstrap = async ({ strapi }) => {
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
489
|
+
try {
|
|
490
|
+
const plugin = strapi.plugin("octalens-mentions");
|
|
491
|
+
if (!plugin) {
|
|
492
|
+
strapi.log.error("[octalens-mentions] Plugin not found - check strapi.name in package.json");
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
495
|
+
plugin.createMcpServer = () => createMcpServer(strapi);
|
|
496
|
+
plugin.sessions = /* @__PURE__ */ new Map();
|
|
497
|
+
strapi.log.info("[octalens-mentions] MCP plugin initialized");
|
|
498
|
+
strapi.log.info("[octalens-mentions] MCP endpoint available at: /api/octalens-mentions/mcp");
|
|
499
|
+
} catch (error) {
|
|
500
|
+
strapi.log.error("[octalens-mentions] Bootstrap failed:", {
|
|
501
|
+
error: error instanceof Error ? error.message : String(error)
|
|
502
|
+
});
|
|
503
|
+
}
|
|
499
504
|
};
|
|
500
505
|
const destroy = async ({ strapi }) => {
|
|
501
506
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "octalens-mentions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A Strapi v5 plugin that fetches social mentions from Octolens and exposes them via MCP (Model Context Protocol), enabling AI assistants like Claude to search, analyze, and help write responses to social media mentions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|