@orchyn/mcp 1.17.1 → 1.17.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.
@@ -11,7 +11,7 @@ import { OrchynError } from "./orchyn.js";
11
11
  import { formatPaywallError, runVideoAnalysis, validatePostUrl } from "./video.js";
12
12
  import { ORCHYN_UI_TEMPLATE } from "./ui-template.js";
13
13
  /** Current MCP server version — bumped on every deploy for traceability. */
14
- export const MCP_SERVER_VERSION = "1.16.1";
14
+ export const MCP_SERVER_VERSION = "1.17.3";
15
15
  /** MCP Apps extension identifier */
16
16
  const UI_EXTENSION = "io.modelcontextprotocol/ui";
17
17
  /** MIME type for MCP Apps HTML resources */
@@ -26,7 +26,7 @@ const UI_RESOURCE_URI = "ui://orchyn/view";
26
26
  */
27
27
  function uiResource(tool) {
28
28
  const slug = tool.replace(/[^a-z0-9_]/gi, "_").replace(/_+/g, "_").replace(/^_|_$/g, "");
29
- return `ui://orchyn/${slug || "view"}?tool=${encodeURIComponent(tool)}`;
29
+ return `ui://orchyn/${slug || "view"}`;
30
30
  }
31
31
  /**
32
32
  * claude.ai requires `ui.domain` on the resource == sha256("<MCP endpoint
@@ -188,8 +188,21 @@ body{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;background:var(--
188
188
  schedule_post:"Schedule a post for future publishing."
189
189
  };
190
190
  function renderIdle(){
191
+ // Extract tool name from URI path segment (e.g. /ui://orchyn/analyze_post → analyze_post)
192
+ // or from ?tool= param if the host passes it.
193
+ var tool="";
191
194
  var params=new URLSearchParams(window.location.search);
192
- var tool=params.get("tool")||"";
195
+ tool=params.get("tool")||"";
196
+ if(!tool){
197
+ var path=window.location.pathname;
198
+ var match=path.match(/\/ui:\/\/orchyn\/([a-z_]+)/i);
199
+ if(match)tool=match[1];
200
+ }
201
+ if(!tool){
202
+ var hash=window.location.hash;
203
+ var m2=hash.match(/\/ui:\/\/orchyn\/([a-z_]+)/i);
204
+ if(m2)tool=m2[1];
205
+ }
193
206
  var label=TOOL_NAMES[tool]||"Interactive View";
194
207
  var desc=TOOL_DESCS[tool]||"Results will appear here as soon as a tool returns.";
195
208
  var app=document.getElementById("app");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchyn/mcp",
3
- "version": "1.17.1",
3
+ "version": "1.17.3",
4
4
  "description": "MCP server for orchyn - fetch, discover and understand TikTok/Instagram/YouTube/X/LinkedIn posts with AI (media metadata, niche discovery, hook & viral analysis)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",