@orchyn/mcp 1.3.3 → 1.3.4
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/index.js +10 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -64,7 +64,16 @@ export function createServer(opts) {
|
|
|
64
64
|
}
|
|
65
65
|
try {
|
|
66
66
|
const result = await runVideoAnalysis(client, validation.url);
|
|
67
|
-
|
|
67
|
+
const images = (result._inlineImages ?? []).map((img) => ({
|
|
68
|
+
type: "image",
|
|
69
|
+
data: String(img.data),
|
|
70
|
+
mimeType: String(img.mimeType ?? "image/jpeg"),
|
|
71
|
+
}));
|
|
72
|
+
// Remove internal field from JSON shown to model
|
|
73
|
+
const { _inlineImages: _omit, ...rest } = result;
|
|
74
|
+
return {
|
|
75
|
+
content: [...images, { type: "text", text: JSON.stringify(rest, null, 2) }],
|
|
76
|
+
};
|
|
68
77
|
}
|
|
69
78
|
catch (err) {
|
|
70
79
|
if (err instanceof OrchynError && err.paywall) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orchyn/mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "MCP server for orchyn - fetch, discover and understand TikTok/Instagram/YouTube/X posts with AI (media metadata, niche discovery, hook & viral analysis)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|