@orchyn/mcp 1.1.0 → 1.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/README.md +15 -13
- package/dist/config.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -53,22 +53,21 @@ finishes, and returns the full result (analysis, job metadata, cost) as JSON.
|
|
|
53
53
|
|
|
54
54
|
- Node.js >= 18 (tested on Node 22)
|
|
55
55
|
- An orchyn account (created automatically on first sign-in — Google sign-in
|
|
56
|
-
via `orchyn
|
|
56
|
+
via `npx @orchyn/mcp login`; the dashboard is **not** required: the server
|
|
57
57
|
auto-creates a default workspace + app for new accounts)
|
|
58
|
-
- Access to an orchyn server
|
|
58
|
+
- Access to an orchyn server — defaults to the cloud API
|
|
59
|
+
(`https://api.orchyn.com`); point `ORCHYN_BASE_URL` at your own deployment
|
|
60
|
+
for local development
|
|
59
61
|
|
|
60
62
|
## Quick start
|
|
61
63
|
|
|
62
64
|
```bash
|
|
63
|
-
npm install
|
|
64
|
-
npm run build
|
|
65
|
-
|
|
66
65
|
# 1. Sign in with your orchyn account (Google sign-in opens in your browser)
|
|
67
66
|
npx @orchyn/mcp login
|
|
68
67
|
# or with email/password:
|
|
69
68
|
npx @orchyn/mcp login --email you@example.com --password '...'
|
|
70
69
|
|
|
71
|
-
# 2.
|
|
70
|
+
# 2. Add it to your MCP client (see install section above) — or run it manually:
|
|
72
71
|
npx @orchyn/mcp # stdio (default; for Claude Desktop / Cursor)
|
|
73
72
|
npx @orchyn/mcp --http # remote HTTP with OAuth (for OpenAI Agents SDK)
|
|
74
73
|
```
|
|
@@ -185,7 +184,7 @@ console.log(result.output);
|
|
|
185
184
|
```
|
|
186
185
|
|
|
187
186
|
For a local stdio process with the Agents SDK, use `StdioMCPClient` (Python:
|
|
188
|
-
`StdioMCPClient(command="npx", args=["orchyn
|
|
187
|
+
`StdioMCPClient(command="npx", args=["@orchyn/mcp"])`).
|
|
189
188
|
|
|
190
189
|
## Command line
|
|
191
190
|
|
|
@@ -202,7 +201,7 @@ orchyn-mcp --help Show help
|
|
|
202
201
|
|
|
203
202
|
| Variable | Default | Description |
|
|
204
203
|
|----------|---------|-------------|
|
|
205
|
-
| `ORCHYN_BASE_URL` | `
|
|
204
|
+
| `ORCHYN_BASE_URL` | `https://api.orchyn.com` | orchyn server base URL (trailing slash stripped) |
|
|
206
205
|
| `ORCHYN_ACCESS_TOKEN` | — | orchyn JWT access token; takes priority over the credentials file |
|
|
207
206
|
| `ORCHYN_CREDENTIALS_FILE` | `~/.config/orchyn-mcp/credentials.json` | token store path |
|
|
208
207
|
| `ORCHYN_PUBLIC_URL` | `http://localhost:3457` | public base URL advertised in OAuth metadata (HTTP mode) |
|
|
@@ -235,17 +234,20 @@ per the MCP 2025-03-26 spec):
|
|
|
235
234
|
- TikTok: `tiktok.com/*`, `vm.tiktok.com/*` (and `www.`/`m.` subdomains)
|
|
236
235
|
- Instagram: `instagram.com/*` (reels, posts), `instagr.am/*`
|
|
237
236
|
- YouTube: `youtube.com/*` (including `/shorts/`), `youtu.be/*`, `m.youtube.com/*`
|
|
237
|
+
- X/Twitter: `x.com/*`, `twitter.com/*` — supported by `get_social_media` and
|
|
238
|
+
`understand_social_post` (`analyze_video` covers TikTok/Instagram/YouTube only)
|
|
238
239
|
|
|
239
|
-
Other hosts are rejected by the
|
|
240
|
+
Other hosts are rejected by the tools.
|
|
240
241
|
|
|
241
242
|
## Troubleshooting
|
|
242
243
|
|
|
243
244
|
- **`Not authenticated with orchyn` / 401**: run `npx @orchyn/mcp login` or set
|
|
244
245
|
`ORCHYN_ACCESS_TOKEN`.
|
|
245
|
-
- **402 paywall
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
free
|
|
246
|
+
- **402 paywall / `insufficient MCP credits`**: your orchyn account is out of
|
|
247
|
+
credits for this tool. Each call costs: `get_social_media` 1,
|
|
248
|
+
`discover_social_videos` 2, `understand_social_post` 10, `analyze_video`
|
|
249
|
+
first-call free. Top up via the orchyn dashboard billing page or
|
|
250
|
+
`POST /billing/mcp-credits/checkout`.
|
|
249
251
|
- **Expired refresh token**: the stored refresh token was rejected by the
|
|
250
252
|
orchyn server. Run `npx @orchyn/mcp login` again to re-authenticate.
|
|
251
253
|
- **`Could not reach the orchyn server`**: `ORCHYN_BASE_URL` is unreachable or
|
package/dist/config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import os from "node:os";
|
|
3
|
-
export const DEFAULT_BASE_URL = "
|
|
3
|
+
export const DEFAULT_BASE_URL = "https://api.orchyn.com";
|
|
4
4
|
export const DEFAULT_PUBLIC_URL = "http://localhost:3457";
|
|
5
5
|
export const DEFAULT_PORT = 3457;
|
|
6
6
|
export function stripTrailingSlash(url) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orchyn/mcp",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "MCP server for orchyn -
|
|
3
|
+
"version": "1.1.1",
|
|
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",
|
|
7
7
|
"files": [
|