@marlinjai/studio-mcp 0.14.0 → 0.16.0
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 +1 -0
- package/dist/cli.js +295 -125
- package/dist/index.d.ts +73 -2
- package/dist/index.js +295 -125
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1206,6 +1206,38 @@ interface CampaignContents {
|
|
|
1206
1206
|
imagesKept: number;
|
|
1207
1207
|
shotsRendering: number;
|
|
1208
1208
|
}
|
|
1209
|
+
/** One `@` mention of a saved prompt: `id` is the cast member's slug. */
|
|
1210
|
+
interface SavedPromptMention {
|
|
1211
|
+
kind: 'character' | 'product' | 'location';
|
|
1212
|
+
id: string;
|
|
1213
|
+
name: string;
|
|
1214
|
+
rowId?: string;
|
|
1215
|
+
}
|
|
1216
|
+
/** The generation settings a saved prompt carries. */
|
|
1217
|
+
interface SavedPromptSettings {
|
|
1218
|
+
model?: string;
|
|
1219
|
+
aspectRatio?: string;
|
|
1220
|
+
imageSize?: string;
|
|
1221
|
+
candidateCount?: number;
|
|
1222
|
+
thinkingLevel?: 'none' | 'minimal' | 'high';
|
|
1223
|
+
temperature?: number;
|
|
1224
|
+
seed?: number;
|
|
1225
|
+
}
|
|
1226
|
+
/** A saved prompt of the company library (`/api/v1/prompts`). */
|
|
1227
|
+
interface SavedPrompt {
|
|
1228
|
+
id: string;
|
|
1229
|
+
title: string;
|
|
1230
|
+
prompt: string;
|
|
1231
|
+
mentions: SavedPromptMention[];
|
|
1232
|
+
settings: SavedPromptSettings;
|
|
1233
|
+
sourceAssetId: string | null;
|
|
1234
|
+
savedBy: string;
|
|
1235
|
+
savedByMe: boolean;
|
|
1236
|
+
usageCount: number;
|
|
1237
|
+
lastUsedAt: string | null;
|
|
1238
|
+
createdAt: string;
|
|
1239
|
+
updatedAt: string;
|
|
1240
|
+
}
|
|
1209
1241
|
type JobStatus = 'queued' | 'running' | 'succeeded' | 'failed' | 'canceled' | (string & {});
|
|
1210
1242
|
/** `GET /api/brands/[slug]/kit` (file URLs are Studio-relative and not used by the tools). */
|
|
1211
1243
|
interface BrandKitResponse {
|
|
@@ -1546,6 +1578,20 @@ interface TaskDescriptor {
|
|
|
1546
1578
|
id: string;
|
|
1547
1579
|
label?: string;
|
|
1548
1580
|
provider?: string;
|
|
1581
|
+
/**
|
|
1582
|
+
* What one generation costs your company at the default settings. For a
|
|
1583
|
+
* model billed per character of its text (a voice model), `per` names the
|
|
1584
|
+
* unit: `usd` is the price of `per.characters` characters and `maxUsd` the
|
|
1585
|
+
* most one generation costs, at the longest text the model takes.
|
|
1586
|
+
*/
|
|
1587
|
+
price?: {
|
|
1588
|
+
usd: number;
|
|
1589
|
+
fromUsd?: number;
|
|
1590
|
+
per?: {
|
|
1591
|
+
characters: number;
|
|
1592
|
+
};
|
|
1593
|
+
maxUsd?: number;
|
|
1594
|
+
};
|
|
1549
1595
|
}>;
|
|
1550
1596
|
}
|
|
1551
1597
|
interface NodeTypesResponse {
|
|
@@ -1693,6 +1739,31 @@ declare class StudioClient {
|
|
|
1693
1739
|
id: string;
|
|
1694
1740
|
shotsDeleted: number;
|
|
1695
1741
|
}>;
|
|
1742
|
+
listSavedPrompts(opts?: {
|
|
1743
|
+
sort?: 'newest' | 'most-used';
|
|
1744
|
+
limit?: number;
|
|
1745
|
+
offset?: number;
|
|
1746
|
+
}): Promise<{
|
|
1747
|
+
prompts: SavedPrompt[];
|
|
1748
|
+
nextOffset: number | null;
|
|
1749
|
+
}>;
|
|
1750
|
+
getSavedPrompt(promptId: string): Promise<{
|
|
1751
|
+
prompt: SavedPrompt;
|
|
1752
|
+
}>;
|
|
1753
|
+
/** 201 saved; 200 with `alreadySaved: true` when the company already saved the same recipe. */
|
|
1754
|
+
savePrompt(body: {
|
|
1755
|
+
prompt?: string;
|
|
1756
|
+
mentions?: SavedPromptMention[];
|
|
1757
|
+
settings?: SavedPromptSettings;
|
|
1758
|
+
title?: string;
|
|
1759
|
+
assetId?: string;
|
|
1760
|
+
}): Promise<{
|
|
1761
|
+
prompt: SavedPrompt;
|
|
1762
|
+
alreadySaved?: boolean;
|
|
1763
|
+
}>;
|
|
1764
|
+
deleteSavedPrompt(promptId: string): Promise<{
|
|
1765
|
+
deleted: string;
|
|
1766
|
+
}>;
|
|
1696
1767
|
/**
|
|
1697
1768
|
* One image job. `brandSlug` is optional: without it the image is generated
|
|
1698
1769
|
* with no brand. A `brandSlug` or `characterSlug` the key's company cannot
|
|
@@ -2111,7 +2182,7 @@ declare function registerTools(server: McpServer, base: ToolContext): void;
|
|
|
2111
2182
|
*/
|
|
2112
2183
|
|
|
2113
2184
|
declare const SERVER_NAME = "lumitra-studio";
|
|
2114
|
-
declare const SERVER_VERSION = "0.
|
|
2185
|
+
declare const SERVER_VERSION = "0.16.0";
|
|
2115
2186
|
interface CreateServerOptions {
|
|
2116
2187
|
config?: StudioConfig;
|
|
2117
2188
|
env?: NodeJS.ProcessEnv;
|
|
@@ -3479,4 +3550,4 @@ declare function parseArgs(argv: string[]): CliArgs;
|
|
|
3479
3550
|
declare function createHttpHandler(): (req: IncomingMessage, res: ServerResponse) => Promise<void>;
|
|
3480
3551
|
declare function main(argv?: string[]): Promise<void>;
|
|
3481
3552
|
|
|
3482
|
-
export { type AllTenantsUsageResponse, type AssetReference, type AssetUsage, type Binding, type BrandKitResponse, CHARACTER_SHEET_DEFINITION, CHARACTER_SHEET_NODES, type CampaignContents, type CampaignListing, type CandidatePlan, type CharacterReference, type CharacterSummary, type CharacterSwapInput, type CompositionRecord, type CompositionSummary, ConfigError, ContractError, type CreateServerOptions, DEFAULT_BASE_URL, DEFAULT_MOTION_PROMPT, DEFAULT_SWAP_EDIT_MODEL, DEFAULT_SWAP_PROMPT, DEFAULT_SWAP_VIDEO_MODEL, DEFAULT_TIMEOUT_MS, type DocumentSummary, type EnhancePromptRequest, type EnhancePromptResponse, type FetchLike, type GenerateImageResponse, type JobResponse, type JobStatus, type JudgeCandidate, MINT_REFERENCE_CATEGORIES, type NodeResultResponse, type NodeRun, type NodeStatus, type NodeSummary, type NodeTypesResponse, type PollOptions, PollTimeoutError, type ProjectAsset, type ProjectContents, type ProjectSummary, type Projection, type PromptMention, type RemovedNode, type RunResponse, type RunStartResponse, type RunStatus, SERVER_NAME, SERVER_VERSION, SUMMARY_TEXT_CHARS, SWAP_SCOPES, type SavedWorkflowListing, type SocialProjectSummary, type SocialSendView, type SpendLedger, StudioApiError, StudioClient, type StudioClientOptions, type StudioConfig, type StudioMcp, type SummaryMeta, type SwapPromptOptions, type SwapScope, TOOLS, TOOL_NAMES, type TaskDescriptor, type TenantSpendSummary, type TenantUsageResponse, type ToolContext, type ToolDef, ToolInputError, type ToolResult, type TurnaroundView, type UploadFile, type UsageByModel, type UsageResponse, WORKFLOW_TOOLS, type WorkflowApplyResponse, type WorkflowCreateResponse, type WorkflowDefinition, type WorkflowDocumentResponse, type WorkflowNode, type WorkflowValidateResponse, affectedNodes, buildCharacterSheetParams, buildCharacterSwapDefinition, categoryForNode, characterSheetDefinition, composeSwapPrompt, createHttpHandler, createStudioMcpServer, extensionForMime, filenameFromUrl, invokeTool, main, mimeForFilename, parseArgs, parseDocument, parseOps, pollUntil, projectionOf, redactSecret, registerTools, resolveConfig, seedFacePrompt, studioWorkflowApply, studioWorkflowCreate, studioWorkflowDescribe, studioWorkflowGet, studioWorkflowScreenshot, studioWorkflowValidate, summarizeDocument, summarizeNode, touchedNodeIds, turnaroundViewPrompt, waitForJob, waitForRun };
|
|
3553
|
+
export { type AllTenantsUsageResponse, type AssetReference, type AssetUsage, type Binding, type BrandKitResponse, CHARACTER_SHEET_DEFINITION, CHARACTER_SHEET_NODES, type CampaignContents, type CampaignListing, type CandidatePlan, type CharacterReference, type CharacterSummary, type CharacterSwapInput, type CompositionRecord, type CompositionSummary, ConfigError, ContractError, type CreateServerOptions, DEFAULT_BASE_URL, DEFAULT_MOTION_PROMPT, DEFAULT_SWAP_EDIT_MODEL, DEFAULT_SWAP_PROMPT, DEFAULT_SWAP_VIDEO_MODEL, DEFAULT_TIMEOUT_MS, type DocumentSummary, type EnhancePromptRequest, type EnhancePromptResponse, type FetchLike, type GenerateImageResponse, type JobResponse, type JobStatus, type JudgeCandidate, MINT_REFERENCE_CATEGORIES, type NodeResultResponse, type NodeRun, type NodeStatus, type NodeSummary, type NodeTypesResponse, type PollOptions, PollTimeoutError, type ProjectAsset, type ProjectContents, type ProjectSummary, type Projection, type PromptMention, type RemovedNode, type RunResponse, type RunStartResponse, type RunStatus, SERVER_NAME, SERVER_VERSION, SUMMARY_TEXT_CHARS, SWAP_SCOPES, type SavedPrompt, type SavedPromptMention, type SavedPromptSettings, type SavedWorkflowListing, type SocialProjectSummary, type SocialSendView, type SpendLedger, StudioApiError, StudioClient, type StudioClientOptions, type StudioConfig, type StudioMcp, type SummaryMeta, type SwapPromptOptions, type SwapScope, TOOLS, TOOL_NAMES, type TaskDescriptor, type TenantSpendSummary, type TenantUsageResponse, type ToolContext, type ToolDef, ToolInputError, type ToolResult, type TurnaroundView, type UploadFile, type UsageByModel, type UsageResponse, WORKFLOW_TOOLS, type WorkflowApplyResponse, type WorkflowCreateResponse, type WorkflowDefinition, type WorkflowDocumentResponse, type WorkflowNode, type WorkflowValidateResponse, affectedNodes, buildCharacterSheetParams, buildCharacterSwapDefinition, categoryForNode, characterSheetDefinition, composeSwapPrompt, createHttpHandler, createStudioMcpServer, extensionForMime, filenameFromUrl, invokeTool, main, mimeForFilename, parseArgs, parseDocument, parseOps, pollUntil, projectionOf, redactSecret, registerTools, resolveConfig, seedFacePrompt, studioWorkflowApply, studioWorkflowCreate, studioWorkflowDescribe, studioWorkflowGet, studioWorkflowScreenshot, studioWorkflowValidate, summarizeDocument, summarizeNode, touchedNodeIds, turnaroundViewPrompt, waitForJob, waitForRun };
|