ads-mcp-for-snapchat 0.9.2 → 0.9.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/CHANGELOG.md +18 -0
- package/PRIVACY.md +2 -0
- package/README.md +17 -6
- package/SECURITY.md +1 -1
- package/broker/worker.js +7 -4
- package/package.json +2 -2
- package/src/broker.js +1 -1
- package/src/cli.js +0 -0
- package/src/index.js +1 -1
- package/src/setup.js +23 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.9.4 (2026-11-16)
|
|
6
|
+
|
|
7
|
+
- Claude Desktop extension: an icon, a link to the privacy page, and the corrected description (the shared login needs no OAuth app).
|
|
8
|
+
|
|
9
|
+
- `setup` asks less: a single ad account is chosen automatically, and one question ("use the safe defaults?", Enter = yes) replaces the budget, country and read-only questions. Answer n to get them back.
|
|
10
|
+
- README: a "Get started in 2 minutes" section at the top; the first section no longer says an OAuth app is required.
|
|
11
|
+
|
|
12
|
+
- Docs: PRIVACY.md and SECURITY.md name the default login service address and how to turn it off; the Claude Desktop extension description no longer says an OAuth app is required.
|
|
13
|
+
|
|
14
|
+
## 0.9.3 (2026-11-16)
|
|
15
|
+
|
|
16
|
+
- **Shared login is live.** The login service is deployed and the package uses it by default (`npx -y ads-mcp-for-snapchat setup`, choose 1). Verified on a real Snapchat login: login, account list, saving the access, renewing it through the service, and `verify` (20 of 24 checks ran; the rest need optional settings). Snap has not yet been asked to confirm a shared app for other advertisers; own-app setup still works.
|
|
17
|
+
- `setup` checks the name given for the server in Claude (letters, numbers, - and _) instead of passing a pasted command to Claude Code.
|
|
18
|
+
|
|
19
|
+
- Login service: the browser cookie that ties a login to the browser that started it is now sent after Snapchat's redirect in every browser (SameSite=None instead of Lax), and the error page says whether the link expired or the browser did not start the login.
|
|
20
|
+
|
|
21
|
+
- A GitHub Action builds the Claude Desktop file and creates the GitHub Release when a version tag is pushed.
|
|
22
|
+
|
|
5
23
|
## 0.9.2 (2026-11-15)
|
|
6
24
|
|
|
7
25
|
- README: the "Not built" list no longer names things that now exist (product sets, dynamic product creatives, other ad squad goals); "Verified live" now says what the real-account `verify` run covered and what is still only tested against a fake Snap; the shared login is marked as not available until a service is deployed.
|
package/PRIVACY.md
CHANGED
|
@@ -8,6 +8,8 @@ Ads MCP for Snapchat is open-source software that runs **on your own computer**.
|
|
|
8
8
|
- Your AI app (for example Claude) sees the data the tool returns, under that app's own terms.
|
|
9
9
|
|
|
10
10
|
## The shared login service (optional)
|
|
11
|
+
The default service is at `https://ads-mcp-for-snapchat-login.ads-mcp.workers.dev`. It is run by the maintainer of this project on Cloudflare Workers; the code it runs is `broker/worker.js` in this repository. Set `SNAP_BROKER_URL=off` to turn it off, or point `SNAP_BROKER_URL` at your own copy.
|
|
12
|
+
|
|
11
13
|
The service lets you log in with Snapchat without creating your own Snapchat app. It is a small, stateless program (`broker/worker.js`, running on Cloudflare Workers).
|
|
12
14
|
|
|
13
15
|
**What it does**
|
package/README.md
CHANGED
|
@@ -4,8 +4,17 @@ A local [MCP](https://modelcontextprotocol.io) server that lets an AI assistant
|
|
|
4
4
|
|
|
5
5
|
> **Unofficial.** Not affiliated with or endorsed by Snap Inc. This tool can change real ad campaigns that spend real money. You use it at your own risk (see LICENSE). Check Snap's developer terms for your own use. Review every preview before approving.
|
|
6
6
|
|
|
7
|
+
## Get started in 2 minutes
|
|
8
|
+
**Claude Desktop (no terminal):** download `ads-mcp-for-snapchat-<version>.mcpb` from the [latest release](https://github.com/Usame794/snapchat-ads-mcp/releases/latest), open it, leave Client ID and secret empty, then ask Claude: "Connect my Snapchat ad account." Log in with Snapchat and pick the ad account.
|
|
9
|
+
|
|
10
|
+
**Claude Code, Cursor, VS Code or a terminal:**
|
|
11
|
+
```bash
|
|
12
|
+
npx -y ads-mcp-for-snapchat setup
|
|
13
|
+
```
|
|
14
|
+
Choose **1. Shared login**, log in with Snapchat, pick the ad account, and press Enter at the safety question (it starts read-only; nothing can be changed until you allow it). Then check everything with `npx -y ads-mcp-for-snapchat verify`.
|
|
15
|
+
|
|
7
16
|
## What it is, and what it is not
|
|
8
|
-
- **It runs on your machine, with your own Snapchat
|
|
17
|
+
- **It runs on your machine, with your own ad account.** You connect with a normal Snapchat login (the shared login service) or with your own Snapchat OAuth app. The tool itself is not hosted, and no ad account data leaves your computer except to Snap's API.
|
|
9
18
|
- **It is a safety-first tool, not an autopilot.** Writes are previewed first, created things start paused, and there are hard limits on money. See "Safety rules" below, and read "What the approval token is not".
|
|
10
19
|
- **It is not a hosted service.** Services that only accept remote MCP servers (for example ChatGPT connectors) cannot use it as it is. Do not expose it on the internet.
|
|
11
20
|
- **Money limits are in your account's currency.** Defaults (`SNAP_MAX_DAILY_BUDGET=1000`, `SNAP_MAX_BID=50`) are deliberately conservative; set your own in `.env`.
|
|
@@ -30,9 +39,11 @@ In every case `snap_create_ad` picks the matching ad type (REMOTE_WEBPAGE, SNAP_
|
|
|
30
39
|
`npx -y ads-mcp-for-snapchat verify` (or `node src/cli.js verify` in a git checkout; add `--details` to also list the specific problems it found: broken links, pixel issues, feed errors, audience problems, rejected ads) runs every read-only tool on your real account, one by one, and prints a short list: what worked, what failed and why, what was skipped (and which setting it needs). It changes nothing: it only calls tools that declare themselves read-only and forces read-only mode. The output contains no tokens and only shortened ids, so it is safe to paste into an issue.
|
|
31
40
|
|
|
32
41
|
## Easiest: log in with Snapchat (no OAuth app)
|
|
33
|
-
|
|
42
|
+
Run `npx -y ads-mcp-for-snapchat setup` and choose **1. Shared login**, or install the Claude Desktop file, leave Client ID and secret empty, and ask Claude: "Connect my Snapchat ad account." You log in with Snapchat in your browser and pick your ad account. No OAuth app to create.
|
|
43
|
+
|
|
44
|
+
How it works: a small login service (`broker/`, code in this repository) passes your login along and stores nothing, and your access is sealed so only your own computer can read it. Read `PRIVACY.md` first. The tool itself still runs only on your computer.
|
|
34
45
|
|
|
35
|
-
|
|
46
|
+
**Status: new.** It works end to end on the maintainer's real login and ad accounts, but Snap has not yet been asked to confirm that one shared app may serve other advertisers. If the login is refused for you, or you prefer not to rely on a shared service, use your own Snapchat app (next section: about 5 minutes, and `setup` walks you through it) or run your own copy of the service (`broker/README.md`).
|
|
36
47
|
|
|
37
48
|
## Easy setup (about 5 minutes)
|
|
38
49
|
First, once: in [Snap Business Manager](https://business.snapchat.com) open **Business Details > OAuth Apps > + OAuth App**, use the Redirect URI `https://127.0.0.1/callback`, and copy the **Client ID** and **Client Secret** (the secret is shown only once).
|
|
@@ -92,7 +103,7 @@ With this setting the server asks **you**, through the MCP client's own dialog (
|
|
|
92
103
|
| `SNAP_ACCOUNT_CURRENCY` | not set | If set (e.g. `USD`), writes are refused unless the ad account uses that currency |
|
|
93
104
|
| `SNAP_READ_ONLY` | 0 | `1` = previews and reads only |
|
|
94
105
|
| `SNAP_CAPI_TOKEN` | (none) | Only for the Conversions API test tools (`snap_capi_*`): a Conversions API token made in Ads Manager (Events Manager > Conversions API > Generate token), used if Snap does not accept your normal login there. Sent only to `tr.snapchat.com`. |
|
|
95
|
-
| `SNAP_BROKER_URL` | (
|
|
106
|
+
| `SNAP_BROKER_URL` | the maintainer's login service (`off` turns the shared login off) | The shared login service: connect with a normal Snapchat login and no OAuth app. https only. A refresh token is sent there, so use only a service you trust (see `PRIVACY.md`, `broker/README.md`). `setup` saves it for you. |
|
|
96
107
|
| `SNAP_HOME` | `~/.ads-mcp-for-snapchat` for an npm install, the project folder for a git checkout | Where the settings file, the change log and `exports/` live. Set it to keep them somewhere else. |
|
|
97
108
|
| `SNAP_PORTFOLIO_FILES` | (none) | Absolute paths of the settings files of the accounts for `snap_portfolio_summary`, comma-separated (up to 10). Only you can set it: the AI app cannot pick files. |
|
|
98
109
|
| `SNAP_TOOLSETS` | all | Show only some tool groups to the AI app: `setup, read, reports, checks, changes, create` (comma-separated). Fewer tools make some apps faster and less error-prone, e.g. `setup,reports,checks` for an analyst. It only hides tools. |
|
|
@@ -270,12 +281,12 @@ Verified on the maintainer's own ad account. Anything not listed here is covered
|
|
|
270
281
|
|
|
271
282
|
**Before the safety layer (earlier tests, on throwaway paused objects):** pause/enable (single and bulk), budget, bid, targeting, schedule, bulk edits, campaign / ad squad copy, ad and creative clone, create campaign and ad squad, lookalike and pixel audiences, customer-list audience (with fake data), influencer flow and batch, media upload (simple and chunked), async reports, health check, review issues, pixel health, and the guarded delete (on a throwaway campaign).
|
|
272
283
|
|
|
273
|
-
**Read-only run of `verify` on the maintainer's real ad account (November 2026, 23 of 24 tools worked):** `snap_ping`; the campaign, ad squad, media and audience lists; spend pacing; anomaly check; funnel; hourly report; billing check; audience health; unused media; budget advice; landing page check; health check; review issues; dynamic template list; catalog feed status; pixel health; audience size; audience insights; and the public Ads Gallery lookup. That run found real bugs that mocked tests could not (Snap's account-level stats accept only the `spend` field; the landing page check read too much; a shop's bot protection answered 403), all fixed in 0.9.1 and after.
|
|
284
|
+
**Read-only run of `verify` on the maintainer's real ad account (November 2026, 23 of 24 tools worked; and 20 of 24 with none failed on a second account connected through the shared login, the rest skipped for optional settings):** `snap_ping`; the campaign, ad squad, media and audience lists; spend pacing; anomaly check; funnel; hourly report; billing check; audience health; unused media; budget advice; landing page check; health check; review issues; dynamic template list; catalog feed status; pixel health; audience size; audience insights; and the public Ads Gallery lookup. That run found real bugs that mocked tests could not (Snap's account-level stats accept only the `spend` field; the landing page check read too much; a shop's bot protection answered 403), all fixed in 0.9.1 and after.
|
|
274
285
|
|
|
275
286
|
**Not verified live:**
|
|
276
287
|
- Everything that **writes** and was added in 0.7.0 or later: catalog ad creation (product sets, templates, campaign, ad squad, creative, ad), frequency cap, ad schedule, placement, bid-strategy switching, and the new ad squad goals. Built from Snap's documentation and mocked tests.
|
|
277
288
|
- The Conversions API test tools (they need a Conversions API token: `SNAP_CAPI_TOKEN`), the portfolio summary (needs a second settings file), blended ROAS (needs your store's revenue), creative comparison, ad preview, and the playbooks.
|
|
278
|
-
- The shared login
|
|
289
|
+
- The shared login for people **outside** the maintainer's organization, and the Claude Desktop extension's login. (Setup's shared login, the account list and renewing the login through the service were run live on the maintainer's account.)
|
|
279
290
|
- The 24-hour spend limit and absolute limits on real writes (mocked tests only), `SNAP_HUMAN_APPROVAL=elicit` in Claude Code, `snap_create_creative` with a WEB_VIEW link, a campaign-level `snap_set_daily_budget`, a successful `snap_delete` of an ad squad, ad or audience, a customer-list upload of real data, and Node 18 / 20 outside CI.
|
|
280
291
|
|
|
281
292
|
## Not built
|
package/SECURITY.md
CHANGED
|
@@ -22,7 +22,7 @@ Everything runs on your computer. These are the only outside addresses it contac
|
|
|
22
22
|
| `tr.snapchat.com` | Conversions API **test** events and their status (`snap_capi_*`) | Your access token and one test event; an email is hashed first. Real conversion events are never sent. |
|
|
23
23
|
| `adsapi.snapchat.com/v1/ads_library/...` | Competitor ads (`snap_competitor_ads`) | The advertiser name you search for. **No token**, nothing about your account. |
|
|
24
24
|
| The links of your own active ads | `snap_check_landing_pages` opens each link once | A plain request. Only `https`, never private, loopback or link-local addresses, and every redirect is checked again. No credentials. |
|
|
25
|
-
| The shared login service (`SNAP_BROKER_URL`), only if you chose the shared login | Logging in, and renewing the 30-minute access token | Your refresh token (it must, to renew). It stores nothing; see `PRIVACY.md`. Only use a service you trust. |
|
|
25
|
+
| The shared login service (`SNAP_BROKER_URL`, default `ads-mcp-for-snapchat-login.ads-mcp.workers.dev`; `off` disables it), only if you chose the shared login | Logging in, and renewing the 30-minute access token | Your refresh token (it must, to renew). It stores nothing; see `PRIVACY.md`. Only use a service you trust. |
|
|
26
26
|
|
|
27
27
|
Text that comes back from outside (competitors' ads, page contents, ad review reasons) is untrusted data: it is cut, marked as such in the answer, and must not be followed as instructions. `SNAP_PORTFOLIO_FILES` can only be set by you in your own settings; the AI app cannot choose which files are read. The audit log removes credentials, emails and phone numbers from logged arguments.
|
|
28
28
|
|
package/broker/worker.js
CHANGED
|
@@ -79,16 +79,19 @@ async function login(request, env) {
|
|
|
79
79
|
const state = await signState(env, { p: Number(port), k: pk, n: nonce, e: Date.now() + STATE_MINUTES * 60_000 });
|
|
80
80
|
const auth = new URL(AUTHORIZE);
|
|
81
81
|
auth.search = new URLSearchParams({ response_type: "code", client_id: env.SNAP_CLIENT_ID, redirect_uri: `${origin(request, env)}/callback`, scope: "snapchat-marketing-api", state }).toString();
|
|
82
|
-
return new Response(null, { status: 302, headers: { Location: auth.toString(), "Set-Cookie": `${COOKIE}=${nonce}; Path=/callback; Max-Age=${STATE_MINUTES * 60}; HttpOnly; Secure; SameSite=
|
|
82
|
+
return new Response(null, { status: 302, headers: { Location: auth.toString(), "Set-Cookie": `${COOKIE}=${nonce}; Path=/callback; Max-Age=${STATE_MINUTES * 60}; HttpOnly; Secure; SameSite=None`, ...SECURITY_HEADERS } });
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
async function callback(request, env, fetchImpl) {
|
|
86
86
|
need(env, "SNAP_CLIENT_ID", "SNAP_CLIENT_SECRET", "STATE_KEY");
|
|
87
87
|
const u = new URL(request.url);
|
|
88
|
-
const clear = { "Set-Cookie": `${COOKIE}=; Path=/callback; Max-Age=0; HttpOnly; Secure; SameSite=
|
|
88
|
+
const clear = { "Set-Cookie": `${COOKIE}=; Path=/callback; Max-Age=0; HttpOnly; Secure; SameSite=None` };
|
|
89
89
|
const state = await readState(env, u.searchParams.get("state"));
|
|
90
|
-
if (!state || !state.k || !validPort(String(state.p)) || !validNonce(state.n)
|
|
91
|
-
return page("Login expired", "<h1>This login link is not valid any more</h1><p>It
|
|
90
|
+
if (!state || !state.k || !validPort(String(state.p)) || !validNonce(state.n)) {
|
|
91
|
+
return page("Login expired", "<h1>This login link is not valid any more</h1><p>It has expired or was changed. Start again from the setup command.</p>", 400, clear);
|
|
92
|
+
}
|
|
93
|
+
if (getCookie(request, COOKIE) !== state.n) {
|
|
94
|
+
return page("Login expired", "<h1>This browser did not start the login</h1><p>The login must finish in the same browser window it started in, and the address must not be reloaded or opened a second time. Allow cookies for this site, then start again from the setup command.</p>", 400, clear);
|
|
92
95
|
}
|
|
93
96
|
if (u.searchParams.get("error")) return page("Login cancelled", "<h1>Snapchat did not approve the login</h1><p>Nothing was saved. You can close this tab and start again.</p>", 400, clear);
|
|
94
97
|
const code = u.searchParams.get("code");
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ads-mcp-for-snapchat",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"description": "Unofficial local MCP server for the Snapchat Marketing API: reports, audits and safe, previewed changes to campaigns, ad squads and ads.",
|
|
5
5
|
"mcpName": "io.github.Usame794/ads-mcp-for-snapchat",
|
|
6
|
-
"adsMcpBroker": "",
|
|
6
|
+
"adsMcpBroker": "https://ads-mcp-for-snapchat-login.ads-mcp.workers.dev",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "src/index.js",
|
|
9
9
|
"bin": {
|
package/src/broker.js
CHANGED
|
@@ -22,7 +22,7 @@ function packageDefault() {
|
|
|
22
22
|
// sent to this address, so a plain http address to anything else is refused.
|
|
23
23
|
export function brokerUrlFrom(env = process.env, fallback = packageDefault()) {
|
|
24
24
|
const raw = String(env.SNAP_BROKER_URL ?? "").trim() || String(fallback ?? "").trim();
|
|
25
|
-
if (!raw) return null;
|
|
25
|
+
if (!raw || /^(off|none|no)$/i.test(raw)) return null; // SNAP_BROKER_URL=off turns the shared login off
|
|
26
26
|
let u;
|
|
27
27
|
try {
|
|
28
28
|
u = new URL(raw);
|
package/src/cli.js
CHANGED
|
File without changes
|
package/src/index.js
CHANGED
|
@@ -20,7 +20,7 @@ try {
|
|
|
20
20
|
}
|
|
21
21
|
// Snapshot of the non-secret settings taken at startup. Later edits to .env do not change limits or the target account.
|
|
22
22
|
const settings = { ...process.env };
|
|
23
|
-
const server = new McpServer({ name: "ads-mcp-for-snapchat", version: "0.9.
|
|
23
|
+
const server = new McpServer({ name: "ads-mcp-for-snapchat", version: "0.9.4" });
|
|
24
24
|
// Only the OAuth credentials are re-read from .env when a token is needed, so replacing them does not require a restart.
|
|
25
25
|
const client = new SnapClient({ beforeToken: () => loadEnv(undefined, { override: true }), timeoutMs: policy.httpTimeoutMs });
|
|
26
26
|
registerTools(server, client, settings);
|
package/src/setup.js
CHANGED
|
@@ -195,7 +195,7 @@ export async function runSetup({ io, file = envFile(), fetchImpl = fetch, open =
|
|
|
195
195
|
const accounts = await listAdAccounts(client);
|
|
196
196
|
if (!accounts.length) throw new Error("This login cannot see any ad account. Ask the account's admin to add you, then run setup again.");
|
|
197
197
|
accounts.forEach((a, i) => say(` ${String(i + 1).padStart(2)}. ${a.name} (${a.organization}, ${a.status}, ${a.currency})`));
|
|
198
|
-
const pick = await askUntil(io, `Number of the ad account (1-${accounts.length}): `, (a) => (Number.isInteger(Number(a)) && Number(a) >= 1 && Number(a) <= accounts.length ? null : `Type a number from 1 to ${accounts.length}.`));
|
|
198
|
+
const pick = accounts.length === 1 ? "1" : await askUntil(io, `Number of the ad account (1-${accounts.length}): `, (a) => (Number.isInteger(Number(a)) && Number(a) >= 1 && Number(a) <= accounts.length ? null : `Type a number from 1 to ${accounts.length}.`));
|
|
199
199
|
const chosen = accounts[Number(pick) - 1];
|
|
200
200
|
if (chosen.id !== cur.SNAP_AD_ACCOUNT_ID) {
|
|
201
201
|
setEnvValue("SNAP_AD_ACCOUNT_ID", chosen.id, file);
|
|
@@ -209,22 +209,41 @@ export async function runSetup({ io, file = envFile(), fetchImpl = fetch, open =
|
|
|
209
209
|
|
|
210
210
|
// 4. Safety
|
|
211
211
|
cur = readSettings(file);
|
|
212
|
-
say("STEP 4 of 5: safety settings
|
|
212
|
+
say("STEP 4 of 5: safety settings");
|
|
213
|
+
const defaultBudget = cur.SNAP_MAX_DAILY_BUDGET || 1000;
|
|
214
|
+
let ro = "y";
|
|
215
|
+
const quick = await io.ask(` Use the safe defaults (start read-only; the AI may never set a daily budget above ${defaultBudget} ${chosen.currency ?? ""})? [Y/n]: `);
|
|
216
|
+
if (!/^n/i.test(quick)) {
|
|
217
|
+
setEnvValue("SNAP_MAX_DAILY_BUDGET", String(defaultBudget), file);
|
|
218
|
+
setEnvValue("SNAP_READ_ONLY", "1", file);
|
|
219
|
+
say(" Saved. You can change these later in the settings file.");
|
|
220
|
+
say("");
|
|
221
|
+
} else {
|
|
222
|
+
say(" (Enter keeps the value in brackets)");
|
|
213
223
|
const budget = await askUntil(io, ` Highest daily budget the AI may set, in ${chosen.currency ?? "account currency"} [${cur.SNAP_MAX_DAILY_BUDGET || 1000}]: `, (a) => (!a || (/^\d+(\.\d+)?$/.test(a) && Number(a) > 0) ? null : "A plain number, such as 300."));
|
|
214
224
|
if (budget) setEnvValue("SNAP_MAX_DAILY_BUDGET", budget, file);
|
|
215
225
|
const country = await askUntil(io, ` Main country, 2 letters such as us, sa, ae (Enter to skip) [${cur.SNAP_DEFAULT_COUNTRY || ""}]: `, (a) => (!a || /^[a-z]{2}$/i.test(a) ? null : "Two letters, such as us."));
|
|
216
226
|
if (country) setEnvValue("SNAP_DEFAULT_COUNTRY", country.toLowerCase(), file);
|
|
217
|
-
|
|
227
|
+
ro = await io.ask(" Start in read-only mode, so nothing can be changed until you are ready? [Y/n]: ");
|
|
218
228
|
setEnvValue("SNAP_READ_ONLY", /^n/i.test(ro) ? "0" : "1", file);
|
|
219
229
|
say(" Saved.");
|
|
220
230
|
say("");
|
|
231
|
+
}
|
|
221
232
|
|
|
222
233
|
// 5. Register
|
|
223
234
|
say("STEP 5 of 5: add it to your AI app");
|
|
224
235
|
const launch = launchCommand(root);
|
|
225
236
|
const defaultFile = join(dataDir({ root }), ".env");
|
|
226
237
|
const envArgs = file === defaultFile ? [] : ["-e", `SNAP_ENV_FILE=${file}`];
|
|
227
|
-
|
|
238
|
+
let name = "snapchat-ads";
|
|
239
|
+
for (let tries = 0; tries < 3; tries++) {
|
|
240
|
+
const answer = ((await io.ask(" Name for this server in Claude [snapchat-ads]: ")) || "snapchat-ads").trim();
|
|
241
|
+
if (/^[A-Za-z0-9_-]{1,64}$/.test(answer)) {
|
|
242
|
+
name = answer;
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
say(" Use only letters, numbers, - and _ (for example snapchat-ads).");
|
|
246
|
+
}
|
|
228
247
|
let registered = false;
|
|
229
248
|
if (claudeAvailable(exec)) {
|
|
230
249
|
try {
|