@nooticr/mcp 1.26.60 → 1.26.61
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 +3 -1
- package/dist/shared/creative.js +67 -0
- package/dist/shared/loading-plans.js +3 -0
- package/dist/shared/output-schemas.js +18 -0
- package/dist/shared/tools-def.js +12 -0
- package/dist/shared/tools.js +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ npx @nooticr/mcp login # one-time sign-in (Google)
|
|
|
52
52
|
|
|
53
53
|
## Tools
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
102 tools, grouped by what you are trying to do. Prices are in nooticr credits and
|
|
56
56
|
match what the server actually charges.
|
|
57
57
|
|
|
58
58
|
The job tools under **Answer a question you actually have** are not
|
|
@@ -103,6 +103,8 @@ them caps that fan-out with an argument.
|
|
|
103
103
|
| `catch_up_watchlist` | 2 per creator | What everyone you watch has posted since your last catch-up. Compares against the snapshot taken last time and moves it forward, so it answers "what is new" rather than "what exists". |
|
|
104
104
|
| `create_brand_watch` | free to call | Schedule a recurring sweep and get emailed only what is new. `kind: "mentions"` (default) is a recurring `search_mentions` sweep for `term`/`platforms`; `kind: "competitor"` is a recurring `get_user_posts` check on one creator (`handle`/`platform`), mailing only what beats their own recent median; `kind: "report"` runs `job: {tool, args}` — `niche_report` (mailed as written every run) or `discover_social_posts` (only unseen posts) — on the schedule; `kind: "portfolio"` sweeps up to 25 `terms` (your brand, products, competitors) across the same networks under one budget and mails one digest with each term's share of voice. Two calls by design: the first returns the quote (cost per run, cadence, cost per day) and a `confirmationToken`; nothing is created or charged until you call it again with `confirm: true` and that token. Each run then bills the same as calling the matching tool yourself — 2 credits per network (5 for Xiaohongshu) for mentions, a flat 2 credits for competitor, the job tool's own price for a report (3 for `niche_report`), and a mentions sweep per term for a portfolio — whose budget is split evenly and trims networks, never terms, and which refunds any term whose sweep fails. |
|
|
105
105
|
| `list_brand_watches` | free | Every watch you have scheduled: term, networks, cadence, cost per run, credits spent so far, runs made, and when the next one is due. |
|
|
106
|
+
| `creative_assets_list` | free | The creative assets (voice-overs, sound effects, music, images, videos, composites) generated in your workspace, newest first, with url, kind, dimensions or duration, and provenance. Filter by `appId`, `kind`, `briefId` or `since`; page with `nextCursor`. |
|
|
107
|
+
| `creative_job_status` | free | Where an asynchronous creative job stands by `jobId`: queued, running, done, failed or canceled, with the finished assets and the credits quoted, charged and refunded. Poll after `pollAfterSeconds`. |
|
|
106
108
|
| `mention_trend` | free | **What a watch has seen over time**, which nothing else here answers — every other read is about now. One point per run: when it ran, how many mentions it found, how many were new, and both counts per network, so "which network is growing" and "did it go quiet or did we stop looking" come apart. On a competitor watch each point carries the median that run measured, which turns "they beat their own median" into "and that median has doubled". Plus the mentions more than one run has seen. Free because the sweeps were billed when they ran; charging again to read what was already paid for is the thing it fixes. |
|
|
107
109
|
| `update_watch_portfolio` | free | Add or remove a portfolio watch's terms by `watchId`. No new confirmation, because the per-run budget you agreed to does not move — more terms split it more ways, and the reply names any network a run no longer reaches. |
|
|
108
110
|
| `stop_brand_watch` | free | Stop a watch by `watchId` or `term`. Immediate — the next run does not happen and nothing more is charged. |
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The free read half of nooticr-server's `creative_*` family (CR1): list the
|
|
3
|
+
* creative assets generated in the workspace and poll one asynchronous job.
|
|
4
|
+
* Both are passthroughs to the server's `POST /mcp` dispatch, which owns the
|
|
5
|
+
* tenancy check (another workspace's id answers "not found").
|
|
6
|
+
*
|
|
7
|
+
* The paid creative tools (CR2-CR6) register here when they ship;
|
|
8
|
+
* `creative_test_render` is a server test fixture and is never registered.
|
|
9
|
+
* Neither tool has a view yet: the asset list would be a gallery, which the
|
|
10
|
+
* design system has no card for.
|
|
11
|
+
*/
|
|
12
|
+
import { z } from "zod";
|
|
13
|
+
import { OUTPUT_SCHEMAS } from "./output-schemas.js";
|
|
14
|
+
function toResult(proxy) {
|
|
15
|
+
const textBlock = proxy.contentBlocks.find((c) => c.type === "text");
|
|
16
|
+
const structured = proxy.structured;
|
|
17
|
+
// The assets and the job's finished outputs are in `structuredContent`; with no
|
|
18
|
+
// view here the model reads them from the text, so carry the payload in both.
|
|
19
|
+
const text = structured ? JSON.stringify(structured) : String(textBlock?.text ?? "");
|
|
20
|
+
return { content: [{ type: "text", text }], structuredContent: structured };
|
|
21
|
+
}
|
|
22
|
+
function failed(prefix, err) {
|
|
23
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
24
|
+
return {
|
|
25
|
+
content: [{ type: "text", text: `${prefix}: ${msg}` }],
|
|
26
|
+
isError: true,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export const CREATIVE_ASSET_KINDS = ["voiceover", "sfx", "music", "image", "video", "composite"];
|
|
30
|
+
export function registerCreativeTools(server, makeClient) {
|
|
31
|
+
const passthrough = (name) => async (args, extra) => {
|
|
32
|
+
const client = await makeClient({ ...extra, arguments: args });
|
|
33
|
+
try {
|
|
34
|
+
return toResult(await client.callTool(name, args));
|
|
35
|
+
}
|
|
36
|
+
catch (err) {
|
|
37
|
+
return failed(`${name} failed`, err);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
server.registerTool("creative_assets_list", {
|
|
41
|
+
title: "List Creative Assets",
|
|
42
|
+
description: "List the creative assets (voice-overs, sound effects, music, images, videos, composites) " +
|
|
43
|
+
"generated in this workspace, newest first. Optional filters: appId, kind, briefId, since " +
|
|
44
|
+
"(ISO timestamp). Pass the returned nextCursor as cursor for the next page. No cost to call.",
|
|
45
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
46
|
+
inputSchema: z
|
|
47
|
+
.object({
|
|
48
|
+
appId: z.number().int().optional().describe("Only this product's assets."),
|
|
49
|
+
kind: z.enum(CREATIVE_ASSET_KINDS).optional(),
|
|
50
|
+
briefId: z.string().uuid().optional(),
|
|
51
|
+
since: z.string().datetime({ offset: true }).optional().describe("ISO 8601 timestamp."),
|
|
52
|
+
limit: z.number().int().min(1).max(100).optional(),
|
|
53
|
+
cursor: z.string().optional().describe("nextCursor from the previous page."),
|
|
54
|
+
})
|
|
55
|
+
.strict(),
|
|
56
|
+
outputSchema: OUTPUT_SCHEMAS.creative_assets_list,
|
|
57
|
+
}, passthrough("creative_assets_list"));
|
|
58
|
+
server.registerTool("creative_job_status", {
|
|
59
|
+
title: "Creative Job Status",
|
|
60
|
+
description: "Status of an asynchronous creative job by jobId: queued, running, done, failed or " +
|
|
61
|
+
"canceled, with the finished assets and the credits quoted, charged and refunded. Poll " +
|
|
62
|
+
"after pollAfterSeconds. No cost to call.",
|
|
63
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
64
|
+
inputSchema: z.object({ jobId: z.string().uuid().describe("jobId returned when the job was started.") }).strict(),
|
|
65
|
+
outputSchema: OUTPUT_SCHEMAS.creative_job_status,
|
|
66
|
+
}, passthrough("creative_job_status"));
|
|
67
|
+
}
|
|
@@ -476,6 +476,9 @@ export const LOADING_PLANS = {
|
|
|
476
476
|
// Managing a schedule is not using it: the sweeps a watch makes are billed
|
|
477
477
|
// as search_mentions when the worker runs them, later and elsewhere.
|
|
478
478
|
create_brand_watch: { label: "Setting up the watch", kind: "text", n: 1, steps: [], free: true },
|
|
479
|
+
// Creative assets (creative.ts): both are free reads.
|
|
480
|
+
creative_assets_list: { label: "Reading your creative assets", kind: "list", n: 3, steps: [], free: true },
|
|
481
|
+
creative_job_status: { label: "Checking the creative job", kind: "text", n: 1, steps: [], free: true },
|
|
479
482
|
list_brand_watches: { label: "Reading your watches", kind: "list", n: 3, steps: [], free: true },
|
|
480
483
|
stop_brand_watch: { label: "Stopping the watch", kind: "text", n: 1, steps: [], free: true },
|
|
481
484
|
update_watch_portfolio: { label: "Updating the portfolio", kind: "text", n: 1, steps: [], free: true },
|
|
@@ -1254,6 +1254,24 @@ export const OUTPUT_SCHEMAS = {
|
|
|
1254
1254
|
billable: scalar(),
|
|
1255
1255
|
mcpCredits,
|
|
1256
1256
|
}),
|
|
1257
|
+
// Creative assets (nooticr-server CR1). Assets and jobs are the server's own
|
|
1258
|
+
// shapes, so only the stable fields are named.
|
|
1259
|
+
creative_assets_list: open({
|
|
1260
|
+
assets: listOf(open({ id: scalar(), kind: scalar(), appId: scalar(), url: scalar(), mime: scalar(), createdAt: scalar() })),
|
|
1261
|
+
nextCursor: scalar(),
|
|
1262
|
+
}),
|
|
1263
|
+
creative_job_status: open({
|
|
1264
|
+
jobId: scalar(),
|
|
1265
|
+
tool: scalar(),
|
|
1266
|
+
status: scalar(),
|
|
1267
|
+
assetIds: listOf(oneType(z.string())),
|
|
1268
|
+
assets: listOf(open({ id: scalar(), kind: scalar(), url: scalar() })),
|
|
1269
|
+
creditsQuoted: scalar(),
|
|
1270
|
+
creditsCharged: scalar(),
|
|
1271
|
+
creditsRefunded: scalar(),
|
|
1272
|
+
pollAfterSeconds: scalar(),
|
|
1273
|
+
error: scalar(),
|
|
1274
|
+
}),
|
|
1257
1275
|
list_brand_watches: open({
|
|
1258
1276
|
watches: listOf(open({
|
|
1259
1277
|
watchId: scalar(),
|
package/dist/shared/tools-def.js
CHANGED
|
@@ -264,6 +264,18 @@ export const TOOL_DEFINITIONS = [
|
|
|
264
264
|
description: "Run a sweep on a schedule and email what is new, instead of remembering to ask. kind: \"mentions\" (default) sweeps term across platforms; kind: \"competitor\" sweeps one creator's own posts (handle + platform) and reports only what beats their own recent median; kind: \"report\" runs job {tool, args} (niche_report or discover_social_posts) on the schedule at that tool's own price; kind: \"portfolio\" sweeps several terms across the same platforms under one budget and mails one digest with each term's share of voice. Two calls by design: call it once with no confirmation to get back the cost per run and what it multiplies out to per day, then call it again with confirm: true and the confirmationToken to actually start it. The first call creates nothing and spends nothing. Bills 2 credits per network per run (5 for Xiaohongshu) for a mentions watch, or a flat 2 credits for a competitor watch, trimmed to fit budgetCredits. A run that finds nothing new (or, for a competitor watch, nothing above median) sends no mail. No cost to call.",
|
|
265
265
|
inputSchema: z.object({ kind: z.enum(["mentions", "competitor", "report", "portfolio"]).optional().describe("\"mentions\" (default), \"competitor\", \"report\" or \"portfolio\"."), job: z.object({ tool: z.enum(["niche_report", "discover_social_posts"]), args: z.object({}).passthrough() }).optional().describe("kind: report only — the job each run performs."), terms: z.array(z.string()).optional().describe("kind: portfolio only — the terms to compare (1-25)."), term: z.string().optional().describe("kind: mentions only — what to watch for (max 120 chars)."), platforms: z.array(z.string()).optional().describe("kind: mentions only — networks to sweep (default: every searchable network)."), handle: z.string().optional().describe("kind: competitor only — the creator's handle."), platform: z.string().optional().describe("kind: competitor only — the platform that creator posts on."), cadence: z.enum(["hourly", "every_6_hours", "every_12_hours", "daily", "weekly"]).optional().describe("How often to run (default daily)."), budgetCredits: z.number().int().optional().describe("Hard per-run credit ceiling (default the full sweep's cost)."), deliverTo: z.string().optional().describe("Digest email (default the account's own)."), confirm: z.boolean().optional().describe("Set true only once the user has agreed to the quoted cost."), confirmationToken: z.string().optional().describe("The token the first call returned.") }).strict(),
|
|
266
266
|
},
|
|
267
|
+
{
|
|
268
|
+
name: "creative_assets_list",
|
|
269
|
+
title: "List Creative Assets",
|
|
270
|
+
description: "List the creative assets (voice-overs, sound effects, music, images, videos, composites) generated in this workspace, newest first. Optional filters: appId, kind, briefId, since (ISO timestamp). Pass the returned nextCursor as cursor for the next page. No cost to call.",
|
|
271
|
+
inputSchema: z.object({ appId: z.number().int().optional().describe("Only this product's assets."), kind: z.enum(["voiceover", "sfx", "music", "image", "video", "composite"]).optional(), briefId: z.string().optional(), since: z.string().optional().describe("ISO 8601 timestamp."), limit: z.number().int().min(1).max(100).optional(), cursor: z.string().optional().describe("nextCursor from the previous page.") }).strict(),
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
name: "creative_job_status",
|
|
275
|
+
title: "Creative Job Status",
|
|
276
|
+
description: "Status of an asynchronous creative job by jobId: queued, running, done, failed or canceled, with the finished assets and the credits quoted, charged and refunded. Poll after pollAfterSeconds. No cost to call.",
|
|
277
|
+
inputSchema: z.object({ jobId: z.string().describe("jobId returned when the job was started.") }).strict(),
|
|
278
|
+
},
|
|
267
279
|
{
|
|
268
280
|
name: "list_brand_watches",
|
|
269
281
|
title: "List Brand Watches",
|
package/dist/shared/tools.js
CHANGED
|
@@ -21,6 +21,7 @@ import { confirmSpend, declinedResult, searchMentionsCost, SEARCH_PLATFORMS, DIS
|
|
|
21
21
|
import { BackendWatchStore, MemoryWatchStore, registerWatchlist, } from "./watchlist.js";
|
|
22
22
|
import { registerJobTools } from "./jobs.js";
|
|
23
23
|
import { registerBrandWatch } from "./brand-watch.js";
|
|
24
|
+
import { registerCreativeTools } from "./creative.js";
|
|
24
25
|
import { registerOwnAccountTools } from "./own-account.js";
|
|
25
26
|
import { registerConnectionTools } from "./connections.js";
|
|
26
27
|
import { registerEmployeeTools } from "./employees.js";
|
|
@@ -33,7 +34,7 @@ import { registerAmazonTools } from "./amazon.js";
|
|
|
33
34
|
import { registerMarketplaceTools } from "./marketplace.js";
|
|
34
35
|
import { DEFAULT_NOOTICR_SETTINGS, DEFAULT_SOCIAL_PLATFORMS, MemorySettingsStore, SETTINGS_READ_TOOL, SETTINGS_UPDATE_TOOL, settingsOwnerFromAuth, } from "./settings.js";
|
|
35
36
|
/** Current MCP server version — bumped on every deploy for traceability. */
|
|
36
|
-
export const MCP_SERVER_VERSION = "1.26.
|
|
37
|
+
export const MCP_SERVER_VERSION = "1.26.61";
|
|
37
38
|
/** MCP Apps extension identifier */
|
|
38
39
|
const UI_EXTENSION = "io.modelcontextprotocol/ui";
|
|
39
40
|
/** MIME type for MCP Apps HTML resources */
|
|
@@ -2887,6 +2888,8 @@ export function createMcpServer(rawMakeClient, opts) {
|
|
|
2887
2888
|
registerJobTools(server, makeClient, watchStore);
|
|
2888
2889
|
registerBrandWatch(server, makeClient);
|
|
2889
2890
|
registerOwnAccountTools(server, makeClient);
|
|
2891
|
+
// Creative assets (creative.ts): the free reads of nooticr-server's creative_* family.
|
|
2892
|
+
registerCreativeTools(server, makeClient);
|
|
2890
2893
|
registerConnectionTools(server, makeClient);
|
|
2891
2894
|
// AI employees (employees.ts): hire, list, pause, fire, and approve or reject what they queue.
|
|
2892
2895
|
registerEmployeeTools(server, makeClient);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nooticr/mcp",
|
|
3
3
|
"mcpName": "com.nooticr/mcp",
|
|
4
|
-
"version": "1.26.
|
|
4
|
+
"version": "1.26.61",
|
|
5
5
|
"description": "MCP server for nooticr - fetch, discover and understand TikTok/Instagram/YouTube/X/Reddit/LinkedIn/Weibo posts with AI (media metadata, niche discovery, brand monitoring, hook & viral analysis)",
|
|
6
6
|
"homepage": "https://mcp.nooticr.com",
|
|
7
7
|
"repository": {
|