@contenthero/mcp 0.3.1 → 0.3.3

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/dist/client.d.ts CHANGED
@@ -1,10 +1,24 @@
1
1
  /**
2
2
  * Lazy ContentHero SDK client, configured from the environment.
3
3
  *
4
- * Reads CONTENTHERO_API_KEY (required) and CONTENTHERO_BASE_URL (optional) from
5
- * the MCP server's env config. Resolution is deferred to first use so the
6
- * server can start and advertise its tools even before a key is present; the
7
- * missing-key error then surfaces as a tool-call result rather than a crash.
4
+ * Resolution goes through the SDK's shared auth ladder: an explicit value, then
5
+ * CONTENTHERO_API_KEY, then the credential written by `contenthero login` at
6
+ * ~/.contenthero/credentials. It is deferred to first use so the server can start
7
+ * and advertise its tools even before a key is present; the missing-key error then
8
+ * surfaces as a tool-call result rather than a crash.
9
+ *
10
+ * ## Why the ladder, and not just the env var
11
+ *
12
+ * Reading only the environment is what forced every ContentHero entry in `.mcp.json`
13
+ * to carry a plaintext `ch_live_` key inline in its command string, and made pointing
14
+ * the MCP at a different account a three-file edit. With the ladder, an account is a
15
+ * profile directory: set CONTENTHERO_CONFIG_DIR and no secret needs to live in any
16
+ * editor config at all.
17
+ *
18
+ * ⚠️ THE CLIENT IS CACHED FOR THE PROCESS LIFETIME, so switching accounts requires
19
+ * restarting the MCP server. That is deliberate. A key that could change underneath a
20
+ * running session would let a generation land in, and bill, an account nobody at the
21
+ * keyboard chose, and generations are not refundable.
8
22
  */
9
23
  import { ContentHero } from '@contenthero/sdk';
10
24
  export declare function getClient(): ContentHero;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAI9C,wBAAgB,SAAS,IAAI,WAAW,CAwBvC"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAK9C,wBAAgB,SAAS,IAAI,WAAW,CA6BvC"}
package/dist/client.js CHANGED
@@ -1,23 +1,43 @@
1
1
  /**
2
2
  * Lazy ContentHero SDK client, configured from the environment.
3
3
  *
4
- * Reads CONTENTHERO_API_KEY (required) and CONTENTHERO_BASE_URL (optional) from
5
- * the MCP server's env config. Resolution is deferred to first use so the
6
- * server can start and advertise its tools even before a key is present; the
7
- * missing-key error then surfaces as a tool-call result rather than a crash.
4
+ * Resolution goes through the SDK's shared auth ladder: an explicit value, then
5
+ * CONTENTHERO_API_KEY, then the credential written by `contenthero login` at
6
+ * ~/.contenthero/credentials. It is deferred to first use so the server can start
7
+ * and advertise its tools even before a key is present; the missing-key error then
8
+ * surfaces as a tool-call result rather than a crash.
9
+ *
10
+ * ## Why the ladder, and not just the env var
11
+ *
12
+ * Reading only the environment is what forced every ContentHero entry in `.mcp.json`
13
+ * to carry a plaintext `ch_live_` key inline in its command string, and made pointing
14
+ * the MCP at a different account a three-file edit. With the ladder, an account is a
15
+ * profile directory: set CONTENTHERO_CONFIG_DIR and no secret needs to live in any
16
+ * editor config at all.
17
+ *
18
+ * ⚠️ THE CLIENT IS CACHED FOR THE PROCESS LIFETIME, so switching accounts requires
19
+ * restarting the MCP server. That is deliberate. A key that could change underneath a
20
+ * running session would let a generation land in, and bill, an account nobody at the
21
+ * keyboard chose, and generations are not refundable.
8
22
  */
9
23
  import { ContentHero } from '@contenthero/sdk';
24
+ import { configDir, resolveAuth } from '@contenthero/sdk/credentials';
10
25
  let cached;
11
26
  export function getClient() {
12
27
  if (cached)
13
28
  return cached;
14
- const apiKey = process.env.CONTENTHERO_API_KEY;
29
+ const { apiKey, keySource, baseUrl } = resolveAuth();
15
30
  if (!apiKey) {
16
- throw new Error('CONTENTHERO_API_KEY is not set. Add it to the env of your ContentHero MCP server config.');
31
+ throw new Error('No ContentHero API key found. Set CONTENTHERO_API_KEY in the MCP server env, ' +
32
+ `or run \`contenthero login\` to store one (looked in ${configDir()}).`);
17
33
  }
34
+ // Announced once, on stderr so it never corrupts the stdio protocol stream. Which ACCOUNT an MCP server is
35
+ // acting as is the single most consequential thing about it and was previously invisible: the only way to
36
+ // find out was to call get_balance and recognise the number.
37
+ console.error(`[contenthero-mcp] authenticated from ${keySource} (config dir: ${configDir()})`);
18
38
  cached = new ContentHero({
19
39
  apiKey,
20
- baseUrl: process.env.CONTENTHERO_BASE_URL,
40
+ baseUrl,
21
41
  // Tag spends from the stdio MCP as the 'mcp' transport channel, matching the
22
42
  // hosted OAuth MCP. The MCP spends through an api key, so this header is what
23
43
  // distinguishes it from a raw api-key or cli caller on credit_transactions.
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,IAAI,MAA+B,CAAA;AAEnC,MAAM,UAAU,SAAS;IACvB,IAAI,MAAM;QAAE,OAAO,MAAM,CAAA;IACzB,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAA;IAC9C,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CACb,0FAA0F,CAC3F,CAAA;IACH,CAAC;IACD,MAAM,GAAG,IAAI,WAAW,CAAC;QACvB,MAAM;QACN,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,oBAAoB;QACzC,6EAA6E;QAC7E,8EAA8E;QAC9E,4EAA4E;QAC5E,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CACrB,KAAK,CAAC,KAAK,EAAE;YACX,GAAG,IAAI;YACP,OAAO,EAAE;gBACP,GAAI,IAAI,EAAE,OAA8C;gBACxD,uBAAuB,EAAE,KAAK;aAC/B;SACF,CAAC;KACL,CAAC,CAAA;IACF,OAAO,MAAM,CAAA;AACf,CAAC"}
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAErE,IAAI,MAA+B,CAAA;AAEnC,MAAM,UAAU,SAAS;IACvB,IAAI,MAAM;QAAE,OAAO,MAAM,CAAA;IACzB,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,WAAW,EAAE,CAAA;IACpD,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CACb,+EAA+E;YAC7E,wDAAwD,SAAS,EAAE,IAAI,CAC1E,CAAA;IACH,CAAC;IACD,2GAA2G;IAC3G,0GAA0G;IAC1G,6DAA6D;IAC7D,OAAO,CAAC,KAAK,CAAC,wCAAwC,SAAS,iBAAiB,SAAS,EAAE,GAAG,CAAC,CAAA;IAC/F,MAAM,GAAG,IAAI,WAAW,CAAC;QACvB,MAAM;QACN,OAAO;QACP,6EAA6E;QAC7E,8EAA8E;QAC9E,4EAA4E;QAC5E,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CACrB,KAAK,CAAC,KAAK,EAAE;YACX,GAAG,IAAI;YACP,OAAO,EAAE;gBACP,GAAI,IAAI,EAAE,OAA8C;gBACxD,uBAAuB,EAAE,KAAK;aAC/B;SACF,CAAC;KACL,CAAC,CAAA;IACF,OAAO,MAAM,CAAA;AACf,CAAC"}
package/dist/format.d.ts CHANGED
@@ -4,15 +4,24 @@
4
4
  * a readable message instead of a transport failure.
5
5
  */
6
6
  import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
7
- import type { Avatar, AvatarSummary, Balance, BrandKit, BrandKitSummary, BrandAccountPerformance, BrandKitSectionRecord, BrandKnowledgeItem, BrandKnowledgeDetail, BrandKnowledgeListResult, BrandKnowledgeMatch, ConnectedAccount, CostEstimate, Element, Generation, GenerateResult, InspirationAccountDetail, InspirationContent, MediaItem, MediaSummary, CreateMediaUploadResult, UploadedMedia, ModelInfo, PlatformSummary, PlatformSchema, OutliersResult, PipelineStage, PostAsset, PostDestination, PostDetail, PostListResult, PostSummary, PublishPostResult, TrackedAccount, Transcription, Voice, VoiceSummary } from '@contenthero/sdk';
8
- /** A finished image/video generation: list the asset URLs. */
7
+ import type { Avatar, AvatarSummary, Balance, BrandKit, BrandKitSummary, BrandAccountPerformance, BrandKitSectionRecord, BrandKnowledgeItem, BrandKnowledgeDetail, BrandKnowledgeListResult, BrandKnowledgeMatch, ConnectedAccount, CostEstimate, Element, Generation, GenerateResult, EditAudioResult, InspirationAccountDetail, InspirationContent, MediaItem, MediaSummary, SearchMediaResult, Folder, DerivedFolder, FolderItem, MediaBatchResult, CreateMediaUploadResult, UploadedMedia, ModelInfo, PlatformSummary, PlatformSchema, OutliersResult, PipelineStage, PostAsset, PostDestination, PostDetail, PostListResult, PostSummary, Tag, PublishPostResult, TrackedAccount, Transcription, Voice, VoiceSummary, ApplyEditorOpsResult, ProjectSummary, ProjectDetail, LiveContextResult, LayerTypeCatalog, TimelineTypeCatalog, TranscriptResult, ExportJob, ExportFormatCatalog } from '@contenthero/sdk';
8
+ export declare function text(body: string, isError?: boolean): CallToolResult;
9
+ /** A finished image/video generation: list the asset URLs, plus the placement outcome when placed on a project. */
9
10
  export declare function completedResult(gen: Generation): CallToolResult;
10
11
  /** Suggested seconds to wait before re-polling a job, by content type. */
11
12
  export declare function pollAfterSecondsFor(contentType: string): number;
12
13
  /** A slow job that did not finish within the smart-wait window. */
13
14
  export declare function pendingResult(outputId: string, pollAfterSeconds?: number): CallToolResult;
14
15
  /** Synchronous audio result (already complete on submit). */
15
- export declare function audioResult(result: GenerateResult): CallToolResult;
16
+ export declare function audioResult(result: GenerateResult | EditAudioResult): CallToolResult;
17
+ /**
18
+ * In-place clip enhancement: ONE JOB PER SOURCE, so the agent gets every outputId.
19
+ *
20
+ * Reporting only the first would let an agent see one recording finish and call the whole edit done, while the
21
+ * other recordings were still running. The applied-automatically note matters too: unlike every other async
22
+ * tool here, the caller does NOT place the result, so without saying so an agent would reasonably try to.
23
+ */
24
+ export declare function enhanceClipsResult(result: EditAudioResult): CallToolResult;
16
25
  /** Result of a get_cost preflight: the estimate, with nothing generated or charged. */
17
26
  export declare function costResult(est: CostEstimate): CallToolResult;
18
27
  /** Result of polling a generation via get_generation_status. */
@@ -44,11 +53,42 @@ export declare function brandKnowledgeListResult(result: BrandKnowledgeListResul
44
53
  export declare function brandKnowledgeDetailResult(item: BrandKnowledgeDetail): CallToolResult;
45
54
  export declare function brandKnowledgeSearchResult(matches: BrandKnowledgeMatch[]): CallToolResult;
46
55
  export declare function brandKnowledgeItemResult(item: BrandKnowledgeItem, verb?: string): CallToolResult;
47
- export declare function brandKitArchivedResult(kit: BrandKitSummary): CallToolResult;
48
- /** List of studio outputs (media). */
56
+ /**
57
+ * Confirmation of a universal favorite / unfavorite / archive / unarchive action.
58
+ * `target` describes what was acted on: a studio variation slot when
59
+ * variationIndex is set, otherwise a top-level asset by type + id.
60
+ */
61
+ export declare function statusActionResult(action: 'Favorited' | 'Unfavorited' | 'Archived' | 'Unarchived', target: {
62
+ assetType?: string;
63
+ id: string;
64
+ variationIndex?: number;
65
+ }): CallToolResult;
66
+ /** List of library media, one row per VARIATION (the atomic grain). */
49
67
  export declare function mediaListResult(items: MediaSummary[]): CallToolResult;
68
+ /** Semantic library-search matches: assets ranked by relevance, with matched scene timestamps for video. */
69
+ export declare function mediaSearchResult(results: SearchMediaResult[]): CallToolResult;
70
+ /** The user's folders (their own + the built-in derived folders). */
71
+ export declare function folderListResult(data: {
72
+ folders: Folder[];
73
+ derived: DerivedFolder[];
74
+ }): CallToolResult;
75
+ /** One folder's contents (media items + entities). */
76
+ export declare function folderContentsResult(folder: {
77
+ name: string;
78
+ } | null, items: FolderItem[]): CallToolResult;
50
79
  /** One studio output's detail, with its variations. */
51
80
  export declare function mediaResult(m: MediaItem): CallToolResult;
81
+ /**
82
+ * A vision-enabled media batch (get_media). Returns a text summary + one metadata
83
+ * line per item, and, for each image item whose bytes were fetched, an IMAGE
84
+ * content block so the calling model can SEE it. Images arrive as a parallel
85
+ * array (fetched + base64-encoded by the caller, image items only; null for
86
+ * video/audio/errors). This just assembles the result. See get-context §9.5.
87
+ */
88
+ export declare function mediaBatchResult(result: MediaBatchResult, images: Array<{
89
+ data: string;
90
+ mimeType: string;
91
+ } | null>): CallToolResult;
52
92
  /** Phase 1 of an upload: the signed URL + the PUT-then-complete instructions. */
53
93
  export declare function mediaUploadResult(r: CreateMediaUploadResult): CallToolResult;
54
94
  /** A finalized upload or import: a first-class media output. */
@@ -88,6 +128,14 @@ export declare function assetRemovedResult(r: {
88
128
  export declare function destinationRemovedResult(r: {
89
129
  id: string;
90
130
  }): CallToolResult;
131
+ /** The account's tags. */
132
+ export declare function tagListResult(tags: Tag[]): CallToolResult;
133
+ /** A created or renamed tag. */
134
+ export declare function tagResult(t: Tag, verb?: string): CallToolResult;
135
+ /** Confirmation of a deleted tag. */
136
+ export declare function tagDeletedResult(r: {
137
+ id: string;
138
+ }): CallToolResult;
91
139
  /** The result of publishing a post (per-destination outcomes). */
92
140
  export declare function publishResult(r: PublishPostResult): CallToolResult;
93
141
  /** List of tracked accounts (inspiration or brand). */
@@ -106,4 +154,33 @@ export declare function connectedAccountResult(a: ConnectedAccount): CallToolRes
106
154
  export declare function brandPerformanceResult(p: BrandAccountPerformance): CallToolResult;
107
155
  /** Map any thrown error onto a readable isError result. */
108
156
  export declare function errorResult(err: unknown): CallToolResult;
157
+ /** The outcome of an applyEditorOps batch: the new revision + a per-op summary. */
158
+ export declare function editorOpsResult(r: ApplyEditorOpsResult): CallToolResult;
159
+ /** A single project's full detail (read-before-write): metadata, surface, revision, and the state JSON. */
160
+ export declare function projectDetailResult(p: ProjectDetail): CallToolResult;
161
+ /**
162
+ * Live context (get_context). Returns a text summary + the discriminated context JSON, plus IMAGE content
163
+ * block(s) so the calling model can actually SEE: the viewport `snapshot` (capture) when the user's screen was
164
+ * requested, and/or the inline composed-output render (`context.rendered.dataUrl`) when `render` was requested.
165
+ * The heavy render data URL is stripped from the JSON text (it rides only as the image block).
166
+ */
167
+ export declare function liveContextResult(result: LiveContextResult, snapshot?: {
168
+ data: string;
169
+ mimeType: string;
170
+ } | null): CallToolResult;
171
+ /** The project list: one line per project (id, kind, title, state flags). */
172
+ export declare function projectListResult(projects: ProjectSummary[]): CallToolResult;
173
+ /** A freshly created project: the id + kind to start editing against. */
174
+ export declare function projectCreatedResult(p: ProjectDetail): CallToolResult;
175
+ /** Confirmation of a permanent delete. */
176
+ export declare function projectDeletedResult(projectId: string): CallToolResult;
177
+ /** The canvas layer-type catalog (types + editable props) as readable text + the JSON. */
178
+ export declare function layerTypesResult(cat: LayerTypeCatalog): CallToolResult;
179
+ /** A completed export -> the download URL; an in-flight one -> the exportId to poll. */
180
+ export declare function exportJobResult(job: ExportJob): CallToolResult;
181
+ /** The export-format catalog as readable text + JSON. */
182
+ export declare function exportFormatsResult(cat: ExportFormatCatalog): CallToolResult;
183
+ /** The editor timeline clip + track-type catalog as readable text + the JSON. */
184
+ export declare function editorTranscriptResult(r: TranscriptResult): CallToolResult;
185
+ export declare function timelineTypesResult(cat: TimelineTypeCatalog): CallToolResult;
109
186
  //# sourceMappingURL=format.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AACxE,OAAO,KAAK,EACV,MAAM,EACN,aAAa,EACb,OAAO,EACP,QAAQ,EACR,eAAe,EACf,uBAAuB,EACvB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,m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