@taptap/maker 0.0.29 → 0.0.30-beta.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 CHANGED
@@ -32,4 +32,4 @@ or OpenClaw plugin package contents.
32
32
 
33
33
  Full connection and tool-call troubleshooting guide: `docs/MAKER_MCP_CONNECTION_TROUBLESHOOTING.md`.
34
34
 
35
- Version: 0.0.29
35
+ Version: 0.0.30-beta.1
package/dist/maker.js CHANGED
@@ -29292,6 +29292,9 @@ function createMakerAgentsPolicyBody() {
29292
29292
  "- If tools are missing, the process exits immediately, or the client reports `-32000`,",
29293
29293
  " `Connection closed`, or `command not found`, do not depend on Maker MCP tools for initial",
29294
29294
  " diagnosis. Work from local config, shell output, and client logs.",
29295
+ "- Current Maker MCP registers whitelisted proxy tool definitions before resolving cwd, project",
29296
+ " binding, auth, or the remote proxy. If only proxy tools are missing, compare the active",
29297
+ " package version and tools/list for stale client/session caching; do not rewrite cwd.",
29295
29298
  "- Attempt `npx -y -p @taptap/maker taptap-maker mcp verify --json`; on Windows use",
29296
29299
  " `npx.cmd -y -p @taptap/maker taptap-maker mcp verify --json`. Record command failure as",
29297
29300
  " diagnostic evidence instead of skipping the check.",
@@ -36053,9 +36056,789 @@ var MAKER_REMOTE_PROXY_PUBLIC_DESCRIPTIONS = {
36053
36056
  "Session-log mode returns its own saved paths and progress information; use the returned result to continue when more history is available."
36054
36057
  ].join(" ")
36055
36058
  };
36056
- function getMakerRemoteProxyPublicDescriptionOverride(toolName) {
36057
- return MAKER_REMOTE_PROXY_PUBLIC_DESCRIPTIONS[toolName];
36058
- }
36059
+
36060
+ // src/maker/server/remoteProxyToolSnapshot.json
36061
+ var remoteProxyToolSnapshot_default = {
36062
+ schemaVersion: 1,
36063
+ toolOrder: [
36064
+ "generate_image",
36065
+ "batch_generate_images",
36066
+ "edit_image",
36067
+ "create_3d_asset",
36068
+ "text_to_music",
36069
+ "create_video_task",
36070
+ "query_video_task",
36071
+ "text_to_sound_effect",
36072
+ "batch_sound_effects",
36073
+ "text_to_dialogue",
36074
+ "audition_voices_for_character",
36075
+ "confirm_character_voice",
36076
+ "generate_test_qrcode",
36077
+ "add_test_whitelist",
36078
+ "get_ad_config",
36079
+ "get_debug_feedbacks"
36080
+ ],
36081
+ tools: [
36082
+ {
36083
+ name: "generate_image",
36084
+ description: "Generate one new image asset for a Maker game. Use batch_generate_images for multiple new images and edit_image to modify an existing image. Optional reference images may guide style or content; supported sources, generation controls, and final target_size requirements are defined by the input schema. Keep each reference image supplied through local paths or data URLs at 10 MiB or less. The local proxy attempts to materialize successful results into the Maker project and retain remote mapping; use returned workspace/local paths when present.",
36085
+ inputSchema: {
36086
+ type: "object",
36087
+ properties: {
36088
+ prompt: {
36089
+ type: "string",
36090
+ description: 'Short Chinese description of the image to generate (max 50KB). Example: "橙色小猫", "蓝色飞龙", "金币图标"'
36091
+ },
36092
+ name: {
36093
+ type: "string",
36094
+ description: 'File name for the generated image (without extension, max 100 characters). This will be used in the output filename: {name}_{timestamp}.png. Example: "小猫", "飞龙", "金币"'
36095
+ },
36096
+ aspect_ratio: {
36097
+ type: "string",
36098
+ enum: ["1:1", "2:3", "3:2", "3:4", "4:3", "9:16", "16:9", "21:9", "5:4", "4:5"],
36099
+ description: 'Image aspect ratio. Default is "1:1". See tool description for use cases of each ratio.'
36100
+ },
36101
+ transparent: {
36102
+ type: "boolean",
36103
+ description: 'Whether to generate image with transparent background. Auto-detected if user mentions "透明", "透明背景", "抠图", or "无背景" in their request.'
36104
+ },
36105
+ target_size: {
36106
+ type: "string",
36107
+ description: '**REQUIRED.** Final image dimensions after scaling (format: "widthxheight").\nExamples: "256x256" (icon), "512x1024" (sprite).\nChoose aspect_ratio for shape, then target_size for exact pixel dimensions.'
36108
+ },
36109
+ reference_image: {
36110
+ type: "string",
36111
+ description: '[Deprecated] Path to a single reference image file (relative to workspace root). Use reference_images instead for multi-reference support. Example: "assets/cat.png"'
36112
+ },
36113
+ reference_images: {
36114
+ type: "array",
36115
+ items: { type: "string" },
36116
+ description: "List of reference images (up to 14). Each item can be a file path (relative to workspace root) OR a base64 data URL. Takes priority over reference_image. The generated image will incorporate style/content from these references."
36117
+ },
36118
+ seed: {
36119
+ type: "number",
36120
+ description: "Random seed for reproducible results. Use the same seed with the same prompt to get consistent outputs. Example: 42"
36121
+ },
36122
+ thinking_level: {
36123
+ type: "string",
36124
+ enum: ["minimal", "high"],
36125
+ description: 'AI reasoning depth. "minimal" is faster, "high" produces better results for complex prompts.'
36126
+ },
36127
+ resolution: {
36128
+ type: "string",
36129
+ enum: ["0.5K", "1K", "2K", "4K"],
36130
+ description: 'Generation resolution before scaling to target_size. Default is "1K". Higher values produce more detail but take longer.'
36131
+ },
36132
+ model: {
36133
+ type: "string",
36134
+ enum: ["nanobanana", "gpt"],
36135
+ description: 'Model to use for generation. "nanobanana" uses Nano Banana 2 (Gemini). "gpt" uses GPT Image 2 (OpenAI). IMPORTANT: Do NOT set this parameter unless the user has explicitly named a model (e.g. "use nanobanana" / "switch to gpt"), or another parameter of this same tool documents that it requires a specific model. When the user does not specify, omit this field entirely so the server picks the default — never guess or default it yourself.'
36136
+ },
36137
+ quality: {
36138
+ type: "string",
36139
+ enum: ["low", "medium", "high", "auto"],
36140
+ description: 'Image quality, only supported when model is "gpt" (GPT Image 2). One of "low", "medium", "high", "auto" (default). If the user explicitly asked for a specific image quality, set this field AND set model to "gpt" together; otherwise omit both.'
36141
+ },
36142
+ target_dir: {
36143
+ type: "string",
36144
+ description: "Optional local Maker project directory. This is a local Maker MCP private parameter used to resolve the current project for asset materialization and reference rewriting; it is not forwarded to the remote Maker tool."
36145
+ }
36146
+ },
36147
+ required: ["prompt", "name", "target_size"]
36148
+ }
36149
+ },
36150
+ {
36151
+ name: "batch_generate_images",
36152
+ description: "Generate two or more new image assets in parallel in one call. Use generate_image for one new image and edit_image to modify an existing image. Each image request uses the fields and constraints defined by the input schema. Keep each reference image supplied through local paths or data URLs at 10 MiB or less. A batch may partially succeed; preserve successful images and report failed items with their returned errors. The local proxy attempts to materialize successful results into the Maker project and retain remote mapping; use returned workspace/local paths when present.",
36153
+ inputSchema: {
36154
+ type: "object",
36155
+ properties: {
36156
+ images: {
36157
+ type: "array",
36158
+ description: "Array of image generation requests to process in parallel (2-10 images recommended)",
36159
+ items: {
36160
+ type: "object",
36161
+ properties: {
36162
+ prompt: {
36163
+ type: "string",
36164
+ description: 'Short Chinese description of the image to generate (max 50KB). Example: "橙色小猫", "蓝色飞龙", "金币图标"'
36165
+ },
36166
+ name: {
36167
+ type: "string",
36168
+ description: 'File name for the generated image (without extension, max 100 characters). This will be used in the output filename: {name}_{timestamp}.png. Example: "小猫", "飞龙", "金币"'
36169
+ },
36170
+ aspect_ratio: {
36171
+ type: "string",
36172
+ enum: ["1:1", "2:3", "3:2", "3:4", "4:3", "9:16", "16:9", "21:9", "5:4", "4:5"],
36173
+ description: 'Image aspect ratio. Default is "1:1". See tool description for use cases of each ratio.'
36174
+ },
36175
+ transparent: {
36176
+ type: "boolean",
36177
+ description: 'Whether to generate image with transparent background. Auto-detected if user mentions "透明", "透明背景", "抠图", or "无背景" in their request.'
36178
+ },
36179
+ target_size: {
36180
+ type: "string",
36181
+ description: '**REQUIRED.** Final image dimensions after scaling (format: "widthxheight").\nExamples: "256x256" (icon), "512x1024" (sprite).\nChoose aspect_ratio for shape, then target_size for exact pixel dimensions.'
36182
+ },
36183
+ reference_image: {
36184
+ type: "string",
36185
+ description: '[Deprecated] Path to a single reference image file (relative to workspace root). Use reference_images instead for multi-reference support. Example: "assets/cat.png"'
36186
+ },
36187
+ reference_images: {
36188
+ type: "array",
36189
+ items: { type: "string" },
36190
+ description: "List of reference images (up to 14). Each item can be a file path (relative to workspace root) OR a base64 data URL. Takes priority over reference_image. The generated image will incorporate style/content from these references."
36191
+ },
36192
+ seed: {
36193
+ type: "number",
36194
+ description: "Random seed for reproducible results. Use the same seed with the same prompt to get consistent outputs. Example: 42"
36195
+ },
36196
+ thinking_level: {
36197
+ type: "string",
36198
+ enum: ["minimal", "high"],
36199
+ description: 'AI reasoning depth. "minimal" is faster, "high" produces better results for complex prompts.'
36200
+ },
36201
+ resolution: {
36202
+ type: "string",
36203
+ enum: ["0.5K", "1K", "2K", "4K"],
36204
+ description: 'Generation resolution before scaling to target_size. Default is "1K". Higher values produce more detail but take longer.'
36205
+ },
36206
+ model: {
36207
+ type: "string",
36208
+ enum: ["nanobanana", "gpt"],
36209
+ description: 'Model to use for generation. "nanobanana" uses Nano Banana 2 (Gemini). "gpt" uses GPT Image 2 (OpenAI). IMPORTANT: Do NOT set this parameter unless the user has explicitly named a model (e.g. "use nanobanana" / "switch to gpt"), or another parameter of this same tool documents that it requires a specific model. When the user does not specify, omit this field entirely so the server picks the default — never guess or default it yourself.'
36210
+ },
36211
+ quality: {
36212
+ type: "string",
36213
+ enum: ["low", "medium", "high", "auto"],
36214
+ description: 'Image quality, only supported when model is "gpt" (GPT Image 2). One of "low", "medium", "high", "auto" (default). If the user explicitly asked for a specific image quality, set this field AND set model to "gpt" together; otherwise omit both.'
36215
+ }
36216
+ },
36217
+ required: ["prompt", "name", "target_size"]
36218
+ }
36219
+ },
36220
+ target_dir: {
36221
+ type: "string",
36222
+ description: "Optional local Maker project directory. This is a local Maker MCP private parameter used to resolve the current project for asset materialization and reference rewriting; it is not forwarded to the remote Maker tool."
36223
+ }
36224
+ },
36225
+ required: ["images"]
36226
+ }
36227
+ },
36228
+ {
36229
+ name: "edit_image",
36230
+ description: "Modify an existing image from text instructions. Use generate_image for one new image and batch_generate_images for multiple new images. The required original image accepts a local Maker project path, an HTTP(S) URL, or an image data URL. Additional reference images and output controls are defined by the input schema. Keep each local-path or data URL image at 10 MiB or less. The local proxy attempts to materialize successful results into the Maker project and retain remote mapping; use returned workspace/local paths when present.",
36231
+ inputSchema: {
36232
+ type: "object",
36233
+ properties: {
36234
+ image: {
36235
+ type: "string",
36236
+ description: 'Path to the image file (relative to workspace root), remote http/https image URL, or a base64 data URL (data:image/png;base64,...). Example: "assets/cat.png", "https://cdn.example.com/cat.png", "data:image/png;base64,iVBOR..."'
36237
+ },
36238
+ prompt: {
36239
+ type: "string",
36240
+ description: 'Edit instructions describing what modifications to make. Example: "把背景改成蓝色", "添加一个太阳"'
36241
+ },
36242
+ name: {
36243
+ type: "string",
36244
+ description: "Output filename (without extension, max 100 characters). This will be used in the output filename: edited_{name}_{timestamp}.png"
36245
+ },
36246
+ aspect_ratio: {
36247
+ type: "string",
36248
+ enum: ["1:1", "2:3", "3:2", "3:4", "4:3", "9:16", "16:9", "21:9", "5:4", "4:5"],
36249
+ description: "Output image aspect ratio"
36250
+ },
36251
+ target_size: {
36252
+ type: "string",
36253
+ description: '**REQUIRED.** Final image dimensions after scaling (format: "widthxheight").\nExamples: "256x256" (icon), "512x1024" (sprite).\nChoose aspect_ratio for shape, then target_size for exact pixel dimensions.'
36254
+ },
36255
+ transparent: {
36256
+ type: "boolean",
36257
+ description: "Whether to generate image with transparent background."
36258
+ },
36259
+ reference_images: {
36260
+ type: "array",
36261
+ items: { type: "string" },
36262
+ description: "List of reference images for style/character consistency (up to 13). Each item can be a file path (relative to workspace root), remote http/https image URL, OR a base64 data URL. Combined with the original image, total must not exceed 14 (Nano Banana 2 limit)."
36263
+ },
36264
+ seed: {
36265
+ type: "number",
36266
+ description: "Random seed for reproducible results. Example: 42"
36267
+ },
36268
+ thinking_level: {
36269
+ type: "string",
36270
+ enum: ["minimal", "high"],
36271
+ description: 'AI reasoning depth. "minimal" is faster, "high" produces better quality for complex edits.'
36272
+ },
36273
+ resolution: {
36274
+ type: "string",
36275
+ enum: ["0.5K", "1K", "2K", "4K"],
36276
+ description: 'Generation resolution before scaling to target_size. Default is "1K".'
36277
+ },
36278
+ model: {
36279
+ type: "string",
36280
+ enum: ["nanobanana", "gpt"],
36281
+ description: 'Model to use for generation. "nanobanana" uses Nano Banana 2 (Gemini). "gpt" uses GPT Image 2 (OpenAI). IMPORTANT: Do NOT set this parameter unless the user has explicitly named a model (e.g. "use nanobanana" / "switch to gpt"), or another parameter of this same tool documents that it requires a specific model. When the user does not specify, omit this field entirely so the server picks the default — never guess or default it yourself.'
36282
+ },
36283
+ quality: {
36284
+ type: "string",
36285
+ enum: ["low", "medium", "high", "auto"],
36286
+ description: 'Image quality, only supported when model is "gpt" (GPT Image 2). One of "low", "medium", "high", "auto" (default). If the user explicitly asked for a specific image quality, set this field AND set model to "gpt" together; otherwise omit both.'
36287
+ },
36288
+ target_dir: {
36289
+ type: "string",
36290
+ description: "Optional local Maker project directory. This is a local Maker MCP private parameter used to resolve the current project for asset materialization and reference rewriting; it is not forwarded to the remote Maker tool."
36291
+ }
36292
+ },
36293
+ required: ["image", "prompt", "name", "target_size"]
36294
+ }
36295
+ },
36296
+ {
36297
+ name: "create_3d_asset",
36298
+ description: 'Manage the complete Maker 3D asset lifecycle. Use action="start" to begin, action="query" to check progress, action="get_options" to inspect step options, action="continue" after review, and action="post_process" for supported follow-up operations. Use direct generation when no review checkpoint is needed, and reviewed generation when the user needs a preview before final generation. For reviewed generation, show every returned preview and wait for explicit user approval before action="continue"; never approve a review step automatically. Supported prompt, image, strategy, quality, and post-processing fields are defined by the input schema. Local image inputs are normalized for the remote service. The local proxy attempts to materialize completed model delivery under assets/model and review images under assets/image; use local_delivery, preview_assets, and other returned local paths when present.',
36299
+ inputSchema: {
36300
+ type: "object",
36301
+ properties: {
36302
+ action: {
36303
+ type: "string",
36304
+ enum: ["start", "continue", "query", "get_options", "post_process"],
36305
+ description: "Required lifecycle action: start, continue, query, get_options, or post_process."
36306
+ },
36307
+ asset_id: {
36308
+ type: "string",
36309
+ description: "Asset lifecycle id returned by this tool. Required for continue and post_process; preferred for query."
36310
+ },
36311
+ task_id: {
36312
+ type: "string",
36313
+ description: "Underlying Tripo task id. Query supports this as a fallback when asset_id is unavailable."
36314
+ },
36315
+ step_id: {
36316
+ type: "string",
36317
+ description: "Current lifecycle step, such as multiview_review or post_process. Required for continue."
36318
+ },
36319
+ payload: {
36320
+ type: "object",
36321
+ description: 'Action payload. For start: { generation_strategy?: "direct"|"reviewed", quality_tier?: "fast"|"balanced"|"high_quality", prompt?: string, images?: {front,left?,back?,right?}, options?: object }. For continue: { confirm?: true, images?: object, options?: object }. For post_process: { operation: "rig"|"texture"|"retopology"|"convert", options?: object }. Advanced options are service-controlled and may be ignored by policy.',
36322
+ properties: {
36323
+ generation_strategy: {
36324
+ type: "string",
36325
+ enum: ["direct", "reviewed", "reviewed_multiview"],
36326
+ description: "Workflow strategy. direct means submit prompt/image/multiview directly to final model generation. reviewed means create or derive reviewable views first, wait for user confirmation, then submit multiview-to-model. Use reviewed for characters, creatures, NPCs, hero props, important gameplay objects, or precise art direction."
36327
+ },
36328
+ quality_tier: {
36329
+ type: "string",
36330
+ enum: ["fast", "balanced", "high_quality"],
36331
+ description: "Final model quality tier, independent from workflow strategy. Use fast only for simple low-importance props or rough throwaway objects. Use balanced by default for ordinary assets. Use high_quality when the final model needs higher face limit and detailed texture settings."
36332
+ },
36333
+ operation: {
36334
+ type: "string",
36335
+ enum: ["rig", "texture", "retopology", "convert"],
36336
+ description: 'Required for action="post_process". rig checks bindability internally and adds skeleton when possible. texture regenerates/adjusts materials and texture. retopology reduces/optimizes face count. convert exports another format. Tripo animation retargeting is intentionally not supported.'
36337
+ },
36338
+ prompt: { type: "string" },
36339
+ subject_type: {
36340
+ type: "string",
36341
+ enum: ["biped", "quadruped", "scenery", "other"],
36342
+ description: 'Required when starting a text prompt with generation_strategy="reviewed". Describes the type of subject being generated, used to select the appropriate pose/composition prompt:\n- "biped": humanoid character standing on two legs (person, warrior, robot, etc.) — A-pose will be enforced\n- "quadruped": four-legged animal or creature — neutral standing pose\n- "scenery": landscape, terrain, environment, background scene — no pose instructions\n- "other": object, vehicle, building, weapon, prop, etc. — no pose instructions'
36343
+ },
36344
+ images: {
36345
+ type: "object",
36346
+ properties: {
36347
+ front: {
36348
+ type: "string",
36349
+ description: "Required front image. In local mode, use an image data URL or HTTPS upload URL for an unsynced private image. Server mode may also use a synced workspace project path."
36350
+ },
36351
+ left: {
36352
+ type: "string",
36353
+ description: "Optional left-view image. Local unsynced private images must use a data URL or HTTPS upload URL."
36354
+ },
36355
+ back: {
36356
+ type: "string",
36357
+ description: "Optional back-view image. Local unsynced private images must use a data URL or HTTPS upload URL."
36358
+ },
36359
+ right: {
36360
+ type: "string",
36361
+ description: "Optional right-view image. Local unsynced private images must use a data URL or HTTPS upload URL."
36362
+ }
36363
+ }
36364
+ },
36365
+ options: {
36366
+ type: "object",
36367
+ description: "Advanced options. For post_process: input/source_task_id/source_url can override the default current asset input; rig supports rig_type/model/spec and uses the service-controlled output format; texture supports texture_prompt/pbr/texture_quality/texture_alignment/bake; retopology supports face_limit/model/quad/bake; convert requires format and supports face_limit/texture_size/fbx_preset."
36368
+ },
36369
+ confirm: { type: "boolean" }
36370
+ }
36371
+ },
36372
+ target_dir: {
36373
+ type: "string",
36374
+ description: "Optional local Maker project directory. This is a local Maker MCP private parameter used to resolve the current project for asset materialization and reference rewriting; it is not forwarded to the remote Maker tool."
36375
+ }
36376
+ },
36377
+ required: ["action"]
36378
+ }
36379
+ },
36380
+ {
36381
+ name: "text_to_music",
36382
+ description: "Generate AI music for a Maker game, including background music or vocal tracks; do not use this tool for sound effects. The remote call polls server-side every 20 seconds and may wait up to 50 minutes. If generation is still running when the call times out, the result includes the task ID for operational tracking. Simple and custom generation controls are defined by the input schema. The local proxy attempts to materialize successful audio and metadata into the Maker project and record them for later Maker references; use returned local paths when present.",
36383
+ inputSchema: {
36384
+ type: "object",
36385
+ properties: {
36386
+ customMode: {
36387
+ type: "boolean",
36388
+ description: "Enable Custom Mode for fine-grained control. When true, you must provide style and title. When false (default), only prompt is needed.",
36389
+ default: false
36390
+ },
36391
+ instrumental: {
36392
+ type: "boolean",
36393
+ description: "Generate instrumental track without vocals. Default false (with vocals). Only effective in custom mode.",
36394
+ default: false
36395
+ },
36396
+ model: {
36397
+ type: "string",
36398
+ description: "Model version. V4_5 recommended for best quality. Newer models (V4_5+) support longer prompts and styles.",
36399
+ enum: ["V3_5", "V4", "V4_5", "V4_5PLUS", "V5"],
36400
+ default: "V4_5"
36401
+ },
36402
+ prompt: {
36403
+ type: "string",
36404
+ description: 'Music description or lyrics. Simple mode: describe the music you want (max 500 chars), e.g. "epic orchestral battle theme". Custom mode: can include lyrics (max 3000-5000 chars depending on model).'
36405
+ },
36406
+ style: {
36407
+ type: "string",
36408
+ description: 'Music style/genre. Required in custom mode. Examples: "electronic, ambient, synth", "orchestral, epic, cinematic". Max 200-1000 chars depending on model.'
36409
+ },
36410
+ title: {
36411
+ type: "string",
36412
+ description: 'Track title. Required in custom mode. Max 80 chars. Example: "Battle Theme", "Menu Music".'
36413
+ },
36414
+ negativeTags: {
36415
+ type: "string",
36416
+ description: 'Styles to avoid, comma-separated. Example: "vocals, loud, aggressive".'
36417
+ },
36418
+ vocalGender: {
36419
+ type: "string",
36420
+ description: 'Preferred vocal gender when instrumental=false. Use "m" for male, "f" for female.'
36421
+ },
36422
+ target_dir: {
36423
+ type: "string",
36424
+ description: "Optional local Maker project directory. This is a local Maker MCP private parameter used to resolve the current project for asset materialization and reference rewriting; it is not forwarded to the remote Maker tool."
36425
+ }
36426
+ },
36427
+ required: ["prompt"]
36428
+ }
36429
+ },
36430
+ {
36431
+ name: "create_video_task",
36432
+ description: "Create a video generation task. The remote service normally performs server-side polling and waits for the final result in this call. If the wait budget expires, the result returns a task_id; continue other work and use query_video_task no sooner than 120 seconds later. Mode-specific inputs and limits are defined by the input schema. Image, video, and audio references may use local project files, HTTP(S) URLs, or data URLs supported by the schema. Keep image references at 30 MiB or less, video references at 50 MiB or less, and audio references at 15 MiB or less. The local proxy attempts to materialize successful video results into the Maker project; prefer returned workspace paths when present, unless the user needs an external share URL.",
36433
+ inputSchema: {
36434
+ type: "object",
36435
+ properties: {
36436
+ mode: {
36437
+ type: "string",
36438
+ enum: ["text_to_video", "first_frame", "first_last_frame", "multi_modal_reference"],
36439
+ description: 'REQUIRED. Video generation mode (4 mutually exclusive modes):\n- "text_to_video": Text prompt only. No images/videos/audios allowed.\n- "first_frame": Exactly 1 image as the video\'s first frame. No videos/audios.\n- "first_last_frame": Exactly 2 images (first frame + last frame). No videos/audios.\n- "multi_modal_reference": reference images, optionally with reference videos and audios. Per-model caps: see the `model` parameter.'
36440
+ },
36441
+ model: {
36442
+ type: "string",
36443
+ enum: ["2.0", "2.5"],
36444
+ description: 'Seedance 模型版本,默认 "2.0"。\n- "2.0": Seedance 2.0 fast。duration 4-15s,参考图最多 9 张、参考视频 3 个、参考音频 3 个,音频不能单独输入。\n- "2.5": Seedance 2.5,效果与可控性更强、成本更高。duration 4-30s,参考图最多 30 张、参考视频 10 个、参考音频 10 个,支持仅传音频驱动生成。\n需要超过 15s 时长、大量参考素材或纯音频驱动时用 "2.5",其余场景保持默认。'
36445
+ },
36446
+ prompt: {
36447
+ type: "string",
36448
+ description: '视频生成提示词。mode="text_to_video" 时必填;其他模式可选。'
36449
+ },
36450
+ images: {
36451
+ type: "array",
36452
+ description: 'Image inputs. How images are used depends on the `mode` parameter:\n- mode="text_to_video": Do NOT provide images.\n- mode="first_frame": Provide exactly 1 image (role=first_frame).\n- mode="first_last_frame": Provide exactly 2 images (role=first_frame + last_frame).\n- mode="multi_modal_reference": Provide reference images (role=reference_image), up to 9 for model="2.0" / 30 for model="2.5". Can combine with videos/audios.\nRoles are auto-assigned based on mode. You may override by setting each image\'s role explicitly.\nSupported sources: local file path, https URL, asset://<asset_id> (from asset library), or data URL (data:image/png;base64,...).',
36453
+ items: {
36454
+ type: "object",
36455
+ properties: {
36456
+ url: {
36457
+ type: "string",
36458
+ description: "图片本地文件路径、远程 URL、素材库资产 URI(asset://<asset_id>)或 data URL(data:image/png;base64,...)。"
36459
+ },
36460
+ role: {
36461
+ type: "string",
36462
+ enum: ["first_frame", "last_frame", "reference_image"],
36463
+ description: "图片角色。通常由 mode 自动决定,仅在需要覆盖时手动指定。"
36464
+ }
36465
+ },
36466
+ required: ["url"]
36467
+ }
36468
+ },
36469
+ videos: {
36470
+ type: "array",
36471
+ description: '参考视频输入列表,model="2.0" 最多 3 个,model="2.5" 最多 10 个。支持本地文件路径、远程 URL 或 data URL(data:video/mp4;base64,...);本地文件与 data URL 会先自动上传阿里云 OSS,再以 URL 形式提交给上游接口。仅支持 reference_video。',
36472
+ items: {
36473
+ type: "object",
36474
+ properties: {
36475
+ url: {
36476
+ type: "string",
36477
+ description: "视频本地文件路径、远程 URL 或 data URL(data:video/mp4;base64,...)。"
36478
+ },
36479
+ role: {
36480
+ type: "string",
36481
+ enum: ["reference_video"],
36482
+ description: "默认 reference_video。"
36483
+ }
36484
+ },
36485
+ required: ["url"]
36486
+ }
36487
+ },
36488
+ audios: {
36489
+ type: "array",
36490
+ description: '参考音频输入列表,model="2.0" 最多 3 个,model="2.5" 最多 10 个。支持本地文件路径、远程 URL 或 data URL(data:audio/mpeg;base64,...)。本地音频/data URL 会自动转成上游所需格式。仅支持 reference_audio;model="2.0" 下不能单独使用(需搭配参考图或参考视频),model="2.5" 支持仅传音频。',
36491
+ items: {
36492
+ type: "object",
36493
+ properties: {
36494
+ url: {
36495
+ type: "string",
36496
+ description: "音频本地文件路径、远程 URL 或 data URL(data:audio/mpeg;base64,...)。"
36497
+ },
36498
+ role: {
36499
+ type: "string",
36500
+ enum: ["reference_audio"],
36501
+ description: "默认 reference_audio。"
36502
+ }
36503
+ },
36504
+ required: ["url"]
36505
+ }
36506
+ },
36507
+ generate_audio: {
36508
+ type: "boolean",
36509
+ description: "是否生成有声视频。"
36510
+ },
36511
+ resolution: {
36512
+ type: "string",
36513
+ enum: ["480p", "720p"],
36514
+ description: "输出分辨率,默认 720p。两个模型版本均仅支持 480p/720p。"
36515
+ },
36516
+ ratio: {
36517
+ type: "string",
36518
+ enum: ["16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive"],
36519
+ description: '输出宽高比,默认 "adaptive"(由模型按输入或 prompt 自动选择)。\nmodel="2.5" 的以下场景只接受 "adaptive",指定具体比例会被上游拒绝:mode="first_frame" / "first_last_frame"(跟随首帧图片)、以参考视频做视频编辑/延长(跟随输入视频)。\nmodel="2.0" 各场景均可指定具体比例。'
36520
+ },
36521
+ duration: {
36522
+ type: "integer",
36523
+ description: '视频时长(秒)。model="2.0" 支持 4-15,model="2.5" 支持 4-30;也可传 -1。不建议设为 -1;模型会自主选择时长,但这会直接影响计费与结果可预期性,建议明确指定整数秒。\nmodel="2.5" 以参考视频做视频编辑时只接受 -1(输出时长跟随输入视频),且输入视频时长需在 4-30s 内。'
36524
+ },
36525
+ return_last_frame: {
36526
+ type: "boolean",
36527
+ description: "是否返回尾帧图片 URL。默认 true;如不需要可显式传 false。"
36528
+ },
36529
+ suppress_preview_links: {
36530
+ type: "boolean",
36531
+ description: "是否抑制工具结果中的会话预览链接以便静默执行。默认 false。"
36532
+ },
36533
+ enable_web_search: {
36534
+ type: "boolean",
36535
+ description: "启用联网搜索增强,仅支持纯文本生视频。默认关闭;仅在确实需要联网补充信息时显式开启。"
36536
+ },
36537
+ execution_expires_after: {
36538
+ type: "integer",
36539
+ description: "任务超时时间(秒),默认 172800,取值范围 3600-259200。"
36540
+ },
36541
+ target_dir: {
36542
+ type: "string",
36543
+ description: "Optional local Maker project directory. This is a local Maker MCP private parameter used to resolve the current project for asset materialization and reference rewriting; it is not forwarded to the remote Maker tool."
36544
+ }
36545
+ },
36546
+ required: ["mode"]
36547
+ }
36548
+ },
36549
+ {
36550
+ name: "query_video_task",
36551
+ description: "Query video task status by task_id after create_video_task returns a pending task or reports a concurrency limit. If the task is still pending or running, continue other work and query again no sooner than 120 seconds later; do not poll continuously. Querying a completed task releases its task quota. The local proxy attempts to materialize successful video and last-frame results into the Maker project. Prefer workspace_video_path and workspace_last_frame_path when present; mention CDN URLs only when the user needs an external share link.",
36552
+ inputSchema: {
36553
+ type: "object",
36554
+ properties: {
36555
+ task_id: {
36556
+ type: "string",
36557
+ description: "由 create_video_task 返回的任务 ID。"
36558
+ },
36559
+ suppress_preview_links: {
36560
+ type: "boolean",
36561
+ description: "是否抑制工具结果中的会话预览链接以便静默执行。默认 false。"
36562
+ },
36563
+ target_dir: {
36564
+ type: "string",
36565
+ description: "Optional local Maker project directory. This is a local Maker MCP private parameter used to resolve the current project for asset materialization and reference rewriting; it is not forwarded to the remote Maker tool."
36566
+ }
36567
+ },
36568
+ required: ["task_id"]
36569
+ }
36570
+ },
36571
+ {
36572
+ name: "text_to_sound_effect",
36573
+ description: "Generate one game sound effect from a Chinese or English description with Doubao Seed Audio. Each call produces one output of at most 120 seconds. Split longer audio across multiple generations because this tool does not stitch outputs. duration_seconds is an approximate target and the actual duration may differ. The local proxy attempts to materialize successful audio in the provider original format under assets/audio/sfx and record it for later Maker references; use returned local paths when present.",
36574
+ inputSchema: {
36575
+ type: "object",
36576
+ properties: {
36577
+ text: {
36578
+ type: "string",
36579
+ description: "Sound effect description in Chinese or English. Be specific and detailed."
36580
+ },
36581
+ duration_seconds: {
36582
+ type: "number",
36583
+ exclusiveMinimum: 0,
36584
+ maximum: 120,
36585
+ description: "Approximate duration target greater than 0 and up to Seed Audio's 120-second output limit; the actual duration may differ."
36586
+ },
36587
+ loop: {
36588
+ type: "boolean",
36589
+ description: "Generate seamlessly looping sound. Good for ambient/background sounds.",
36590
+ default: false
36591
+ },
36592
+ output_name: {
36593
+ type: "string",
36594
+ description: "Output filename without extension. If not provided, auto-generated."
36595
+ },
36596
+ target_dir: {
36597
+ type: "string",
36598
+ description: "Optional local Maker project directory. This is a local Maker MCP private parameter used to resolve the current project for asset materialization and reference rewriting; it is not forwarded to the remote Maker tool."
36599
+ }
36600
+ },
36601
+ required: ["text"]
36602
+ }
36603
+ },
36604
+ {
36605
+ name: "batch_sound_effects",
36606
+ description: "Generate multiple game sound effects with Doubao Seed Audio in one batch. Each item is an independent output of at most 120 seconds. Split longer audio across items or calls because this tool does not stitch outputs. The result preserves per-item failures while the local proxy attempts to materialize successful audio in the provider original format under assets/audio/sfx and record it for later Maker references; use returned local paths when present.",
36607
+ inputSchema: {
36608
+ type: "object",
36609
+ properties: {
36610
+ sounds: {
36611
+ type: "array",
36612
+ description: "Array of sound effect definitions",
36613
+ items: {
36614
+ type: "object",
36615
+ properties: {
36616
+ name: {
36617
+ type: "string",
36618
+ description: "Output filename without extension"
36619
+ },
36620
+ text: {
36621
+ type: "string",
36622
+ description: "Sound effect description in Chinese or English"
36623
+ },
36624
+ duration: {
36625
+ type: "number",
36626
+ description: "Approximate duration target validated independently per item. It must be greater than 0 and no more than Seed Audio's 120-second output limit; the actual duration may differ."
36627
+ },
36628
+ loop: {
36629
+ type: "boolean",
36630
+ description: "Create looping sound"
36631
+ }
36632
+ },
36633
+ required: ["name", "text"]
36634
+ }
36635
+ },
36636
+ target_dir: {
36637
+ type: "string",
36638
+ description: "Optional local Maker project directory. This is a local Maker MCP private parameter used to resolve the current project for asset materialization and reference rewriting; it is not forwarded to the remote Maker tool."
36639
+ }
36640
+ },
36641
+ required: ["sounds"]
36642
+ }
36643
+ },
36644
+ {
36645
+ name: "text_to_dialogue",
36646
+ description: "Generate final character dialogue audio with ElevenLabs Eleven v3. Each character needs a confirmed ElevenLabs voice mapping in .project/elevenlabs-voice-mapping.json; when one is missing, call audition_voices_for_character and then confirm_character_voice before retrying. Use stability from 0 to 1 (default 0.5) to tune variation. Eleven v3 supports audio tags such as [sad] and [laughing] plus punctuation-based pacing. The local proxy attempts to materialize successful dialogue under assets/audio/voice; use returned local paths when present.",
36647
+ inputSchema: {
36648
+ type: "object",
36649
+ properties: {
36650
+ inputs: {
36651
+ type: "array",
36652
+ description: "Dialogue lines using confirmed ElevenLabs character voices.",
36653
+ items: {
36654
+ type: "object",
36655
+ properties: {
36656
+ character_name: {
36657
+ type: "string",
36658
+ description: "Character name matching an ElevenLabs voice mapping."
36659
+ },
36660
+ text: {
36661
+ type: "string",
36662
+ description: "Dialogue text. Eleven v3 audio tags such as [sad] and [laughing] are supported."
36663
+ }
36664
+ },
36665
+ required: ["character_name", "text"]
36666
+ }
36667
+ },
36668
+ language_code: {
36669
+ type: "string",
36670
+ default: "cmn",
36671
+ description: "ISO 639-1 language code. Defaults to cmn (Chinese Mandarin)."
36672
+ },
36673
+ stability: {
36674
+ type: "number",
36675
+ default: 0.5,
36676
+ description: "Eleven v3 voice stability. Recommended range 0 to 1; finite legacy values are accepted and quantized to 0, 0.5, or 1."
36677
+ },
36678
+ output_name: {
36679
+ type: "string",
36680
+ description: "Safe output basename without directory separators."
36681
+ },
36682
+ target_dir: {
36683
+ type: "string",
36684
+ description: "Optional local Maker project directory. This is a local Maker MCP private parameter used to resolve the current project for asset materialization and reference rewriting; it is not forwarded to the remote Maker tool."
36685
+ }
36686
+ },
36687
+ required: ["inputs"]
36688
+ }
36689
+ },
36690
+ {
36691
+ name: "audition_voices_for_character",
36692
+ description: "Create 1 to 3 temporary ElevenLabs Voice Design previews for one game character. Prepare a detailed character description and an audition line of at least 100 characters that matches the character personality and speaking style. candidate_count accepts 1 to 3 and defaults to 3. Show every returned preview to the user and wait for an explicit choice before calling confirm_character_voice. Complete audition and confirmation for one character before starting another in the same project; do not run them in parallel. Preview files are temporary and are not saved as final game assets.",
36693
+ inputSchema: {
36694
+ type: "object",
36695
+ properties: {
36696
+ character_name: {
36697
+ type: "string",
36698
+ description: "Character name"
36699
+ },
36700
+ character_description: {
36701
+ type: "string",
36702
+ description: "ElevenLabs Voice Design prompt covering age/gender, timbre, pacing, emotion, style, and recording quality."
36703
+ },
36704
+ audition_line: {
36705
+ type: "string",
36706
+ description: "Representative dialogue for the preview. MUST be at least 100 characters and match the requested character style.",
36707
+ minLength: 100
36708
+ },
36709
+ candidate_count: {
36710
+ type: "number",
36711
+ minimum: 1,
36712
+ maximum: 3,
36713
+ default: 3,
36714
+ description: "Number of voice candidates from 1 to 3, default 3."
36715
+ },
36716
+ target_dir: {
36717
+ type: "string",
36718
+ description: "Optional local Maker project directory. This is a local Maker MCP private parameter used to resolve the current project for asset materialization and reference rewriting; it is not forwarded to the remote Maker tool."
36719
+ }
36720
+ },
36721
+ required: ["character_name", "character_description", "audition_line"]
36722
+ }
36723
+ },
36724
+ {
36725
+ name: "confirm_character_voice",
36726
+ description: "Confirm an ElevenLabs Voice Design selection, create the permanent voice, and persist the character voice mapping for later text_to_dialogue calls. Call this tool only after audition_voices_for_character and only after the user explicitly selects a candidate or explicitly accepts the recommended candidate. Omit selected_index only after the user explicitly accepts the recommendation; absence of a user choice is not acceptance. Confirmation consumes one ElevenLabs Voice Slot. Process one character at a time and do not call this tool in parallel for the same project.",
36727
+ inputSchema: {
36728
+ type: "object",
36729
+ properties: {
36730
+ character_name: {
36731
+ type: "string",
36732
+ description: "Character name"
36733
+ },
36734
+ selected_index: {
36735
+ type: "number",
36736
+ description: "The candidate number user selected (1-based). If omitted, uses recommended candidate"
36737
+ },
36738
+ target_dir: {
36739
+ type: "string",
36740
+ description: "Optional local Maker project directory. This is a local Maker MCP private parameter used to resolve the current project for asset materialization and reference rewriting; it is not forwarded to the remote Maker tool."
36741
+ }
36742
+ },
36743
+ required: ["character_name"]
36744
+ }
36745
+ },
36746
+ {
36747
+ name: "generate_test_qrcode",
36748
+ description: "Generate a mobile test QR code only when the user explicitly requests a test QR code or scan test, or when get_ad_config reports missing app_id or developer_id and requests this recovery step. Do not call this tool automatically during initialization, build, or publish workflows. When an explicit build is needed, use maker_build_current_directory separately. Call without confirmed_screen_orientation first. Reuse an existing project orientation; only when the tool reports it missing, ask the user in a separate conversation turn to choose landscape or portrait and then retry. An existing orientation is immutable. This operation may upload a test version, create the TapTap app identity, and return a displayable QR code.",
36749
+ inputSchema: {
36750
+ type: "object",
36751
+ properties: {
36752
+ confirmed_screen_orientation: {
36753
+ type: "string",
36754
+ enum: ["landscape", "portrait"],
36755
+ description: "Local-only first-time orientation choice. Omit this when the project already has screen_orientation. Supply it only after the tool reports that orientation is missing and the user selects a value in a separate conversation turn. Existing project orientation is immutable and takes precedence. This value is not forwarded to the remote Maker tool."
36756
+ },
36757
+ target_dir: {
36758
+ type: "string",
36759
+ description: "Optional local Maker project directory. This is a local Maker MCP private parameter used to resolve the current project for asset materialization and reference rewriting; it is not forwarded to the remote Maker tool."
36760
+ }
36761
+ },
36762
+ required: []
36763
+ }
36764
+ },
36765
+ {
36766
+ name: "add_test_whitelist",
36767
+ description: "Add one TapTap user to the current game test whitelist. Use this only after maker_build_current_directory has initialized the project and generate_test_qrcode has established the TapTap app identity. Call it only with the TapTap user_id explicitly provided by the user; never infer an account ID.",
36768
+ inputSchema: {
36769
+ type: "object",
36770
+ properties: {
36771
+ user_id: {
36772
+ type: "number",
36773
+ description: "The TapTap user ID to add to the test whitelist"
36774
+ },
36775
+ target_dir: {
36776
+ type: "string",
36777
+ description: "Optional local Maker project directory. This is a local Maker MCP private parameter used to resolve the current project for asset materialization and reference rewriting; it is not forwarded to the remote Maker tool."
36778
+ }
36779
+ },
36780
+ required: ["user_id"]
36781
+ }
36782
+ },
36783
+ {
36784
+ name: "get_ad_config",
36785
+ description: "For any ad-related request, read maker://ads-integration-guide first. After Maker project status confirms the primary local project configs are initialized, use this as the first remote step. It is the source of truth for current ad activation and configuration, and synchronizes the result into .project/settings.json at @runtime.ad. The local preflight does not call the remote tool while project.json or settings.json is missing. Missing local configs do not authorize an automatic build. Use maker_build_current_directory only for an explicit user build, submit, or preview request, then check project status again. If configs remain missing, report the limitation and do not rebuild automatically. Do not infer ad readiness from local SDK docs, .maker-mcp/config.json, or runtime callbacks, and only implement or test ad behavior after the returned configuration is usable. If app_id or developer_id is missing, call generate_test_qrcode once and then retry this tool. If ad.status != 1, report warning and ad.url, follow the returned next_action, and retry only after the user completes that step.",
36786
+ inputSchema: {
36787
+ type: "object",
36788
+ properties: {
36789
+ target_dir: {
36790
+ type: "string",
36791
+ description: "Optional local Maker project directory. This is a local Maker MCP private parameter used to resolve the current project for asset materialization and reference rewriting; it is not forwarded to the remote Maker tool."
36792
+ }
36793
+ },
36794
+ required: []
36795
+ }
36796
+ },
36797
+ {
36798
+ name: "get_debug_feedbacks",
36799
+ description: "Fetch online player feedback for the current Maker project, or query server and Lua session logs when game_session_id is provided. The default feedback mode fetches unprocessed records and marks the returned records as processed. For a read-only feedback query, set fetch_and_mark_processed=false; use the input schema to select other filters or an exact feedback record. Downloaded feedback attachments are saved in the local project. Read only the returned local_dir, local_log_paths, and local_screenshot_paths; do not treat remote attachment paths as local files. Session-log mode returns its own saved paths and progress information; use the returned result to continue when more history is available.",
36800
+ inputSchema: {
36801
+ type: "object",
36802
+ properties: {
36803
+ developer_id: {
36804
+ type: "number",
36805
+ description: "开发者 ID(可选,默认从 .project/project.json 读取)"
36806
+ },
36807
+ app_id: {
36808
+ type: "number",
36809
+ description: "应用 ID(可选,默认从 .project/project.json 读取)"
36810
+ },
36811
+ limit: { type: "number", description: "返回数量(默认 5)" },
36812
+ status: {
36813
+ type: "number",
36814
+ description: "状态过滤:0=全部, 1=未处理, 2=已处理"
36815
+ },
36816
+ fetch_and_mark_processed: {
36817
+ type: "boolean",
36818
+ description: "仅拉取未处理数据并标记为已处理,优先级高于 status(默认 true)"
36819
+ },
36820
+ moment_id: {
36821
+ type: "string",
36822
+ description: "按玩家说帖子 ID 精确查询(64 位大整数,用字符串避免精度丢失)。传入时忽略 status 和 fetch_and_mark_processed 过滤"
36823
+ },
36824
+ user_id: {
36825
+ type: "string",
36826
+ description: "按提交反馈的玩家 user_id 过滤(64 位大整数,用字符串避免精度丢失),可与 status 组合;与 moment_id 互不影响"
36827
+ },
36828
+ game_session_id: {
36829
+ type: "string",
36830
+ description: "游戏局 ID(19 位数字)。提供时改为查询该局服务端+Lua 游戏局日志,落盘到 userpod /opt/log/server/<id>/"
36831
+ },
36832
+ target_dir: {
36833
+ type: "string",
36834
+ description: "Optional local Maker project directory. This is a local Maker MCP private parameter used to resolve the current project for asset materialization and reference rewriting; it is not forwarded to the remote Maker tool."
36835
+ }
36836
+ },
36837
+ required: []
36838
+ }
36839
+ }
36840
+ ]
36841
+ };
36059
36842
 
36060
36843
  // src/mcp-proxy/config.ts
36061
36844
  var DEFAULT_TOOL_CALL_TIMEOUT_MS = 60 * 60 * 1e3;
@@ -36204,7 +36987,7 @@ function applyDefaults(config2) {
36204
36987
  var MAKER_MCP_TRACKING_ACTION = "tapmaker_mcp_call";
36205
36988
  var MAKER_MCP_TRACKING_SOURCE = "local_mcp";
36206
36989
  var MAKER_MCP_TRACKING_TIMEOUT_MS = 1500;
36207
- var MAKER_MCP_VERSION = "0.0.29".trim() ? "0.0.29".trim() : "dev";
36990
+ var MAKER_MCP_VERSION = "0.0.30-beta.1".trim() ? "0.0.30-beta.1".trim() : "dev";
36208
36991
  var TRACKING_ERROR_MAX_LENGTH = 500;
36209
36992
  function buildMakerMcpTrackingPayload(event) {
36210
36993
  var _a3, _b, _c;
@@ -36517,7 +37300,7 @@ function createMakerRemoteProxyManager(options = {}) {
36517
37300
  }
36518
37301
 
36519
37302
  // src/maker/server/mcp.ts
36520
- var VERSION = true ? "0.0.29" : "dev";
37303
+ var VERSION = true ? "0.0.30-beta.1" : "dev";
36521
37304
  var DEFAULT_BUILD_TIMEOUT_MS = 10 * 60 * 1e3;
36522
37305
  var DEFAULT_PROXY_RETRY_ATTEMPTS = 5;
36523
37306
  var DEFAULT_PROXY_RETRY_DELAY_MS = 30 * 1e3;
@@ -36529,15 +37312,15 @@ var MAKER_REMOTE_PROXY_EXPOSED_TOOL_NAMES = [
36529
37312
  "generate_image",
36530
37313
  "batch_generate_images",
36531
37314
  "edit_image",
37315
+ CREATE_3D_ASSET_PROXY_TOOL_NAME,
37316
+ "text_to_music",
36532
37317
  "create_video_task",
36533
37318
  "query_video_task",
36534
- "text_to_music",
36535
37319
  "text_to_sound_effect",
36536
37320
  "batch_sound_effects",
36537
37321
  "text_to_dialogue",
36538
37322
  "audition_voices_for_character",
36539
37323
  "confirm_character_voice",
36540
- CREATE_3D_ASSET_PROXY_TOOL_NAME,
36541
37324
  "generate_test_qrcode",
36542
37325
  "add_test_whitelist",
36543
37326
  "get_ad_config",
@@ -36693,237 +37476,28 @@ var resources = [
36693
37476
  mimeType: "text/plain"
36694
37477
  }
36695
37478
  ];
36696
- async function listMakerTools(options) {
36697
- var _a3;
36698
- let remoteTools = [];
36699
- try {
36700
- const context = await resolveMakerProjectContext({
36701
- targetDir: options.targetDir,
36702
- listClientRoots: options.listClientRoots,
36703
- allowFallbackOnAmbiguousRoots: false
36704
- });
36705
- const listedRemoteTools = options.listRemoteTools ?? (() => listRemoteProxyTools({
36706
- targetDir: context.targetDir,
36707
- serverUrl: options.serverUrl,
36708
- env: options.env
36709
- }));
36710
- try {
36711
- const exposedTools = filterExposedRemoteProxyTools(await listedRemoteTools());
36712
- remoteTools = exposedTools.map(decorateRemoteProxyToolDefinition);
36713
- } catch (error2) {
36714
- const cachedTools = (_a3 = options.getCachedRemoteTools) == null ? void 0 : _a3.call(options);
36715
- if (!cachedTools) {
36716
- throw error2;
36717
- }
36718
- const exposedTools = filterExposedRemoteProxyTools(cachedTools);
36719
- remoteTools = exposedTools.map(decorateRemoteProxyToolDefinition);
36720
- }
36721
- } catch (error2) {
36722
- if (isMakerProjectContextAmbiguousError(error2)) {
36723
- logLifecycleEvent("maker-tools-list-roots-ambiguous", String(error2));
36724
- }
36725
- remoteTools = [];
36726
- }
37479
+ async function listMakerTools(_options = {}) {
36727
37480
  return {
36728
- tools: [...tools, ...remoteTools]
37481
+ tools: [
37482
+ ...tools,
37483
+ ...createStaticRemoteProxyToolDefinitions()
37484
+ ]
36729
37485
  };
36730
37486
  }
37487
+ function createStaticRemoteProxyToolDefinitions() {
37488
+ return remoteProxyToolSnapshot_default.tools.map((tool) => ({
37489
+ name: tool.name,
37490
+ description: tool.description,
37491
+ inputSchema: tool.inputSchema
37492
+ }));
37493
+ }
36731
37494
  function filterExposedRemoteProxyTools(toolsToFilter) {
36732
37495
  const exposedToolNames = new Set(MAKER_REMOTE_PROXY_EXPOSED_TOOL_NAMES);
36733
37496
  return toolsToFilter.filter((tool) => exposedToolNames.has(tool.name));
36734
37497
  }
36735
- function decorateRemoteProxyToolDefinition(tool) {
36736
- const publicDescription = getMakerRemoteProxyPublicDescriptionOverride(tool.name);
36737
- const guidance = remoteProxyToolGuidance(tool.name);
36738
- return {
36739
- ...tool,
36740
- inputSchema: decorateRemoteProxyToolInputSchema(tool.inputSchema, tool.name),
36741
- description: publicDescription || [tool.description, guidance].filter(Boolean).join("\n\n")
36742
- };
36743
- }
36744
- function decorateRemoteProxyToolInputSchema(inputSchema, toolName) {
36745
- const schema = isPlainRecord(inputSchema) ? inputSchema : {};
36746
- const properties = isPlainRecord(schema.properties) ? schema.properties : {};
36747
- const decoratedProperties = toolName === "text_to_dialogue" ? decorateTextToDialogueInputProperties(properties) : toolName === "audition_voices_for_character" ? decorateVoiceAuditionInputProperties(properties) : properties;
36748
- const required2 = Array.isArray(schema.required) ? schema.required : [];
36749
- const decoratedRequired = toolName === "audition_voices_for_character" && Object.prototype.hasOwnProperty.call(properties, "voice_profile") ? [.../* @__PURE__ */ new Set([...required2, "voice_profile"])] : required2;
36750
- return {
36751
- ...schema,
36752
- type: schema.type || "object",
36753
- required: decoratedRequired,
36754
- properties: {
36755
- ...decoratedProperties,
36756
- ...toolName === "generate_test_qrcode" ? {
36757
- confirmed_screen_orientation: {
36758
- type: "string",
36759
- enum: ["landscape", "portrait"],
36760
- description: "Local-only first-time orientation choice. Omit this when the project already has screen_orientation. Supply it only after the tool reports that orientation is missing and the user selects a value in a separate conversation turn. Existing project orientation is immutable and takes precedence. This value is not forwarded to the remote Maker tool."
36761
- }
36762
- } : {},
36763
- target_dir: {
36764
- type: "string",
36765
- description: "Optional local Maker project directory. This is a local Maker MCP private parameter used to resolve the current project for asset materialization and reference rewriting; it is not forwarded to the remote Maker tool."
36766
- }
36767
- }
36768
- };
36769
- }
36770
- function decorateVoiceAuditionInputProperties(properties) {
36771
- const remoteVoiceProfile = properties.voice_profile;
36772
- if (!isPlainRecord(remoteVoiceProfile)) return properties;
36773
- const voiceProfile = isPlainRecord(remoteVoiceProfile) ? remoteVoiceProfile : {};
36774
- const profileProperties = isPlainRecord(voiceProfile.properties) ? voiceProfile.properties : {};
36775
- const profileRequired = Array.isArray(voiceProfile.required) ? voiceProfile.required : [];
36776
- const remoteGender = profileProperties.gender;
36777
- return {
36778
- ...properties,
36779
- voice_profile: {
36780
- ...voiceProfile,
36781
- type: voiceProfile.type || "object",
36782
- description: [
36783
- voiceProfile.description,
36784
- "Required for character voice audition. Extract gender from character_description or the character settings instead of relying on a default."
36785
- ].filter(Boolean).join(" "),
36786
- properties: {
36787
- ...profileProperties,
36788
- gender: {
36789
- ...isPlainRecord(remoteGender) ? remoteGender : {},
36790
- type: "string",
36791
- enum: ["male", "female"],
36792
- description: "Required structured character gender. Extract male or female from character_description or the character settings."
36793
- }
36794
- },
36795
- required: [.../* @__PURE__ */ new Set([...profileRequired, "gender"])]
36796
- }
36797
- };
36798
- }
36799
- function decorateTextToDialogueInputProperties(properties) {
36800
- const inputs = properties.inputs;
36801
- if (!isPlainRecord(inputs) || !isPlainRecord(inputs.items)) {
36802
- return properties;
36803
- }
36804
- const itemProperties = inputs.items.properties;
36805
- if (!isPlainRecord(itemProperties)) {
36806
- return properties;
36807
- }
36808
- const referenceAudio = itemProperties.reference_audio;
36809
- const referenceAudioPath = itemProperties.reference_audio_path;
36810
- return {
36811
- ...properties,
36812
- inputs: {
36813
- ...inputs,
36814
- items: {
36815
- ...inputs.items,
36816
- properties: {
36817
- ...itemProperties,
36818
- ...isPlainRecord(referenceAudio) ? {
36819
- reference_audio: {
36820
- ...referenceAudio,
36821
- description: [
36822
- referenceAudio.description,
36823
- "Use a local project audio path under assets/audio/, an HTTP(S) URL, or an audio data URL here. Local project audio must exist in the current project and is converted to a data URL automatically. Do not pass bare base64."
36824
- ].filter(Boolean).join(" ")
36825
- }
36826
- } : {},
36827
- ...isPlainRecord(referenceAudioPath) ? {
36828
- reference_audio_path: {
36829
- ...referenceAudioPath,
36830
- description: [
36831
- referenceAudioPath.description,
36832
- "This legacy local project audio path must exist under assets/audio/ or workspace/assets/audio/. The local proxy converts it to the canonical reference_audio data URL; it is not a project-external filesystem path."
36833
- ].filter(Boolean).join(" ")
36834
- }
36835
- } : {}
36836
- }
36837
- }
36838
- }
36839
- };
36840
- }
36841
37498
  function isPlainRecord(value) {
36842
37499
  return typeof value === "object" && value !== null && !Array.isArray(value);
36843
37500
  }
36844
- function remoteProxyToolGuidance(toolName) {
36845
- const failurePolicy = "If this Maker proxy tool fails or returns isError, include the complete sanitized remote_result/error payload from the server so developers can diagnose the issue.";
36846
- const localMediaSizeHint = "Large local/data URL media can be slow or fail: image inputs are commonly limited to about 10 MB, video-task image inputs to about 30 MB, video inputs to about 50 MB, and audio inputs to about 15 MB.";
36847
- switch (toolName) {
36848
- case "generate_image":
36849
- case "batch_generate_images":
36850
- return [
36851
- "**Maker asset workflow hint:** Successful results are downloaded into the Maker project and recorded with remote mapping for later edits or video references.",
36852
- localMediaSizeHint,
36853
- failurePolicy
36854
- ].join(" ");
36855
- case "edit_image":
36856
- return [localMediaSizeHint, failurePolicy].join(" ");
36857
- case "create_video_task":
36858
- return [
36859
- "**Maker asset workflow hint:** Image, video, and audio references may use remote URLs, existing data URLs, or resolvable local files that the local proxy can forward as data URLs.",
36860
- localMediaSizeHint,
36861
- failurePolicy
36862
- ].join(" ");
36863
- case "query_video_task":
36864
- return [
36865
- "**Maker asset workflow hint:** Refreshing video task status releases completed task quota and materializes successful video results into the Maker project.",
36866
- "Use this Maker MCP proxy tool to refresh video task status when create_video_task returns a task_id or reports video concurrency limits.",
36867
- failurePolicy
36868
- ].join(" ");
36869
- case "text_to_music":
36870
- return [
36871
- "**Maker asset workflow hint:** Generated audio can be materialized into the project and recorded for later Maker references.",
36872
- failurePolicy
36873
- ].join(" ");
36874
- case "text_to_sound_effect":
36875
- case "batch_sound_effects":
36876
- return [
36877
- "**Maker asset workflow hint:** Successful audio is materialized in its original format under assets/audio/sfx and recorded for later Maker references.",
36878
- failurePolicy
36879
- ].join(" ");
36880
- case "text_to_dialogue":
36881
- return [
36882
- "**Maker voice workflow hint:** Pass character_name and text after ElevenLabs voice confirmation; the local proxy reuses the confirmed local voice_id mapping and materializes successful dialogue under assets/audio/voice.",
36883
- failurePolicy
36884
- ].join(" ");
36885
- case "audition_voices_for_character":
36886
- return [
36887
- "**Maker voice workflow hint:** Use this Maker MCP proxy tool to create temporary ElevenLabs Voice Design previews. Prepare a representative line of at least 100 characters, show every returned preview, and wait for the user choice before calling confirm_character_voice. Preview candidates are not saved as game assets.",
36888
- failurePolicy
36889
- ].join(" ");
36890
- case "confirm_character_voice":
36891
- return [
36892
- "**Maker voice workflow hint:** Call this Maker MCP proxy tool only after audition_voices_for_character and after the user selects a candidate or accepts the recommendation. Confirmation persists the ElevenLabs voice mapping for later text_to_dialogue calls.",
36893
- failurePolicy
36894
- ].join(" ");
36895
- case CREATE_3D_ASSET_PROXY_TOOL_NAME:
36896
- return [
36897
- "**Maker asset workflow hint:** Use this tool for the complete Maker 3D asset lifecycle: start, query, continue after explicit user review, inspect options, and post-process completed assets.",
36898
- "Local image paths in payload.images are forwarded as data URLs when they resolve inside the Maker project. Unknown server response fields are preserved. In local runtime query results, model_files copy/extract instructions are materialized into assets/model and local_delivery reports the usable local model path.",
36899
- "Review preview URLs are materialized into assets/image and returned in preview_assets when possible.",
36900
- 'Do not automatically approve review steps; show the returned previews to the user and wait for explicit confirmation before action="continue".',
36901
- failurePolicy
36902
- ].join(" ");
36903
- case "get_ad_config":
36904
- return [
36905
- "**Maker hint:** Trigger this tool for ad-related requests only after Maker project status shows the primary local configs are initialized. The local preflight keeps ad config unavailable and does not call the remote tool while project.json or settings.json is missing. Build only for an explicit user build, submit, or preview request; if local configs remain missing after a successful build, explain the known limitation and do not rebuild automatically. Do not infer ad readiness from local SDK docs, .maker-mcp/config.json, or runtime callbacks. If this tool says app_id or developer_id is missing after configs are ready, call generate_test_qrcode once to generate test QR code metadata, then call this tool again.",
36906
- failurePolicy
36907
- ].join(" ");
36908
- case "generate_test_qrcode":
36909
- return [
36910
- "**Maker hint:** Use this only when the user explicitly asks for a test QR code/mobile scan test, or as the recovery step after get_ad_config reports missing app_id or developer_id. Call it without confirmed_screen_orientation first. If .project/project.json already has screen_orientation, reuse it and do not ask the user again. Only if it is missing, ask the user in a separate conversation turn to choose landscape or portrait, then retry with confirmed_screen_orientation. The local proxy records this first choice; an already configured orientation is immutable and always takes precedence. The private parameter is not forwarded to the remote Maker tool. Report the returned QR code or failure payload.",
36911
- failurePolicy
36912
- ].join(" ");
36913
- case "add_test_whitelist":
36914
- return [
36915
- "**Maker hint:** Use this after the project has been built and generate_test_qrcode has created the TapTap app identity. Call it only with the TapTap user_id explicitly provided by the user; do not infer an account ID.",
36916
- failurePolicy
36917
- ].join(" ");
36918
- case "get_debug_feedbacks":
36919
- return [
36920
- "**Maker hint:** Fetch online player feedback for the current Maker project. When logs or screenshots can be downloaded, this tool saves them under logs/feed_back/feedback_<id>/ in the local Maker project and returns local_dir/local_log_paths/local_screenshot_paths. Read those returned local paths before diagnosing the issue. Do not guess drive letters or fixed directories; only treat attachments as local files when local_* paths are returned.",
36921
- failurePolicy
36922
- ].join(" ");
36923
- default:
36924
- return void 0;
36925
- }
36926
- }
36927
37501
  function isExposedRemoteProxyTool(name) {
36928
37502
  return MAKER_REMOTE_PROXY_EXPOSED_TOOL_NAMES.includes(name);
36929
37503
  }
@@ -37081,46 +37655,19 @@ async function startMakerMcpServer() {
37081
37655
  },
37082
37656
  {
37083
37657
  capabilities: {
37084
- tools: { listChanged: true },
37658
+ tools: {},
37085
37659
  resources: {}
37086
37660
  },
37087
37661
  instructions: MAKER_CAPABILITY_ROUTING_INDEX
37088
37662
  }
37089
37663
  );
37090
37664
  const listClientRoots = createServerClientRootsProvider(server);
37091
- const remoteProxyManager = createMakerRemoteProxyManager({
37092
- onToolsChanged: async (_context, _definitions) => {
37093
- try {
37094
- await server.notification({
37095
- method: "notifications/tools/list_changed",
37096
- params: {}
37097
- });
37098
- } catch (error2) {
37099
- logLifecycleEvent("maker-tools-list-changed-notification-failed", String(error2));
37100
- }
37101
- }
37102
- });
37665
+ const remoteProxyManager = createMakerRemoteProxyManager();
37103
37666
  const startupReportedProjects = /* @__PURE__ */ new Set();
37104
37667
  server.setRequestHandler(ListToolsRequestSchema, async () => {
37105
37668
  const contextPromise = resolveMakerMcpTrackingContext({ listClientRoots });
37106
37669
  void reportMakerMcpStartupFromPromise(contextPromise, startupReportedProjects);
37107
- let context;
37108
- try {
37109
- const resolved = await resolveMakerProjectContext({
37110
- listClientRoots,
37111
- allowFallbackOnAmbiguousRoots: false
37112
- });
37113
- context = createRemoteProxyContext({
37114
- targetDir: resolved.targetDir,
37115
- exposedTools: MAKER_REMOTE_PROXY_EXPOSED_TOOL_NAMES
37116
- });
37117
- } catch {
37118
- }
37119
- return listMakerTools({
37120
- listClientRoots,
37121
- listRemoteTools: context ? () => remoteProxyManager.listTools(context) : void 0,
37122
- getCachedRemoteTools: context ? () => remoteProxyManager.getCachedTools(context) : void 0
37123
- });
37670
+ return listMakerTools();
37124
37671
  });
37125
37672
  server.setRequestHandler(ListResourcesRequestSchema, async () => {
37126
37673
  const contextPromise = resolveMakerMcpTrackingContext({ listClientRoots });
@@ -37728,15 +38275,15 @@ function formatMakerToolRegistrationCwdStatus(options) {
37728
38275
  return "";
37729
38276
  }
37730
38277
  return [
37731
- "MCP tool registration cwd",
38278
+ "MCP project context cwd",
37732
38279
  "",
37733
38280
  "- status: mismatch",
37734
38281
  `- mcp_cwd: ${mcpCwd}`,
37735
38282
  `- inspected_target_dir: ${targetDir}`,
37736
38283
  `- maker_project_dir: ${projectRoot}`,
37737
38284
  `- mcp_cwd_project_dir: ${mcpProjectRoot || "(none)"}`,
37738
- "- impact: Maker proxy tools may not appear in this MCP session because tools/list used the MCP server cwd.",
37739
- "- next_action: Start Claude Code from the Maker project directory, or set the taptap-maker MCP config cwd to maker_project_dir, then Reconnect taptap-maker in /mcp."
38285
+ "- impact: Maker proxy tools remain registered, but calls without target_dir may resolve an unbound or wrong project.",
38286
+ "- next_action: Open the Maker project as the active workspace, or pass maker_project_dir as target_dir. Do not rewrite a shared user-level MCP cwd."
37740
38287
  ].join("\n");
37741
38288
  }
37742
38289
  async function formatMakerProxyToolsStatusSafely(options) {
@@ -37989,9 +38536,6 @@ var MakerProjectContextAmbiguousError = class extends Error {
37989
38536
  this.name = "MakerProjectContextAmbiguousError";
37990
38537
  }
37991
38538
  };
37992
- function isMakerProjectContextAmbiguousError(error2) {
37993
- return error2 instanceof MakerProjectContextAmbiguousError;
37994
- }
37995
38539
  async function resolveMakerClientRoots(listClientRoots) {
37996
38540
  if (!listClientRoots) {
37997
38541
  return { status: "not_requested", roots: [] };
@@ -39860,7 +40404,7 @@ function uniqueStrings(values) {
39860
40404
  }
39861
40405
 
39862
40406
  // src/maker/cli/commands.ts
39863
- var VERSION2 = true ? "0.0.29" : "dev";
40407
+ var VERSION2 = true ? "0.0.30-beta.1" : "dev";
39864
40408
  var DEFAULT_MCP_NAME = "taptap-maker";
39865
40409
  var MAKER_NPM_PACKAGE = "@taptap/maker";
39866
40410
  var TWO_PART_COMMANDS = /* @__PURE__ */ new Set(["pat", "mcp", "dev-kit", "logs", "python", "lua-lsp", "agents"]);
@@ -200,8 +200,9 @@ npx --version
200
200
  或覆盖用户项目。
201
201
 
202
202
  MCP 恢复连接后,再调用 `maker_status_lite` 验证 `project_context_source`、`cwd_mismatch` 和
203
- Maker tools 列表。向 `maker_status_lite` 传 `target_dir` 只能证明项目目录有效,不能给已经启动的
204
- 错误 MCP session 动态补注册 tools。
203
+ Maker tools 列表。当前 Maker MCP 会在解析 cwd、项目和鉴权之前,根据版本化本地完整定义注册白名单 proxy tools;
204
+ `target_dir` 只决定调用时的项目上下文,不负责动态补注册。若当前会话仍缺 proxy tools,应比较
205
+ 活动会话和 `mcp verify` 的包版本及 `tools/list`,按旧包或客户端缓存排查。
205
206
 
206
207
  ## 8. 复现客户端真实启动配置
207
208
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taptap/maker",
3
- "version": "0.0.29",
3
+ "version": "0.0.30-beta.1",
4
4
  "type": "module",
5
5
  "description": "TapTap Maker local development CLI and MCP server",
6
6
  "main": "dist/maker.js",
@@ -308,27 +308,25 @@ request parameters, current `tools/list`, exact error code/message/data, complet
308
308
  warning, debug, and remote status fields while removing credentials. Do not rewrite command, cwd,
309
309
  PATH, trust state, credentials, or game code unless the collected evidence identifies that cause.
310
310
 
311
- Only after the base Maker MCP connection works should you use the following MCP-based cwd checks.
311
+ Only after the base Maker MCP connection works should you use the following MCP-based context checks.
312
312
 
313
313
  If the user is in a bound Maker project but `generate_image`, `batch_generate_images`, `edit_image`,
314
314
  `create_video_task`, `query_video_task`, `text_to_music`, `text_to_sound_effect`,
315
315
  `batch_sound_effects`, `text_to_dialogue`, `audition_voices_for_character`,
316
316
  `confirm_character_voice`, `create_3d_asset`,
317
317
  `generate_test_qrcode`, `get_ad_config`, or `get_debug_feedbacks` are missing from the current AI
318
- tool list, diagnose the MCP cwd before
319
- suggesting repeated restarts:
320
-
321
- 1. Read `maker://status` or call `maker_status_lite` without `target_dir` to see the MCP server cwd.
322
- 2. If the user provides or the client exposes the real Maker project directory, call
323
- `maker_status_lite` with that directory as `target_dir`.
324
- 3. If the status output includes `MCP tool registration cwd` with `status: mismatch`, explain that
325
- `tools/list` ran from the MCP server cwd, not the Maker project directory. Passing `target_dir`
326
- to `maker_status_lite` proves the project is valid, but it does not dynamically add proxy tools
327
- to the already-started MCP session.
328
- 4. If the client is confirmed to honor MCP cwd, tell the user to start it from the Maker project
329
- directory or update the `taptap-maker` config cwd, then reconnect from the client MCP UI. If
330
- WorkBuddy ignores configured cwd, do not keep rewriting that field; use its active workspace,
331
- MCP Roots, and actual process cwd evidence instead.
318
+ tool list, do not diagnose project cwd as the registration cause. Current Maker MCP registers every
319
+ whitelisted proxy tool from local definitions before resolving cwd, project binding, auth, or the
320
+ remote proxy:
321
+
322
+ 1. Capture the active client's exact `tools/list` and loaded `@taptap/maker` version.
323
+ 2. Verify the configured launcher with `taptap-maker mcp verify --json`; a successful current
324
+ launcher plus a stale active tool list indicates client/session caching, not missing project auth.
325
+ 3. Reconnect the active Maker MCP once from the client UI or start a new session so it loads the
326
+ current package. Do not rewrite a user-level cwd to make proxy tools appear.
327
+ 4. After the tools are present, read status. `MCP project context cwd` with `status: mismatch` means
328
+ calls without `target_dir` may select an unbound or wrong project; the tools remain registered.
329
+ Use the active workspace/MCP Roots or pass the real project directory as `target_dir` for that call.
332
330
 
333
331
  When Maker proxy tools are missing, explain that this is likely a session/configuration problem and
334
332
  that requests specifically requiring those tools cannot use them in the current session.