@orchyn/mcp 1.3.0 → 1.3.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/README.md CHANGED
@@ -42,6 +42,8 @@ npx @orchyn/mcp login # one-time sign-in (Google)
42
42
  | `get_social_media` | 1 | Fetch a post's media from a URL: `contentType` (video/image/carousel/slideshow), title, caption, author, stats, direct media URLs **+ inline thumbnail image in chat**. |
43
43
  | `discover_social_posts` | 2 | **Preferred.** Find recent posts (video/image/carousel/slideshow) for a niche (YouTube via `yt-dlp` search; TikTok/Instagram via Apify). Each post includes title/caption, views/likes/comments, author, `externalUrl` + **inline thumbnails (4 at a time)** — see *Images in chat* below. Supports `limit`/`offset` pagination (“next”). |
44
44
  | `understand_social_post` | 10 | Import a post URL **and** analyze it with multimodal AI over the actual video/images: factual `whatHappens` description, hook strength, viral triggers, format breakdown, variation ideas, suggested hook/hashtags. Includes inline thumbnails. |
45
+ | `check_mcp_credits` | free | Check your MCP credit balance, billing URL and pack size — no cost. |
46
+ | `buy_mcp_credits` | free | Get a Stripe Checkout URL to buy a credit pack — open it to pay; credits are added automatically. No cost to call. Also at `https://orchyn.com/settings?tab=billing`. |
45
47
 
46
48
  All tools require a connected orchyn account and are billed against your orchyn credit balance (`POST /billing/mcp-credits/checkout` tops up).
47
49
 
package/dist/index.js CHANGED
@@ -122,6 +122,32 @@ export function createServer(opts) {
122
122
  return toolError("discover_social_posts failed", err);
123
123
  }
124
124
  });
125
+ server.registerTool("check_mcp_credits", {
126
+ title: "Check MCP Credits",
127
+ description: "Check your MCP credit balance, billing URL and pack size. No cost — call anytime to see remaining credits before running other tools.",
128
+ inputSchema: z.object({}).strict(),
129
+ }, async (_args, extra) => {
130
+ const client = makeClientFor(extra, opts);
131
+ try {
132
+ return toToolResult(await client.callTool("check_mcp_credits", {}));
133
+ }
134
+ catch (err) {
135
+ return toolError("check_mcp_credits failed", err);
136
+ }
137
+ });
138
+ server.registerTool("buy_mcp_credits", {
139
+ title: "Buy MCP Credits",
140
+ description: "Buy an MCP credit pack via Stripe Checkout. Returns a secure checkout URL — open it in your browser to pay. Credits are added automatically after payment. No cost to call.",
141
+ inputSchema: z.object({}).strict(),
142
+ }, async (_args, extra) => {
143
+ const client = makeClientFor(extra, opts);
144
+ try {
145
+ return toToolResult(await client.callTool("buy_mcp_credits", {}));
146
+ }
147
+ catch (err) {
148
+ return toolError("buy_mcp_credits failed", err);
149
+ }
150
+ });
125
151
  server.registerTool("understand_social_post", {
126
152
  title: "Understand Social Post",
127
153
  description: "Import a social post URL AND understand it with multimodal AI over the actual video/images: " +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchyn/mcp",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
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",