@orchyn/mcp 1.17.0 → 1.17.2

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.
@@ -139,20 +139,82 @@ body{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;background:var(--
139
139
  </style>
140
140
  </head>
141
141
  <body>
142
- <div id="app">
143
- <div style="display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:220px;text-align:center;padding:40px 24px;background:var(--panel, #0d1117);color:var(--fg, #e6edf3);font-family:system-ui,-apple-system,sans-serif">
144
- <svg width="52" height="52" viewBox="0 0 48 48" fill="none">
145
- <g fill="var(--accent, #3fb950)" transform="translate(24 24)"><circle r="4.1"/><g id="ri"><path d="M-2.85 -5.2 L0 -20.6 L2.85 -5.2 L1.15 1.1 L-1.15 1.1 Z"/></g><use href="#ri" transform="rotate(45)"/><use href="#ri" transform="rotate(90)"/><use href="#ri" transform="rotate(135)"/><use href="#ri" transform="rotate(180)"/><use href="#ri" transform="rotate(225)"/><use href="#ri" transform="rotate(270)"/><use href="#ri" transform="rotate(315)"/></g>
146
- </svg>
147
- <div style="margin-top:16px;font-size:18px;font-weight:700">Orchyn</div>
148
- <div style="margin-top:8px;font-size:14px;color:#8b949e;max-width:340px;line-height:1.5">Social media intelligence. This view will render your post, creator, and trend results as soon as a tool returns.</div>
149
- </div>
150
- </div>
142
+ <div id="app"></div>
151
143
  <script>
152
144
  (function(){
153
145
  var nextId=1;var pending=new Map();
154
146
  var currentTool="";
155
147
 
148
+ // ─── Tool-specific idle view ───
149
+ // Read ?tool=<name> from the resource URI to show a tailored idle screen.
150
+ var TOOL_NAMES={
151
+ analyze_post:"Analyze Post",
152
+ discover_social_posts:"Discover Social Posts",
153
+ get_user_posts:"Get User Posts",
154
+ get_social_media:"Get Social Media",
155
+ analyze_creator_profile:"Analyze Creator Profile",
156
+ get_post_comments:"Get Post Comments",
157
+ search_creators:"Search Creators",
158
+ get_similar_creators:"Similar Creators",
159
+ discover_sounds:"Discover Sounds",
160
+ understand_social_post:"Understand Social Post",
161
+ check_orchyn_credits:"Check Credits",
162
+ buy_orchyn_credits:"Buy Credits",
163
+ compose_sequence:"Compose Sequence",
164
+ overlay_bake:"Overlay Bake",
165
+ spawn_variants:"Spawn Variants",
166
+ bake_job_status:"Bake Job Status",
167
+ enqueue_publish_job:"Enqueue Publish",
168
+ schedule_post:"Schedule Post"
169
+ };
170
+ var TOOL_DESCS={
171
+ analyze_post:"Deep analysis of any social media post — hook strength, viral triggers, why it works.",
172
+ discover_social_posts:"Trending posts from any platform for a given niche.",
173
+ get_user_posts:"Recent posts from a specific creator handle.",
174
+ get_social_media:"Get post data from any social media URL.",
175
+ analyze_creator_profile:"Full creator profile analysis — engagement, audience, content style.",
176
+ get_post_comments:"Top comments on a post — sentiment, themes, viral threads.",
177
+ search_creators:"Find creators in a niche by engagement, followers, and content.",
178
+ get_similar_creators:"Find creators similar to a given handle.",
179
+ discover_sounds:"Trending sounds and music on TikTok/Instagram.",
180
+ understand_social_post:"Multimodal understanding of video/image content.",
181
+ check_orchyn_credits:"View your Orchyn credit balance and free tool usage.",
182
+ buy_orchyn_credits:"Purchase additional Orchyn credits.",
183
+ compose_sequence:"AI-powered content composition for social posts.",
184
+ overlay_bake:"Bake text/image overlays onto video or image.",
185
+ spawn_variants:"Generate multiple content variants from a single seed.",
186
+ bake_job_status:"Check the status of a rendering/baking job.",
187
+ enqueue_publish_job:"Queue a post for publishing to a connected platform.",
188
+ schedule_post:"Schedule a post for future publishing."
189
+ };
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="";
194
+ var params=new URLSearchParams(window.location.search);
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
+ }
206
+ var label=TOOL_NAMES[tool]||"Interactive View";
207
+ var desc=TOOL_DESCS[tool]||"Results will appear here as soon as a tool returns.";
208
+ var app=document.getElementById("app");
209
+ if(!app)return;
210
+ app.innerHTML='<div style="display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:220px;text-align:center;padding:40px 24px;background:var(--panel, #0d1117);color:var(--fg, #e6edf3);font-family:system-ui,-apple-system,sans-serif">'
211
+ +'<svg width="44" height="44" viewBox="0 0 48 48" fill="none"><g fill="var(--accent, #3fb950)" transform="translate(24 24)"><circle r="4.1"/><g id="ri"><path d="M-2.85 -5.2 L0 -20.6 L2.85 -5.2 L1.15 1.1 L-1.15 1.1 Z"/></g><use href="#ri" transform="rotate(45)"/><use href="#ri" transform="rotate(90)"/><use href="#ri" transform="rotate(135)"/><use href="#ri" transform="rotate(180)"/><use href="#ri" transform="rotate(225)"/><use href="#ri" transform="rotate(270)"/><use href="#ri" transform="rotate(315)"/></g></svg>'
212
+ +'<div style="margin-top:14px;font-size:17px;font-weight:700">'+label+'</div>'
213
+ +'<div style="margin-top:6px;font-size:13px;color:#8b949e;max-width:340px;line-height:1.5">'+desc+'</div>'
214
+ +'</div>';
215
+ }
216
+ renderIdle();
217
+
156
218
  function send(method,params){
157
219
  var id=nextId++;
158
220
  return new Promise(function(resolve,reject){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchyn/mcp",
3
- "version": "1.17.0",
3
+ "version": "1.17.2",
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",