@taptap/maker 0.0.29 → 0.0.30-beta.2
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 +9 -3
- package/dist/maker.js +902 -314
- package/docs/MAKER_MCP_CONNECTION_TROUBLESHOOTING.md +11 -12
- package/package.json +1 -1
- package/skills/taptap-maker-local/SKILL.md +21 -23
- package/skills/update-taptap-mcp/SKILL.md +8 -5
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.",
|
|
@@ -29311,8 +29314,9 @@ function createMakerAgentsPolicyBody() {
|
|
|
29311
29314
|
'- Never repair cwd by wrapping the command with `cd /d "<project>" && npx.cmd ...`.',
|
|
29312
29315
|
" Maker supports Chinese project paths; command-shell quoting or client startup can fail",
|
|
29313
29316
|
" independently of the project path.",
|
|
29314
|
-
"-
|
|
29315
|
-
"
|
|
29317
|
+
"- User-level MCP config must not contain a project cwd. If WorkBuddy does not expose Roots,",
|
|
29318
|
+
" pass target_dir on the concrete Maker tool call and record the process actual cwd only as",
|
|
29319
|
+
" diagnostic evidence.",
|
|
29316
29320
|
"- Do not assume Windows 8.3 short paths exist or differ from the original long path. Verify",
|
|
29317
29321
|
" the result first; an unchanged or missing short path is not a usable cwd workaround.",
|
|
29318
29322
|
"- Reproduce the configured Windows launch with the same direct argv boundary when possible.",
|
|
@@ -36053,9 +36057,789 @@ var MAKER_REMOTE_PROXY_PUBLIC_DESCRIPTIONS = {
|
|
|
36053
36057
|
"Session-log mode returns its own saved paths and progress information; use the returned result to continue when more history is available."
|
|
36054
36058
|
].join(" ")
|
|
36055
36059
|
};
|
|
36056
|
-
|
|
36057
|
-
|
|
36058
|
-
|
|
36060
|
+
|
|
36061
|
+
// src/maker/server/remoteProxyToolSnapshot.json
|
|
36062
|
+
var remoteProxyToolSnapshot_default = {
|
|
36063
|
+
schemaVersion: 1,
|
|
36064
|
+
toolOrder: [
|
|
36065
|
+
"generate_image",
|
|
36066
|
+
"batch_generate_images",
|
|
36067
|
+
"edit_image",
|
|
36068
|
+
"create_3d_asset",
|
|
36069
|
+
"text_to_music",
|
|
36070
|
+
"create_video_task",
|
|
36071
|
+
"query_video_task",
|
|
36072
|
+
"text_to_sound_effect",
|
|
36073
|
+
"batch_sound_effects",
|
|
36074
|
+
"text_to_dialogue",
|
|
36075
|
+
"audition_voices_for_character",
|
|
36076
|
+
"confirm_character_voice",
|
|
36077
|
+
"generate_test_qrcode",
|
|
36078
|
+
"add_test_whitelist",
|
|
36079
|
+
"get_ad_config",
|
|
36080
|
+
"get_debug_feedbacks"
|
|
36081
|
+
],
|
|
36082
|
+
tools: [
|
|
36083
|
+
{
|
|
36084
|
+
name: "generate_image",
|
|
36085
|
+
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.",
|
|
36086
|
+
inputSchema: {
|
|
36087
|
+
type: "object",
|
|
36088
|
+
properties: {
|
|
36089
|
+
prompt: {
|
|
36090
|
+
type: "string",
|
|
36091
|
+
description: 'Short Chinese description of the image to generate (max 50KB). Example: "橙色小猫", "蓝色飞龙", "金币图标"'
|
|
36092
|
+
},
|
|
36093
|
+
name: {
|
|
36094
|
+
type: "string",
|
|
36095
|
+
description: 'File name for the generated image (without extension, max 100 characters). This will be used in the output filename: {name}_{timestamp}.png. Example: "小猫", "飞龙", "金币"'
|
|
36096
|
+
},
|
|
36097
|
+
aspect_ratio: {
|
|
36098
|
+
type: "string",
|
|
36099
|
+
enum: ["1:1", "2:3", "3:2", "3:4", "4:3", "9:16", "16:9", "21:9", "5:4", "4:5"],
|
|
36100
|
+
description: 'Image aspect ratio. Default is "1:1". See tool description for use cases of each ratio.'
|
|
36101
|
+
},
|
|
36102
|
+
transparent: {
|
|
36103
|
+
type: "boolean",
|
|
36104
|
+
description: 'Whether to generate image with transparent background. Auto-detected if user mentions "透明", "透明背景", "抠图", or "无背景" in their request.'
|
|
36105
|
+
},
|
|
36106
|
+
target_size: {
|
|
36107
|
+
type: "string",
|
|
36108
|
+
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.'
|
|
36109
|
+
},
|
|
36110
|
+
reference_image: {
|
|
36111
|
+
type: "string",
|
|
36112
|
+
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"'
|
|
36113
|
+
},
|
|
36114
|
+
reference_images: {
|
|
36115
|
+
type: "array",
|
|
36116
|
+
items: { type: "string" },
|
|
36117
|
+
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."
|
|
36118
|
+
},
|
|
36119
|
+
seed: {
|
|
36120
|
+
type: "number",
|
|
36121
|
+
description: "Random seed for reproducible results. Use the same seed with the same prompt to get consistent outputs. Example: 42"
|
|
36122
|
+
},
|
|
36123
|
+
thinking_level: {
|
|
36124
|
+
type: "string",
|
|
36125
|
+
enum: ["minimal", "high"],
|
|
36126
|
+
description: 'AI reasoning depth. "minimal" is faster, "high" produces better results for complex prompts.'
|
|
36127
|
+
},
|
|
36128
|
+
resolution: {
|
|
36129
|
+
type: "string",
|
|
36130
|
+
enum: ["0.5K", "1K", "2K", "4K"],
|
|
36131
|
+
description: 'Generation resolution before scaling to target_size. Default is "1K". Higher values produce more detail but take longer.'
|
|
36132
|
+
},
|
|
36133
|
+
model: {
|
|
36134
|
+
type: "string",
|
|
36135
|
+
enum: ["nanobanana", "gpt"],
|
|
36136
|
+
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.'
|
|
36137
|
+
},
|
|
36138
|
+
quality: {
|
|
36139
|
+
type: "string",
|
|
36140
|
+
enum: ["low", "medium", "high", "auto"],
|
|
36141
|
+
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.'
|
|
36142
|
+
},
|
|
36143
|
+
target_dir: {
|
|
36144
|
+
type: "string",
|
|
36145
|
+
description: "Optional local Maker project directory. When omitted, Maker MCP uses one unambiguous MCP Roots workspace and process cwd only as the final fallback. Pass it explicitly when Roots are unavailable or ambiguous, or when the fallback is not the intended project. This local-only value is not persisted in user-level MCP config and is not forwarded to the remote Maker tool."
|
|
36146
|
+
}
|
|
36147
|
+
},
|
|
36148
|
+
required: ["prompt", "name", "target_size"]
|
|
36149
|
+
}
|
|
36150
|
+
},
|
|
36151
|
+
{
|
|
36152
|
+
name: "batch_generate_images",
|
|
36153
|
+
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.",
|
|
36154
|
+
inputSchema: {
|
|
36155
|
+
type: "object",
|
|
36156
|
+
properties: {
|
|
36157
|
+
images: {
|
|
36158
|
+
type: "array",
|
|
36159
|
+
description: "Array of image generation requests to process in parallel (2-10 images recommended)",
|
|
36160
|
+
items: {
|
|
36161
|
+
type: "object",
|
|
36162
|
+
properties: {
|
|
36163
|
+
prompt: {
|
|
36164
|
+
type: "string",
|
|
36165
|
+
description: 'Short Chinese description of the image to generate (max 50KB). Example: "橙色小猫", "蓝色飞龙", "金币图标"'
|
|
36166
|
+
},
|
|
36167
|
+
name: {
|
|
36168
|
+
type: "string",
|
|
36169
|
+
description: 'File name for the generated image (without extension, max 100 characters). This will be used in the output filename: {name}_{timestamp}.png. Example: "小猫", "飞龙", "金币"'
|
|
36170
|
+
},
|
|
36171
|
+
aspect_ratio: {
|
|
36172
|
+
type: "string",
|
|
36173
|
+
enum: ["1:1", "2:3", "3:2", "3:4", "4:3", "9:16", "16:9", "21:9", "5:4", "4:5"],
|
|
36174
|
+
description: 'Image aspect ratio. Default is "1:1". See tool description for use cases of each ratio.'
|
|
36175
|
+
},
|
|
36176
|
+
transparent: {
|
|
36177
|
+
type: "boolean",
|
|
36178
|
+
description: 'Whether to generate image with transparent background. Auto-detected if user mentions "透明", "透明背景", "抠图", or "无背景" in their request.'
|
|
36179
|
+
},
|
|
36180
|
+
target_size: {
|
|
36181
|
+
type: "string",
|
|
36182
|
+
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.'
|
|
36183
|
+
},
|
|
36184
|
+
reference_image: {
|
|
36185
|
+
type: "string",
|
|
36186
|
+
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"'
|
|
36187
|
+
},
|
|
36188
|
+
reference_images: {
|
|
36189
|
+
type: "array",
|
|
36190
|
+
items: { type: "string" },
|
|
36191
|
+
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."
|
|
36192
|
+
},
|
|
36193
|
+
seed: {
|
|
36194
|
+
type: "number",
|
|
36195
|
+
description: "Random seed for reproducible results. Use the same seed with the same prompt to get consistent outputs. Example: 42"
|
|
36196
|
+
},
|
|
36197
|
+
thinking_level: {
|
|
36198
|
+
type: "string",
|
|
36199
|
+
enum: ["minimal", "high"],
|
|
36200
|
+
description: 'AI reasoning depth. "minimal" is faster, "high" produces better results for complex prompts.'
|
|
36201
|
+
},
|
|
36202
|
+
resolution: {
|
|
36203
|
+
type: "string",
|
|
36204
|
+
enum: ["0.5K", "1K", "2K", "4K"],
|
|
36205
|
+
description: 'Generation resolution before scaling to target_size. Default is "1K". Higher values produce more detail but take longer.'
|
|
36206
|
+
},
|
|
36207
|
+
model: {
|
|
36208
|
+
type: "string",
|
|
36209
|
+
enum: ["nanobanana", "gpt"],
|
|
36210
|
+
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.'
|
|
36211
|
+
},
|
|
36212
|
+
quality: {
|
|
36213
|
+
type: "string",
|
|
36214
|
+
enum: ["low", "medium", "high", "auto"],
|
|
36215
|
+
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.'
|
|
36216
|
+
}
|
|
36217
|
+
},
|
|
36218
|
+
required: ["prompt", "name", "target_size"]
|
|
36219
|
+
}
|
|
36220
|
+
},
|
|
36221
|
+
target_dir: {
|
|
36222
|
+
type: "string",
|
|
36223
|
+
description: "Optional local Maker project directory. When omitted, Maker MCP uses one unambiguous MCP Roots workspace and process cwd only as the final fallback. Pass it explicitly when Roots are unavailable or ambiguous, or when the fallback is not the intended project. This local-only value is not persisted in user-level MCP config and is not forwarded to the remote Maker tool."
|
|
36224
|
+
}
|
|
36225
|
+
},
|
|
36226
|
+
required: ["images"]
|
|
36227
|
+
}
|
|
36228
|
+
},
|
|
36229
|
+
{
|
|
36230
|
+
name: "edit_image",
|
|
36231
|
+
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.",
|
|
36232
|
+
inputSchema: {
|
|
36233
|
+
type: "object",
|
|
36234
|
+
properties: {
|
|
36235
|
+
image: {
|
|
36236
|
+
type: "string",
|
|
36237
|
+
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..."'
|
|
36238
|
+
},
|
|
36239
|
+
prompt: {
|
|
36240
|
+
type: "string",
|
|
36241
|
+
description: 'Edit instructions describing what modifications to make. Example: "把背景改成蓝色", "添加一个太阳"'
|
|
36242
|
+
},
|
|
36243
|
+
name: {
|
|
36244
|
+
type: "string",
|
|
36245
|
+
description: "Output filename (without extension, max 100 characters). This will be used in the output filename: edited_{name}_{timestamp}.png"
|
|
36246
|
+
},
|
|
36247
|
+
aspect_ratio: {
|
|
36248
|
+
type: "string",
|
|
36249
|
+
enum: ["1:1", "2:3", "3:2", "3:4", "4:3", "9:16", "16:9", "21:9", "5:4", "4:5"],
|
|
36250
|
+
description: "Output image aspect ratio"
|
|
36251
|
+
},
|
|
36252
|
+
target_size: {
|
|
36253
|
+
type: "string",
|
|
36254
|
+
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.'
|
|
36255
|
+
},
|
|
36256
|
+
transparent: {
|
|
36257
|
+
type: "boolean",
|
|
36258
|
+
description: "Whether to generate image with transparent background."
|
|
36259
|
+
},
|
|
36260
|
+
reference_images: {
|
|
36261
|
+
type: "array",
|
|
36262
|
+
items: { type: "string" },
|
|
36263
|
+
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)."
|
|
36264
|
+
},
|
|
36265
|
+
seed: {
|
|
36266
|
+
type: "number",
|
|
36267
|
+
description: "Random seed for reproducible results. Example: 42"
|
|
36268
|
+
},
|
|
36269
|
+
thinking_level: {
|
|
36270
|
+
type: "string",
|
|
36271
|
+
enum: ["minimal", "high"],
|
|
36272
|
+
description: 'AI reasoning depth. "minimal" is faster, "high" produces better quality for complex edits.'
|
|
36273
|
+
},
|
|
36274
|
+
resolution: {
|
|
36275
|
+
type: "string",
|
|
36276
|
+
enum: ["0.5K", "1K", "2K", "4K"],
|
|
36277
|
+
description: 'Generation resolution before scaling to target_size. Default is "1K".'
|
|
36278
|
+
},
|
|
36279
|
+
model: {
|
|
36280
|
+
type: "string",
|
|
36281
|
+
enum: ["nanobanana", "gpt"],
|
|
36282
|
+
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.'
|
|
36283
|
+
},
|
|
36284
|
+
quality: {
|
|
36285
|
+
type: "string",
|
|
36286
|
+
enum: ["low", "medium", "high", "auto"],
|
|
36287
|
+
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.'
|
|
36288
|
+
},
|
|
36289
|
+
target_dir: {
|
|
36290
|
+
type: "string",
|
|
36291
|
+
description: "Optional local Maker project directory. When omitted, Maker MCP uses one unambiguous MCP Roots workspace and process cwd only as the final fallback. Pass it explicitly when Roots are unavailable or ambiguous, or when the fallback is not the intended project. This local-only value is not persisted in user-level MCP config and is not forwarded to the remote Maker tool."
|
|
36292
|
+
}
|
|
36293
|
+
},
|
|
36294
|
+
required: ["image", "prompt", "name", "target_size"]
|
|
36295
|
+
}
|
|
36296
|
+
},
|
|
36297
|
+
{
|
|
36298
|
+
name: "create_3d_asset",
|
|
36299
|
+
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.',
|
|
36300
|
+
inputSchema: {
|
|
36301
|
+
type: "object",
|
|
36302
|
+
properties: {
|
|
36303
|
+
action: {
|
|
36304
|
+
type: "string",
|
|
36305
|
+
enum: ["start", "continue", "query", "get_options", "post_process"],
|
|
36306
|
+
description: "Required lifecycle action: start, continue, query, get_options, or post_process."
|
|
36307
|
+
},
|
|
36308
|
+
asset_id: {
|
|
36309
|
+
type: "string",
|
|
36310
|
+
description: "Asset lifecycle id returned by this tool. Required for continue and post_process; preferred for query."
|
|
36311
|
+
},
|
|
36312
|
+
task_id: {
|
|
36313
|
+
type: "string",
|
|
36314
|
+
description: "Underlying Tripo task id. Query supports this as a fallback when asset_id is unavailable."
|
|
36315
|
+
},
|
|
36316
|
+
step_id: {
|
|
36317
|
+
type: "string",
|
|
36318
|
+
description: "Current lifecycle step, such as multiview_review or post_process. Required for continue."
|
|
36319
|
+
},
|
|
36320
|
+
payload: {
|
|
36321
|
+
type: "object",
|
|
36322
|
+
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.',
|
|
36323
|
+
properties: {
|
|
36324
|
+
generation_strategy: {
|
|
36325
|
+
type: "string",
|
|
36326
|
+
enum: ["direct", "reviewed", "reviewed_multiview"],
|
|
36327
|
+
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."
|
|
36328
|
+
},
|
|
36329
|
+
quality_tier: {
|
|
36330
|
+
type: "string",
|
|
36331
|
+
enum: ["fast", "balanced", "high_quality"],
|
|
36332
|
+
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."
|
|
36333
|
+
},
|
|
36334
|
+
operation: {
|
|
36335
|
+
type: "string",
|
|
36336
|
+
enum: ["rig", "texture", "retopology", "convert"],
|
|
36337
|
+
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.'
|
|
36338
|
+
},
|
|
36339
|
+
prompt: { type: "string" },
|
|
36340
|
+
subject_type: {
|
|
36341
|
+
type: "string",
|
|
36342
|
+
enum: ["biped", "quadruped", "scenery", "other"],
|
|
36343
|
+
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'
|
|
36344
|
+
},
|
|
36345
|
+
images: {
|
|
36346
|
+
type: "object",
|
|
36347
|
+
properties: {
|
|
36348
|
+
front: {
|
|
36349
|
+
type: "string",
|
|
36350
|
+
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."
|
|
36351
|
+
},
|
|
36352
|
+
left: {
|
|
36353
|
+
type: "string",
|
|
36354
|
+
description: "Optional left-view image. Local unsynced private images must use a data URL or HTTPS upload URL."
|
|
36355
|
+
},
|
|
36356
|
+
back: {
|
|
36357
|
+
type: "string",
|
|
36358
|
+
description: "Optional back-view image. Local unsynced private images must use a data URL or HTTPS upload URL."
|
|
36359
|
+
},
|
|
36360
|
+
right: {
|
|
36361
|
+
type: "string",
|
|
36362
|
+
description: "Optional right-view image. Local unsynced private images must use a data URL or HTTPS upload URL."
|
|
36363
|
+
}
|
|
36364
|
+
}
|
|
36365
|
+
},
|
|
36366
|
+
options: {
|
|
36367
|
+
type: "object",
|
|
36368
|
+
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."
|
|
36369
|
+
},
|
|
36370
|
+
confirm: { type: "boolean" }
|
|
36371
|
+
}
|
|
36372
|
+
},
|
|
36373
|
+
target_dir: {
|
|
36374
|
+
type: "string",
|
|
36375
|
+
description: "Optional local Maker project directory. When omitted, Maker MCP uses one unambiguous MCP Roots workspace and process cwd only as the final fallback. Pass it explicitly when Roots are unavailable or ambiguous, or when the fallback is not the intended project. This local-only value is not persisted in user-level MCP config and is not forwarded to the remote Maker tool."
|
|
36376
|
+
}
|
|
36377
|
+
},
|
|
36378
|
+
required: ["action"]
|
|
36379
|
+
}
|
|
36380
|
+
},
|
|
36381
|
+
{
|
|
36382
|
+
name: "text_to_music",
|
|
36383
|
+
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.",
|
|
36384
|
+
inputSchema: {
|
|
36385
|
+
type: "object",
|
|
36386
|
+
properties: {
|
|
36387
|
+
customMode: {
|
|
36388
|
+
type: "boolean",
|
|
36389
|
+
description: "Enable Custom Mode for fine-grained control. When true, you must provide style and title. When false (default), only prompt is needed.",
|
|
36390
|
+
default: false
|
|
36391
|
+
},
|
|
36392
|
+
instrumental: {
|
|
36393
|
+
type: "boolean",
|
|
36394
|
+
description: "Generate instrumental track without vocals. Default false (with vocals). Only effective in custom mode.",
|
|
36395
|
+
default: false
|
|
36396
|
+
},
|
|
36397
|
+
model: {
|
|
36398
|
+
type: "string",
|
|
36399
|
+
description: "Model version. V4_5 recommended for best quality. Newer models (V4_5+) support longer prompts and styles.",
|
|
36400
|
+
enum: ["V3_5", "V4", "V4_5", "V4_5PLUS", "V5"],
|
|
36401
|
+
default: "V4_5"
|
|
36402
|
+
},
|
|
36403
|
+
prompt: {
|
|
36404
|
+
type: "string",
|
|
36405
|
+
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).'
|
|
36406
|
+
},
|
|
36407
|
+
style: {
|
|
36408
|
+
type: "string",
|
|
36409
|
+
description: 'Music style/genre. Required in custom mode. Examples: "electronic, ambient, synth", "orchestral, epic, cinematic". Max 200-1000 chars depending on model.'
|
|
36410
|
+
},
|
|
36411
|
+
title: {
|
|
36412
|
+
type: "string",
|
|
36413
|
+
description: 'Track title. Required in custom mode. Max 80 chars. Example: "Battle Theme", "Menu Music".'
|
|
36414
|
+
},
|
|
36415
|
+
negativeTags: {
|
|
36416
|
+
type: "string",
|
|
36417
|
+
description: 'Styles to avoid, comma-separated. Example: "vocals, loud, aggressive".'
|
|
36418
|
+
},
|
|
36419
|
+
vocalGender: {
|
|
36420
|
+
type: "string",
|
|
36421
|
+
description: 'Preferred vocal gender when instrumental=false. Use "m" for male, "f" for female.'
|
|
36422
|
+
},
|
|
36423
|
+
target_dir: {
|
|
36424
|
+
type: "string",
|
|
36425
|
+
description: "Optional local Maker project directory. When omitted, Maker MCP uses one unambiguous MCP Roots workspace and process cwd only as the final fallback. Pass it explicitly when Roots are unavailable or ambiguous, or when the fallback is not the intended project. This local-only value is not persisted in user-level MCP config and is not forwarded to the remote Maker tool."
|
|
36426
|
+
}
|
|
36427
|
+
},
|
|
36428
|
+
required: ["prompt"]
|
|
36429
|
+
}
|
|
36430
|
+
},
|
|
36431
|
+
{
|
|
36432
|
+
name: "create_video_task",
|
|
36433
|
+
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.",
|
|
36434
|
+
inputSchema: {
|
|
36435
|
+
type: "object",
|
|
36436
|
+
properties: {
|
|
36437
|
+
mode: {
|
|
36438
|
+
type: "string",
|
|
36439
|
+
enum: ["text_to_video", "first_frame", "first_last_frame", "multi_modal_reference"],
|
|
36440
|
+
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.'
|
|
36441
|
+
},
|
|
36442
|
+
model: {
|
|
36443
|
+
type: "string",
|
|
36444
|
+
enum: ["2.0", "2.5"],
|
|
36445
|
+
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",其余场景保持默认。'
|
|
36446
|
+
},
|
|
36447
|
+
prompt: {
|
|
36448
|
+
type: "string",
|
|
36449
|
+
description: '视频生成提示词。mode="text_to_video" 时必填;其他模式可选。'
|
|
36450
|
+
},
|
|
36451
|
+
images: {
|
|
36452
|
+
type: "array",
|
|
36453
|
+
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,...).',
|
|
36454
|
+
items: {
|
|
36455
|
+
type: "object",
|
|
36456
|
+
properties: {
|
|
36457
|
+
url: {
|
|
36458
|
+
type: "string",
|
|
36459
|
+
description: "图片本地文件路径、远程 URL、素材库资产 URI(asset://<asset_id>)或 data URL(data:image/png;base64,...)。"
|
|
36460
|
+
},
|
|
36461
|
+
role: {
|
|
36462
|
+
type: "string",
|
|
36463
|
+
enum: ["first_frame", "last_frame", "reference_image"],
|
|
36464
|
+
description: "图片角色。通常由 mode 自动决定,仅在需要覆盖时手动指定。"
|
|
36465
|
+
}
|
|
36466
|
+
},
|
|
36467
|
+
required: ["url"]
|
|
36468
|
+
}
|
|
36469
|
+
},
|
|
36470
|
+
videos: {
|
|
36471
|
+
type: "array",
|
|
36472
|
+
description: '参考视频输入列表,model="2.0" 最多 3 个,model="2.5" 最多 10 个。支持本地文件路径、远程 URL 或 data URL(data:video/mp4;base64,...);本地文件与 data URL 会先自动上传阿里云 OSS,再以 URL 形式提交给上游接口。仅支持 reference_video。',
|
|
36473
|
+
items: {
|
|
36474
|
+
type: "object",
|
|
36475
|
+
properties: {
|
|
36476
|
+
url: {
|
|
36477
|
+
type: "string",
|
|
36478
|
+
description: "视频本地文件路径、远程 URL 或 data URL(data:video/mp4;base64,...)。"
|
|
36479
|
+
},
|
|
36480
|
+
role: {
|
|
36481
|
+
type: "string",
|
|
36482
|
+
enum: ["reference_video"],
|
|
36483
|
+
description: "默认 reference_video。"
|
|
36484
|
+
}
|
|
36485
|
+
},
|
|
36486
|
+
required: ["url"]
|
|
36487
|
+
}
|
|
36488
|
+
},
|
|
36489
|
+
audios: {
|
|
36490
|
+
type: "array",
|
|
36491
|
+
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" 支持仅传音频。',
|
|
36492
|
+
items: {
|
|
36493
|
+
type: "object",
|
|
36494
|
+
properties: {
|
|
36495
|
+
url: {
|
|
36496
|
+
type: "string",
|
|
36497
|
+
description: "音频本地文件路径、远程 URL 或 data URL(data:audio/mpeg;base64,...)。"
|
|
36498
|
+
},
|
|
36499
|
+
role: {
|
|
36500
|
+
type: "string",
|
|
36501
|
+
enum: ["reference_audio"],
|
|
36502
|
+
description: "默认 reference_audio。"
|
|
36503
|
+
}
|
|
36504
|
+
},
|
|
36505
|
+
required: ["url"]
|
|
36506
|
+
}
|
|
36507
|
+
},
|
|
36508
|
+
generate_audio: {
|
|
36509
|
+
type: "boolean",
|
|
36510
|
+
description: "是否生成有声视频。"
|
|
36511
|
+
},
|
|
36512
|
+
resolution: {
|
|
36513
|
+
type: "string",
|
|
36514
|
+
enum: ["480p", "720p"],
|
|
36515
|
+
description: "输出分辨率,默认 720p。两个模型版本均仅支持 480p/720p。"
|
|
36516
|
+
},
|
|
36517
|
+
ratio: {
|
|
36518
|
+
type: "string",
|
|
36519
|
+
enum: ["16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive"],
|
|
36520
|
+
description: '输出宽高比,默认 "adaptive"(由模型按输入或 prompt 自动选择)。\nmodel="2.5" 的以下场景只接受 "adaptive",指定具体比例会被上游拒绝:mode="first_frame" / "first_last_frame"(跟随首帧图片)、以参考视频做视频编辑/延长(跟随输入视频)。\nmodel="2.0" 各场景均可指定具体比例。'
|
|
36521
|
+
},
|
|
36522
|
+
duration: {
|
|
36523
|
+
type: "integer",
|
|
36524
|
+
description: '视频时长(秒)。model="2.0" 支持 4-15,model="2.5" 支持 4-30;也可传 -1。不建议设为 -1;模型会自主选择时长,但这会直接影响计费与结果可预期性,建议明确指定整数秒。\nmodel="2.5" 以参考视频做视频编辑时只接受 -1(输出时长跟随输入视频),且输入视频时长需在 4-30s 内。'
|
|
36525
|
+
},
|
|
36526
|
+
return_last_frame: {
|
|
36527
|
+
type: "boolean",
|
|
36528
|
+
description: "是否返回尾帧图片 URL。默认 true;如不需要可显式传 false。"
|
|
36529
|
+
},
|
|
36530
|
+
suppress_preview_links: {
|
|
36531
|
+
type: "boolean",
|
|
36532
|
+
description: "是否抑制工具结果中的会话预览链接以便静默执行。默认 false。"
|
|
36533
|
+
},
|
|
36534
|
+
enable_web_search: {
|
|
36535
|
+
type: "boolean",
|
|
36536
|
+
description: "启用联网搜索增强,仅支持纯文本生视频。默认关闭;仅在确实需要联网补充信息时显式开启。"
|
|
36537
|
+
},
|
|
36538
|
+
execution_expires_after: {
|
|
36539
|
+
type: "integer",
|
|
36540
|
+
description: "任务超时时间(秒),默认 172800,取值范围 3600-259200。"
|
|
36541
|
+
},
|
|
36542
|
+
target_dir: {
|
|
36543
|
+
type: "string",
|
|
36544
|
+
description: "Optional local Maker project directory. When omitted, Maker MCP uses one unambiguous MCP Roots workspace and process cwd only as the final fallback. Pass it explicitly when Roots are unavailable or ambiguous, or when the fallback is not the intended project. This local-only value is not persisted in user-level MCP config and is not forwarded to the remote Maker tool."
|
|
36545
|
+
}
|
|
36546
|
+
},
|
|
36547
|
+
required: ["mode"]
|
|
36548
|
+
}
|
|
36549
|
+
},
|
|
36550
|
+
{
|
|
36551
|
+
name: "query_video_task",
|
|
36552
|
+
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.",
|
|
36553
|
+
inputSchema: {
|
|
36554
|
+
type: "object",
|
|
36555
|
+
properties: {
|
|
36556
|
+
task_id: {
|
|
36557
|
+
type: "string",
|
|
36558
|
+
description: "由 create_video_task 返回的任务 ID。"
|
|
36559
|
+
},
|
|
36560
|
+
suppress_preview_links: {
|
|
36561
|
+
type: "boolean",
|
|
36562
|
+
description: "是否抑制工具结果中的会话预览链接以便静默执行。默认 false。"
|
|
36563
|
+
},
|
|
36564
|
+
target_dir: {
|
|
36565
|
+
type: "string",
|
|
36566
|
+
description: "Optional local Maker project directory. When omitted, Maker MCP uses one unambiguous MCP Roots workspace and process cwd only as the final fallback. Pass it explicitly when Roots are unavailable or ambiguous, or when the fallback is not the intended project. This local-only value is not persisted in user-level MCP config and is not forwarded to the remote Maker tool."
|
|
36567
|
+
}
|
|
36568
|
+
},
|
|
36569
|
+
required: ["task_id"]
|
|
36570
|
+
}
|
|
36571
|
+
},
|
|
36572
|
+
{
|
|
36573
|
+
name: "text_to_sound_effect",
|
|
36574
|
+
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.",
|
|
36575
|
+
inputSchema: {
|
|
36576
|
+
type: "object",
|
|
36577
|
+
properties: {
|
|
36578
|
+
text: {
|
|
36579
|
+
type: "string",
|
|
36580
|
+
description: "Sound effect description in Chinese or English. Be specific and detailed."
|
|
36581
|
+
},
|
|
36582
|
+
duration_seconds: {
|
|
36583
|
+
type: "number",
|
|
36584
|
+
exclusiveMinimum: 0,
|
|
36585
|
+
maximum: 120,
|
|
36586
|
+
description: "Approximate duration target greater than 0 and up to Seed Audio's 120-second output limit; the actual duration may differ."
|
|
36587
|
+
},
|
|
36588
|
+
loop: {
|
|
36589
|
+
type: "boolean",
|
|
36590
|
+
description: "Generate seamlessly looping sound. Good for ambient/background sounds.",
|
|
36591
|
+
default: false
|
|
36592
|
+
},
|
|
36593
|
+
output_name: {
|
|
36594
|
+
type: "string",
|
|
36595
|
+
description: "Output filename without extension. If not provided, auto-generated."
|
|
36596
|
+
},
|
|
36597
|
+
target_dir: {
|
|
36598
|
+
type: "string",
|
|
36599
|
+
description: "Optional local Maker project directory. When omitted, Maker MCP uses one unambiguous MCP Roots workspace and process cwd only as the final fallback. Pass it explicitly when Roots are unavailable or ambiguous, or when the fallback is not the intended project. This local-only value is not persisted in user-level MCP config and is not forwarded to the remote Maker tool."
|
|
36600
|
+
}
|
|
36601
|
+
},
|
|
36602
|
+
required: ["text"]
|
|
36603
|
+
}
|
|
36604
|
+
},
|
|
36605
|
+
{
|
|
36606
|
+
name: "batch_sound_effects",
|
|
36607
|
+
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.",
|
|
36608
|
+
inputSchema: {
|
|
36609
|
+
type: "object",
|
|
36610
|
+
properties: {
|
|
36611
|
+
sounds: {
|
|
36612
|
+
type: "array",
|
|
36613
|
+
description: "Array of sound effect definitions",
|
|
36614
|
+
items: {
|
|
36615
|
+
type: "object",
|
|
36616
|
+
properties: {
|
|
36617
|
+
name: {
|
|
36618
|
+
type: "string",
|
|
36619
|
+
description: "Output filename without extension"
|
|
36620
|
+
},
|
|
36621
|
+
text: {
|
|
36622
|
+
type: "string",
|
|
36623
|
+
description: "Sound effect description in Chinese or English"
|
|
36624
|
+
},
|
|
36625
|
+
duration: {
|
|
36626
|
+
type: "number",
|
|
36627
|
+
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."
|
|
36628
|
+
},
|
|
36629
|
+
loop: {
|
|
36630
|
+
type: "boolean",
|
|
36631
|
+
description: "Create looping sound"
|
|
36632
|
+
}
|
|
36633
|
+
},
|
|
36634
|
+
required: ["name", "text"]
|
|
36635
|
+
}
|
|
36636
|
+
},
|
|
36637
|
+
target_dir: {
|
|
36638
|
+
type: "string",
|
|
36639
|
+
description: "Optional local Maker project directory. When omitted, Maker MCP uses one unambiguous MCP Roots workspace and process cwd only as the final fallback. Pass it explicitly when Roots are unavailable or ambiguous, or when the fallback is not the intended project. This local-only value is not persisted in user-level MCP config and is not forwarded to the remote Maker tool."
|
|
36640
|
+
}
|
|
36641
|
+
},
|
|
36642
|
+
required: ["sounds"]
|
|
36643
|
+
}
|
|
36644
|
+
},
|
|
36645
|
+
{
|
|
36646
|
+
name: "text_to_dialogue",
|
|
36647
|
+
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.",
|
|
36648
|
+
inputSchema: {
|
|
36649
|
+
type: "object",
|
|
36650
|
+
properties: {
|
|
36651
|
+
inputs: {
|
|
36652
|
+
type: "array",
|
|
36653
|
+
description: "Dialogue lines using confirmed ElevenLabs character voices.",
|
|
36654
|
+
items: {
|
|
36655
|
+
type: "object",
|
|
36656
|
+
properties: {
|
|
36657
|
+
character_name: {
|
|
36658
|
+
type: "string",
|
|
36659
|
+
description: "Character name matching an ElevenLabs voice mapping."
|
|
36660
|
+
},
|
|
36661
|
+
text: {
|
|
36662
|
+
type: "string",
|
|
36663
|
+
description: "Dialogue text. Eleven v3 audio tags such as [sad] and [laughing] are supported."
|
|
36664
|
+
}
|
|
36665
|
+
},
|
|
36666
|
+
required: ["character_name", "text"]
|
|
36667
|
+
}
|
|
36668
|
+
},
|
|
36669
|
+
language_code: {
|
|
36670
|
+
type: "string",
|
|
36671
|
+
default: "cmn",
|
|
36672
|
+
description: "ISO 639-1 language code. Defaults to cmn (Chinese Mandarin)."
|
|
36673
|
+
},
|
|
36674
|
+
stability: {
|
|
36675
|
+
type: "number",
|
|
36676
|
+
default: 0.5,
|
|
36677
|
+
description: "Eleven v3 voice stability. Recommended range 0 to 1; finite legacy values are accepted and quantized to 0, 0.5, or 1."
|
|
36678
|
+
},
|
|
36679
|
+
output_name: {
|
|
36680
|
+
type: "string",
|
|
36681
|
+
description: "Safe output basename without directory separators."
|
|
36682
|
+
},
|
|
36683
|
+
target_dir: {
|
|
36684
|
+
type: "string",
|
|
36685
|
+
description: "Optional local Maker project directory. When omitted, Maker MCP uses one unambiguous MCP Roots workspace and process cwd only as the final fallback. Pass it explicitly when Roots are unavailable or ambiguous, or when the fallback is not the intended project. This local-only value is not persisted in user-level MCP config and is not forwarded to the remote Maker tool."
|
|
36686
|
+
}
|
|
36687
|
+
},
|
|
36688
|
+
required: ["inputs"]
|
|
36689
|
+
}
|
|
36690
|
+
},
|
|
36691
|
+
{
|
|
36692
|
+
name: "audition_voices_for_character",
|
|
36693
|
+
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.",
|
|
36694
|
+
inputSchema: {
|
|
36695
|
+
type: "object",
|
|
36696
|
+
properties: {
|
|
36697
|
+
character_name: {
|
|
36698
|
+
type: "string",
|
|
36699
|
+
description: "Character name"
|
|
36700
|
+
},
|
|
36701
|
+
character_description: {
|
|
36702
|
+
type: "string",
|
|
36703
|
+
description: "ElevenLabs Voice Design prompt covering age/gender, timbre, pacing, emotion, style, and recording quality."
|
|
36704
|
+
},
|
|
36705
|
+
audition_line: {
|
|
36706
|
+
type: "string",
|
|
36707
|
+
description: "Representative dialogue for the preview. MUST be at least 100 characters and match the requested character style.",
|
|
36708
|
+
minLength: 100
|
|
36709
|
+
},
|
|
36710
|
+
candidate_count: {
|
|
36711
|
+
type: "number",
|
|
36712
|
+
minimum: 1,
|
|
36713
|
+
maximum: 3,
|
|
36714
|
+
default: 3,
|
|
36715
|
+
description: "Number of voice candidates from 1 to 3, default 3."
|
|
36716
|
+
},
|
|
36717
|
+
target_dir: {
|
|
36718
|
+
type: "string",
|
|
36719
|
+
description: "Optional local Maker project directory. When omitted, Maker MCP uses one unambiguous MCP Roots workspace and process cwd only as the final fallback. Pass it explicitly when Roots are unavailable or ambiguous, or when the fallback is not the intended project. This local-only value is not persisted in user-level MCP config and is not forwarded to the remote Maker tool."
|
|
36720
|
+
}
|
|
36721
|
+
},
|
|
36722
|
+
required: ["character_name", "character_description", "audition_line"]
|
|
36723
|
+
}
|
|
36724
|
+
},
|
|
36725
|
+
{
|
|
36726
|
+
name: "confirm_character_voice",
|
|
36727
|
+
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.",
|
|
36728
|
+
inputSchema: {
|
|
36729
|
+
type: "object",
|
|
36730
|
+
properties: {
|
|
36731
|
+
character_name: {
|
|
36732
|
+
type: "string",
|
|
36733
|
+
description: "Character name"
|
|
36734
|
+
},
|
|
36735
|
+
selected_index: {
|
|
36736
|
+
type: "number",
|
|
36737
|
+
description: "The candidate number user selected (1-based). If omitted, uses recommended candidate"
|
|
36738
|
+
},
|
|
36739
|
+
target_dir: {
|
|
36740
|
+
type: "string",
|
|
36741
|
+
description: "Optional local Maker project directory. When omitted, Maker MCP uses one unambiguous MCP Roots workspace and process cwd only as the final fallback. Pass it explicitly when Roots are unavailable or ambiguous, or when the fallback is not the intended project. This local-only value is not persisted in user-level MCP config and is not forwarded to the remote Maker tool."
|
|
36742
|
+
}
|
|
36743
|
+
},
|
|
36744
|
+
required: ["character_name"]
|
|
36745
|
+
}
|
|
36746
|
+
},
|
|
36747
|
+
{
|
|
36748
|
+
name: "generate_test_qrcode",
|
|
36749
|
+
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.",
|
|
36750
|
+
inputSchema: {
|
|
36751
|
+
type: "object",
|
|
36752
|
+
properties: {
|
|
36753
|
+
confirmed_screen_orientation: {
|
|
36754
|
+
type: "string",
|
|
36755
|
+
enum: ["landscape", "portrait"],
|
|
36756
|
+
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."
|
|
36757
|
+
},
|
|
36758
|
+
target_dir: {
|
|
36759
|
+
type: "string",
|
|
36760
|
+
description: "Optional local Maker project directory. When omitted, Maker MCP uses one unambiguous MCP Roots workspace and process cwd only as the final fallback. Pass it explicitly when Roots are unavailable or ambiguous, or when the fallback is not the intended project. This local-only value is not persisted in user-level MCP config and is not forwarded to the remote Maker tool."
|
|
36761
|
+
}
|
|
36762
|
+
},
|
|
36763
|
+
required: []
|
|
36764
|
+
}
|
|
36765
|
+
},
|
|
36766
|
+
{
|
|
36767
|
+
name: "add_test_whitelist",
|
|
36768
|
+
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.",
|
|
36769
|
+
inputSchema: {
|
|
36770
|
+
type: "object",
|
|
36771
|
+
properties: {
|
|
36772
|
+
user_id: {
|
|
36773
|
+
type: "number",
|
|
36774
|
+
description: "The TapTap user ID to add to the test whitelist"
|
|
36775
|
+
},
|
|
36776
|
+
target_dir: {
|
|
36777
|
+
type: "string",
|
|
36778
|
+
description: "Optional local Maker project directory. When omitted, Maker MCP uses one unambiguous MCP Roots workspace and process cwd only as the final fallback. Pass it explicitly when Roots are unavailable or ambiguous, or when the fallback is not the intended project. This local-only value is not persisted in user-level MCP config and is not forwarded to the remote Maker tool."
|
|
36779
|
+
}
|
|
36780
|
+
},
|
|
36781
|
+
required: ["user_id"]
|
|
36782
|
+
}
|
|
36783
|
+
},
|
|
36784
|
+
{
|
|
36785
|
+
name: "get_ad_config",
|
|
36786
|
+
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.",
|
|
36787
|
+
inputSchema: {
|
|
36788
|
+
type: "object",
|
|
36789
|
+
properties: {
|
|
36790
|
+
target_dir: {
|
|
36791
|
+
type: "string",
|
|
36792
|
+
description: "Optional local Maker project directory. When omitted, Maker MCP uses one unambiguous MCP Roots workspace and process cwd only as the final fallback. Pass it explicitly when Roots are unavailable or ambiguous, or when the fallback is not the intended project. This local-only value is not persisted in user-level MCP config and is not forwarded to the remote Maker tool."
|
|
36793
|
+
}
|
|
36794
|
+
},
|
|
36795
|
+
required: []
|
|
36796
|
+
}
|
|
36797
|
+
},
|
|
36798
|
+
{
|
|
36799
|
+
name: "get_debug_feedbacks",
|
|
36800
|
+
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.",
|
|
36801
|
+
inputSchema: {
|
|
36802
|
+
type: "object",
|
|
36803
|
+
properties: {
|
|
36804
|
+
developer_id: {
|
|
36805
|
+
type: "number",
|
|
36806
|
+
description: "开发者 ID(可选,默认从 .project/project.json 读取)"
|
|
36807
|
+
},
|
|
36808
|
+
app_id: {
|
|
36809
|
+
type: "number",
|
|
36810
|
+
description: "应用 ID(可选,默认从 .project/project.json 读取)"
|
|
36811
|
+
},
|
|
36812
|
+
limit: { type: "number", description: "返回数量(默认 5)" },
|
|
36813
|
+
status: {
|
|
36814
|
+
type: "number",
|
|
36815
|
+
description: "状态过滤:0=全部, 1=未处理, 2=已处理"
|
|
36816
|
+
},
|
|
36817
|
+
fetch_and_mark_processed: {
|
|
36818
|
+
type: "boolean",
|
|
36819
|
+
description: "仅拉取未处理数据并标记为已处理,优先级高于 status(默认 true)"
|
|
36820
|
+
},
|
|
36821
|
+
moment_id: {
|
|
36822
|
+
type: "string",
|
|
36823
|
+
description: "按玩家说帖子 ID 精确查询(64 位大整数,用字符串避免精度丢失)。传入时忽略 status 和 fetch_and_mark_processed 过滤"
|
|
36824
|
+
},
|
|
36825
|
+
user_id: {
|
|
36826
|
+
type: "string",
|
|
36827
|
+
description: "按提交反馈的玩家 user_id 过滤(64 位大整数,用字符串避免精度丢失),可与 status 组合;与 moment_id 互不影响"
|
|
36828
|
+
},
|
|
36829
|
+
game_session_id: {
|
|
36830
|
+
type: "string",
|
|
36831
|
+
description: "游戏局 ID(19 位数字)。提供时改为查询该局服务端+Lua 游戏局日志,落盘到 userpod /opt/log/server/<id>/"
|
|
36832
|
+
},
|
|
36833
|
+
target_dir: {
|
|
36834
|
+
type: "string",
|
|
36835
|
+
description: "Optional local Maker project directory. When omitted, Maker MCP uses one unambiguous MCP Roots workspace and process cwd only as the final fallback. Pass it explicitly when Roots are unavailable or ambiguous, or when the fallback is not the intended project. This local-only value is not persisted in user-level MCP config and is not forwarded to the remote Maker tool."
|
|
36836
|
+
}
|
|
36837
|
+
},
|
|
36838
|
+
required: []
|
|
36839
|
+
}
|
|
36840
|
+
}
|
|
36841
|
+
]
|
|
36842
|
+
};
|
|
36059
36843
|
|
|
36060
36844
|
// src/mcp-proxy/config.ts
|
|
36061
36845
|
var DEFAULT_TOOL_CALL_TIMEOUT_MS = 60 * 60 * 1e3;
|
|
@@ -36204,7 +36988,7 @@ function applyDefaults(config2) {
|
|
|
36204
36988
|
var MAKER_MCP_TRACKING_ACTION = "tapmaker_mcp_call";
|
|
36205
36989
|
var MAKER_MCP_TRACKING_SOURCE = "local_mcp";
|
|
36206
36990
|
var MAKER_MCP_TRACKING_TIMEOUT_MS = 1500;
|
|
36207
|
-
var MAKER_MCP_VERSION = "0.0.
|
|
36991
|
+
var MAKER_MCP_VERSION = "0.0.30-beta.2".trim() ? "0.0.30-beta.2".trim() : "dev";
|
|
36208
36992
|
var TRACKING_ERROR_MAX_LENGTH = 500;
|
|
36209
36993
|
function buildMakerMcpTrackingPayload(event) {
|
|
36210
36994
|
var _a3, _b, _c;
|
|
@@ -36517,7 +37301,7 @@ function createMakerRemoteProxyManager(options = {}) {
|
|
|
36517
37301
|
}
|
|
36518
37302
|
|
|
36519
37303
|
// src/maker/server/mcp.ts
|
|
36520
|
-
var VERSION = true ? "0.0.
|
|
37304
|
+
var VERSION = true ? "0.0.30-beta.2" : "dev";
|
|
36521
37305
|
var DEFAULT_BUILD_TIMEOUT_MS = 10 * 60 * 1e3;
|
|
36522
37306
|
var DEFAULT_PROXY_RETRY_ATTEMPTS = 5;
|
|
36523
37307
|
var DEFAULT_PROXY_RETRY_DELAY_MS = 30 * 1e3;
|
|
@@ -36529,15 +37313,15 @@ var MAKER_REMOTE_PROXY_EXPOSED_TOOL_NAMES = [
|
|
|
36529
37313
|
"generate_image",
|
|
36530
37314
|
"batch_generate_images",
|
|
36531
37315
|
"edit_image",
|
|
37316
|
+
CREATE_3D_ASSET_PROXY_TOOL_NAME,
|
|
37317
|
+
"text_to_music",
|
|
36532
37318
|
"create_video_task",
|
|
36533
37319
|
"query_video_task",
|
|
36534
|
-
"text_to_music",
|
|
36535
37320
|
"text_to_sound_effect",
|
|
36536
37321
|
"batch_sound_effects",
|
|
36537
37322
|
"text_to_dialogue",
|
|
36538
37323
|
"audition_voices_for_character",
|
|
36539
37324
|
"confirm_character_voice",
|
|
36540
|
-
CREATE_3D_ASSET_PROXY_TOOL_NAME,
|
|
36541
37325
|
"generate_test_qrcode",
|
|
36542
37326
|
"add_test_whitelist",
|
|
36543
37327
|
"get_ad_config",
|
|
@@ -36598,6 +37382,7 @@ var MAKER_BUILD_MULTIPLAYER_SCHEMA = {
|
|
|
36598
37382
|
}
|
|
36599
37383
|
}
|
|
36600
37384
|
};
|
|
37385
|
+
var MAKER_TARGET_DIR_SCHEMA_DESCRIPTION = "Optional Maker project directory. When omitted, Maker MCP uses one unambiguous MCP Roots workspace and process cwd only as the final fallback. Pass target_dir explicitly when Roots are unavailable or ambiguous, or when the fallback is not the intended project. This per-call value is never persisted in user-level MCP config.";
|
|
36601
37386
|
var MakerCloneFailedError = class extends Error {
|
|
36602
37387
|
constructor(targetDir, originalError) {
|
|
36603
37388
|
const message = originalError instanceof Error ? originalError.message : String(originalError);
|
|
@@ -36617,7 +37402,7 @@ var tools = [
|
|
|
36617
37402
|
properties: {
|
|
36618
37403
|
target_dir: {
|
|
36619
37404
|
type: "string",
|
|
36620
|
-
description:
|
|
37405
|
+
description: MAKER_TARGET_DIR_SCHEMA_DESCRIPTION
|
|
36621
37406
|
},
|
|
36622
37407
|
skip_remote_sync: {
|
|
36623
37408
|
type: "boolean",
|
|
@@ -36639,7 +37424,7 @@ var tools = [
|
|
|
36639
37424
|
properties: {
|
|
36640
37425
|
target_dir: {
|
|
36641
37426
|
type: "string",
|
|
36642
|
-
description:
|
|
37427
|
+
description: MAKER_TARGET_DIR_SCHEMA_DESCRIPTION
|
|
36643
37428
|
},
|
|
36644
37429
|
entry: {
|
|
36645
37430
|
type: "string",
|
|
@@ -36693,237 +37478,28 @@ var resources = [
|
|
|
36693
37478
|
mimeType: "text/plain"
|
|
36694
37479
|
}
|
|
36695
37480
|
];
|
|
36696
|
-
async function listMakerTools(
|
|
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
|
-
}
|
|
37481
|
+
async function listMakerTools(_options = {}) {
|
|
36727
37482
|
return {
|
|
36728
|
-
tools: [
|
|
37483
|
+
tools: [
|
|
37484
|
+
...tools,
|
|
37485
|
+
...createStaticRemoteProxyToolDefinitions()
|
|
37486
|
+
]
|
|
36729
37487
|
};
|
|
36730
37488
|
}
|
|
37489
|
+
function createStaticRemoteProxyToolDefinitions() {
|
|
37490
|
+
return remoteProxyToolSnapshot_default.tools.map((tool) => ({
|
|
37491
|
+
name: tool.name,
|
|
37492
|
+
description: tool.description,
|
|
37493
|
+
inputSchema: tool.inputSchema
|
|
37494
|
+
}));
|
|
37495
|
+
}
|
|
36731
37496
|
function filterExposedRemoteProxyTools(toolsToFilter) {
|
|
36732
37497
|
const exposedToolNames = new Set(MAKER_REMOTE_PROXY_EXPOSED_TOOL_NAMES);
|
|
36733
37498
|
return toolsToFilter.filter((tool) => exposedToolNames.has(tool.name));
|
|
36734
37499
|
}
|
|
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
37500
|
function isPlainRecord(value) {
|
|
36842
37501
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
36843
37502
|
}
|
|
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
37503
|
function isExposedRemoteProxyTool(name) {
|
|
36928
37504
|
return MAKER_REMOTE_PROXY_EXPOSED_TOOL_NAMES.includes(name);
|
|
36929
37505
|
}
|
|
@@ -37081,46 +37657,19 @@ async function startMakerMcpServer() {
|
|
|
37081
37657
|
},
|
|
37082
37658
|
{
|
|
37083
37659
|
capabilities: {
|
|
37084
|
-
tools: {
|
|
37660
|
+
tools: {},
|
|
37085
37661
|
resources: {}
|
|
37086
37662
|
},
|
|
37087
37663
|
instructions: MAKER_CAPABILITY_ROUTING_INDEX
|
|
37088
37664
|
}
|
|
37089
37665
|
);
|
|
37090
37666
|
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
|
-
});
|
|
37667
|
+
const remoteProxyManager = createMakerRemoteProxyManager();
|
|
37103
37668
|
const startupReportedProjects = /* @__PURE__ */ new Set();
|
|
37104
37669
|
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
37105
37670
|
const contextPromise = resolveMakerMcpTrackingContext({ listClientRoots });
|
|
37106
37671
|
void reportMakerMcpStartupFromPromise(contextPromise, startupReportedProjects);
|
|
37107
|
-
|
|
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
|
-
});
|
|
37672
|
+
return listMakerTools();
|
|
37124
37673
|
});
|
|
37125
37674
|
server.setRequestHandler(ListResourcesRequestSchema, async () => {
|
|
37126
37675
|
const contextPromise = resolveMakerMcpTrackingContext({ listClientRoots });
|
|
@@ -37633,14 +38182,18 @@ function formatMakerClientRootsSummary(roots) {
|
|
|
37633
38182
|
"- next_action: Open a single Maker workspace, or pass target_dir explicitly for this call."
|
|
37634
38183
|
);
|
|
37635
38184
|
} else if (roots.status === "unsupported") {
|
|
37636
|
-
lines.push(
|
|
38185
|
+
lines.push(
|
|
38186
|
+
"- next_action: This client did not advertise MCP Roots. Maker MCP is using process cwd only as the final fallback; pass target_dir explicitly when that is not the intended Maker project. Do not rewrite user-level MCP config."
|
|
38187
|
+
);
|
|
37637
38188
|
} else if (roots.status === "unavailable") {
|
|
37638
38189
|
lines.push(
|
|
37639
38190
|
`- failure_message: ${roots.message || "(unknown)"}`,
|
|
37640
|
-
"- next_action: Could not read MCP
|
|
38191
|
+
"- next_action: Could not read MCP Roots. Maker MCP is using process cwd only as the final fallback; pass target_dir explicitly when that is not the intended Maker project. Do not rewrite user-level MCP config."
|
|
37641
38192
|
);
|
|
37642
38193
|
} else {
|
|
37643
|
-
lines.push(
|
|
38194
|
+
lines.push(
|
|
38195
|
+
"- next_action: No MCP Roots are attached. Maker MCP is using process cwd only as the final fallback; pass target_dir explicitly when that is not the intended Maker project. Do not rewrite user-level MCP config."
|
|
38196
|
+
);
|
|
37644
38197
|
}
|
|
37645
38198
|
return lines.join("\n");
|
|
37646
38199
|
}
|
|
@@ -37728,15 +38281,15 @@ function formatMakerToolRegistrationCwdStatus(options) {
|
|
|
37728
38281
|
return "";
|
|
37729
38282
|
}
|
|
37730
38283
|
return [
|
|
37731
|
-
"MCP
|
|
38284
|
+
"MCP project context cwd",
|
|
37732
38285
|
"",
|
|
37733
38286
|
"- status: mismatch",
|
|
37734
38287
|
`- mcp_cwd: ${mcpCwd}`,
|
|
37735
38288
|
`- inspected_target_dir: ${targetDir}`,
|
|
37736
38289
|
`- maker_project_dir: ${projectRoot}`,
|
|
37737
38290
|
`- mcp_cwd_project_dir: ${mcpProjectRoot || "(none)"}`,
|
|
37738
|
-
"- impact: Maker proxy tools
|
|
37739
|
-
"- next_action:
|
|
38291
|
+
"- impact: Maker proxy tools remain registered, but calls without target_dir may resolve an unbound or wrong project.",
|
|
38292
|
+
"- next_action: Open the Maker project as the active workspace, or pass the Maker project directory as target_dir. Do not rewrite a shared user-level MCP cwd."
|
|
37740
38293
|
].join("\n");
|
|
37741
38294
|
}
|
|
37742
38295
|
async function formatMakerProxyToolsStatusSafely(options) {
|
|
@@ -37989,9 +38542,6 @@ var MakerProjectContextAmbiguousError = class extends Error {
|
|
|
37989
38542
|
this.name = "MakerProjectContextAmbiguousError";
|
|
37990
38543
|
}
|
|
37991
38544
|
};
|
|
37992
|
-
function isMakerProjectContextAmbiguousError(error2) {
|
|
37993
|
-
return error2 instanceof MakerProjectContextAmbiguousError;
|
|
37994
|
-
}
|
|
37995
38545
|
async function resolveMakerClientRoots(listClientRoots) {
|
|
37996
38546
|
if (!listClientRoots) {
|
|
37997
38547
|
return { status: "not_requested", roots: [] };
|
|
@@ -38098,10 +38648,18 @@ function formatMakerClientRootsStatus(roots) {
|
|
|
38098
38648
|
"- next_action: Open a single Maker workspace, or pass target_dir explicitly for this call."
|
|
38099
38649
|
);
|
|
38100
38650
|
} else if (roots.status === "unsupported") {
|
|
38101
|
-
lines.push(
|
|
38651
|
+
lines.push(
|
|
38652
|
+
"- next_action: This client did not advertise MCP Roots. Maker MCP is using process cwd only as the final fallback; pass target_dir explicitly when that is not the intended Maker project. Do not rewrite user-level MCP config."
|
|
38653
|
+
);
|
|
38102
38654
|
} else if (roots.status === "unavailable") {
|
|
38103
38655
|
lines.push(`- failure_message: ${roots.message || "(unknown)"}`);
|
|
38104
|
-
lines.push(
|
|
38656
|
+
lines.push(
|
|
38657
|
+
"- next_action: Could not read MCP Roots. Maker MCP is using process cwd only as the final fallback; pass target_dir explicitly when that is not the intended Maker project. Do not rewrite user-level MCP config."
|
|
38658
|
+
);
|
|
38659
|
+
} else {
|
|
38660
|
+
lines.push(
|
|
38661
|
+
"- next_action: No MCP Roots are attached. Maker MCP is using process cwd only as the final fallback; pass target_dir explicitly when that is not the intended Maker project. Do not rewrite user-level MCP config."
|
|
38662
|
+
);
|
|
38105
38663
|
}
|
|
38106
38664
|
return lines.join("\n");
|
|
38107
38665
|
}
|
|
@@ -39860,7 +40418,7 @@ function uniqueStrings(values) {
|
|
|
39860
40418
|
}
|
|
39861
40419
|
|
|
39862
40420
|
// src/maker/cli/commands.ts
|
|
39863
|
-
var VERSION2 = true ? "0.0.
|
|
40421
|
+
var VERSION2 = true ? "0.0.30-beta.2" : "dev";
|
|
39864
40422
|
var DEFAULT_MCP_NAME = "taptap-maker";
|
|
39865
40423
|
var MAKER_NPM_PACKAGE = "@taptap/maker";
|
|
39866
40424
|
var TWO_PART_COMMANDS = /* @__PURE__ */ new Set(["pat", "mcp", "dev-kit", "logs", "python", "lua-lsp", "agents"]);
|
|
@@ -40071,7 +40629,7 @@ async function runInit(parsed, ctx) {
|
|
|
40071
40629
|
}
|
|
40072
40630
|
const installResults = installMcpConfigs({
|
|
40073
40631
|
ides: ides.length > 0 ? ides : getDefaultMcpInstallIdes(),
|
|
40074
|
-
env,
|
|
40632
|
+
env: makerMcpConfigEnvOption(parsed),
|
|
40075
40633
|
mcpName: DEFAULT_MCP_NAME,
|
|
40076
40634
|
launcher: prepared.launcher
|
|
40077
40635
|
});
|
|
@@ -40580,19 +41138,16 @@ async function resolvePatSet(parsed, ctx) {
|
|
|
40580
41138
|
async function runMcpInstall(parsed, ctx) {
|
|
40581
41139
|
rejectPackageOption(parsed);
|
|
40582
41140
|
const ides = parseIdeList(stringOption(parsed, "ide") || stringOption(parsed, "ides") || "");
|
|
40583
|
-
const explicitTargetDir = stringOption(parsed, "target_dir");
|
|
40584
41141
|
const env = makerEnvOption(parsed);
|
|
40585
|
-
const
|
|
40586
|
-
const prepared = await prepareMcpLauncher({ env, cwd });
|
|
41142
|
+
const prepared = await prepareMcpLauncher({ env });
|
|
40587
41143
|
if (!prepared.ok) {
|
|
40588
41144
|
writeMcpLauncherFailure(ctx, prepared);
|
|
40589
41145
|
return;
|
|
40590
41146
|
}
|
|
40591
41147
|
const results = installMcpConfigs({
|
|
40592
41148
|
ides: ides.length > 0 ? ides : getDefaultMcpInstallIdes(),
|
|
40593
|
-
env,
|
|
41149
|
+
env: makerMcpConfigEnvOption(parsed),
|
|
40594
41150
|
mcpName: stringOption(parsed, "name") || DEFAULT_MCP_NAME,
|
|
40595
|
-
cwd,
|
|
40596
41151
|
launcher: prepared.launcher
|
|
40597
41152
|
});
|
|
40598
41153
|
const ok = results.every((result) => result.ok);
|
|
@@ -40614,7 +41169,6 @@ async function prepareMcpLauncher(options) {
|
|
|
40614
41169
|
return createMcpLauncherResolutionFailure(error2);
|
|
40615
41170
|
}
|
|
40616
41171
|
const verification = await verifyMakerMcpLauncher(launcher, {
|
|
40617
|
-
cwd: options.cwd,
|
|
40618
41172
|
env: options.env === "production" ? void 0 : { TAPTAP_MCP_ENV: options.env }
|
|
40619
41173
|
});
|
|
40620
41174
|
if (!verification.ok) {
|
|
@@ -40738,17 +41292,15 @@ async function runUpgrade(parsed, ctx) {
|
|
|
40738
41292
|
const targetDir = path20.resolve(explicitTargetDir || process.cwd());
|
|
40739
41293
|
const env = makerEnvOption(parsed);
|
|
40740
41294
|
const ides = parseIdeList(stringOption(parsed, "ide") || stringOption(parsed, "ides") || "");
|
|
40741
|
-
const
|
|
40742
|
-
const prepared = await prepareMcpLauncher({ env, cwd });
|
|
41295
|
+
const prepared = await prepareMcpLauncher({ env });
|
|
40743
41296
|
if (!prepared.ok) {
|
|
40744
41297
|
writeMcpLauncherFailure(ctx, prepared);
|
|
40745
41298
|
return;
|
|
40746
41299
|
}
|
|
40747
41300
|
const installResults = installMcpConfigs({
|
|
40748
41301
|
ides: ides.length > 0 ? ides : getDefaultMcpInstallIdes(),
|
|
40749
|
-
env,
|
|
41302
|
+
env: makerMcpConfigEnvOption(parsed),
|
|
40750
41303
|
mcpName: stringOption(parsed, "name") || DEFAULT_MCP_NAME,
|
|
40751
|
-
cwd,
|
|
40752
41304
|
launcher: prepared.launcher
|
|
40753
41305
|
});
|
|
40754
41306
|
const identify = identifyMakerProject({ cwd: targetDir });
|
|
@@ -41197,17 +41749,16 @@ function installMcpConfigUnsafe(ide, options) {
|
|
|
41197
41749
|
}
|
|
41198
41750
|
if (ide === "claude") {
|
|
41199
41751
|
const claudeOptions = withClientIde(options, "claude");
|
|
41200
|
-
|
|
41201
|
-
|
|
41202
|
-
|
|
41203
|
-
|
|
41204
|
-
|
|
41205
|
-
|
|
41206
|
-
|
|
41207
|
-
|
|
41208
|
-
|
|
41209
|
-
|
|
41210
|
-
}
|
|
41752
|
+
const claudeResult = tryClaudeMcpAdd(claudeOptions);
|
|
41753
|
+
if (claudeResult.ok) {
|
|
41754
|
+
return [
|
|
41755
|
+
{
|
|
41756
|
+
ide,
|
|
41757
|
+
ok: true,
|
|
41758
|
+
changed: claudeResult.changed,
|
|
41759
|
+
message: claudeResult.changed ? "✓ Claude Code MCP config updated with claude mcp add" : "✓ Claude Code MCP config already current; no update required"
|
|
41760
|
+
}
|
|
41761
|
+
];
|
|
41211
41762
|
}
|
|
41212
41763
|
const configPath = path20.join(os4.homedir(), ".claude.json");
|
|
41213
41764
|
const write = mergeJsonMcpConfig(configPath, claudeOptions);
|
|
@@ -41462,7 +42013,11 @@ function getReadableWorkBuddyTrustPath() {
|
|
|
41462
42013
|
function mergeJsonMcpConfig(configPath, options) {
|
|
41463
42014
|
const existing = readJsonObject(configPath);
|
|
41464
42015
|
const mcpServers = asObject(existing.mcpServers);
|
|
41465
|
-
|
|
42016
|
+
const desired = createJsonMcpServerConfig(options);
|
|
42017
|
+
if (deepJsonEqual(mcpServers[options.mcpName], desired)) {
|
|
42018
|
+
return { changed: false };
|
|
42019
|
+
}
|
|
42020
|
+
mcpServers[options.mcpName] = desired;
|
|
41466
42021
|
existing.mcpServers = mcpServers;
|
|
41467
42022
|
return writeConfigWithTapTapBackupIfChanged(
|
|
41468
42023
|
configPath,
|
|
@@ -41476,9 +42031,14 @@ function mergeOpenCodeMcpConfig(configPath, options) {
|
|
|
41476
42031
|
const rewroteJsonc = normalizeJsonConfigContent(rawContent, { jsonc: true }) !== rawContent;
|
|
41477
42032
|
const existing = readJsonObject(configPath, { jsonc: true });
|
|
41478
42033
|
const mcp = asObject(existing.mcp);
|
|
41479
|
-
|
|
42034
|
+
const desired = createOpenCodeMcpServerConfig(options);
|
|
42035
|
+
const legacyMcpServers = asObject(existing.mcpServers);
|
|
42036
|
+
if (deepJsonEqual(mcp[options.mcpName], desired) && !Object.prototype.hasOwnProperty.call(legacyMcpServers, options.mcpName) && existing.$schema === "https://opencode.ai/config.json") {
|
|
42037
|
+
return { changed: false, rewroteJsonc: false };
|
|
42038
|
+
}
|
|
42039
|
+
mcp[options.mcpName] = desired;
|
|
41480
42040
|
existing.mcp = mcp;
|
|
41481
|
-
const mcpServers =
|
|
42041
|
+
const mcpServers = legacyMcpServers;
|
|
41482
42042
|
if (Object.prototype.hasOwnProperty.call(mcpServers, options.mcpName)) {
|
|
41483
42043
|
delete mcpServers[options.mcpName];
|
|
41484
42044
|
if (Object.keys(mcpServers).length === 0) {
|
|
@@ -41513,7 +42073,6 @@ function mergeCodexMcpConfig(configPath, options) {
|
|
|
41513
42073
|
`[mcp_servers."${options.mcpName}"]`,
|
|
41514
42074
|
`command = "${escapeToml(launch.command)}"`,
|
|
41515
42075
|
`args = [${launch.args.map((arg) => `"${escapeToml(arg)}"`).join(", ")}]`,
|
|
41516
|
-
options.cwd ? `cwd = "${escapeToml(options.cwd)}"` : "",
|
|
41517
42076
|
...envSection,
|
|
41518
42077
|
""
|
|
41519
42078
|
].join("\n");
|
|
@@ -41573,6 +42132,15 @@ function normalizeCodexMcpTablePath(tablePath, mcpName) {
|
|
|
41573
42132
|
return `mcp_servers.${mcpName}${match[1] || ""}`;
|
|
41574
42133
|
}
|
|
41575
42134
|
function tryClaudeMcpAdd(options) {
|
|
42135
|
+
const configPath = path20.join(os4.homedir(), ".claude.json");
|
|
42136
|
+
try {
|
|
42137
|
+
const existing = readJsonObject(configPath);
|
|
42138
|
+
const server = asObject(asObject(existing.mcpServers)[options.mcpName]);
|
|
42139
|
+
if (deepJsonEqual(server, createJsonMcpServerConfig(options))) {
|
|
42140
|
+
return { ok: true, changed: false };
|
|
42141
|
+
}
|
|
42142
|
+
} catch {
|
|
42143
|
+
}
|
|
41576
42144
|
const npxLaunch = options.launcher;
|
|
41577
42145
|
const claudeArgs = [
|
|
41578
42146
|
"mcp",
|
|
@@ -41593,14 +42161,22 @@ function tryClaudeMcpAdd(options) {
|
|
|
41593
42161
|
process.platform === "win32" ? claude.args : claudeArgs,
|
|
41594
42162
|
{ encoding: "utf8" }
|
|
41595
42163
|
);
|
|
41596
|
-
|
|
42164
|
+
if (result.status !== 0) {
|
|
42165
|
+
return { ok: false, changed: false };
|
|
42166
|
+
}
|
|
42167
|
+
try {
|
|
42168
|
+
const updated = readJsonObject(configPath);
|
|
42169
|
+
const server = asObject(asObject(updated.mcpServers)[options.mcpName]);
|
|
42170
|
+
return deepJsonEqual(server, createJsonMcpServerConfig(options)) ? { ok: true, changed: true } : { ok: false, changed: false };
|
|
42171
|
+
} catch {
|
|
42172
|
+
return { ok: false, changed: false };
|
|
42173
|
+
}
|
|
41597
42174
|
}
|
|
41598
42175
|
function createJsonMcpServerConfig(options) {
|
|
41599
42176
|
const launch = options.launcher;
|
|
41600
42177
|
return {
|
|
41601
42178
|
command: launch.command,
|
|
41602
42179
|
args: launch.args,
|
|
41603
|
-
...options.cwd ? { cwd: options.cwd } : {},
|
|
41604
42180
|
...createOptionalMcpEnvironment(options.env, "env", options.clientIde),
|
|
41605
42181
|
...options.disabled !== void 0 ? { disabled: options.disabled } : {}
|
|
41606
42182
|
};
|
|
@@ -41609,7 +42185,6 @@ function createOpenCodeMcpServerConfig(options) {
|
|
|
41609
42185
|
return {
|
|
41610
42186
|
type: "local",
|
|
41611
42187
|
command: options.launcher.commandAndArgs,
|
|
41612
|
-
...options.cwd ? { cwd: options.cwd } : {},
|
|
41613
42188
|
...createOptionalMcpEnvironment(options.env, "environment", options.clientIde),
|
|
41614
42189
|
enabled: true
|
|
41615
42190
|
};
|
|
@@ -41732,7 +42307,18 @@ function parseGeneratedJsonObject(content) {
|
|
|
41732
42307
|
return parsed;
|
|
41733
42308
|
}
|
|
41734
42309
|
function deepJsonEqual(left, right) {
|
|
41735
|
-
return JSON.stringify(left) === JSON.stringify(right);
|
|
42310
|
+
return JSON.stringify(sortJsonObjectKeys(left)) === JSON.stringify(sortJsonObjectKeys(right));
|
|
42311
|
+
}
|
|
42312
|
+
function sortJsonObjectKeys(value) {
|
|
42313
|
+
if (Array.isArray(value)) {
|
|
42314
|
+
return value.map(sortJsonObjectKeys);
|
|
42315
|
+
}
|
|
42316
|
+
if (!value || typeof value !== "object") {
|
|
42317
|
+
return value;
|
|
42318
|
+
}
|
|
42319
|
+
return Object.fromEntries(
|
|
42320
|
+
Object.entries(value).sort(([left], [right]) => left.localeCompare(right)).map(([key, item]) => [key, sortJsonObjectKeys(item)])
|
|
42321
|
+
);
|
|
41736
42322
|
}
|
|
41737
42323
|
function normalizeJsonConfigContent(content, options = {}) {
|
|
41738
42324
|
const withoutBom = stripLeadingBom(content);
|
|
@@ -41997,6 +42583,9 @@ function makerEnvOption(parsed) {
|
|
|
41997
42583
|
const targetDir = stringOption(parsed, "target_dir");
|
|
41998
42584
|
return getMakerEnvironment(void 0, targetDir ? path20.resolve(targetDir) : process.cwd());
|
|
41999
42585
|
}
|
|
42586
|
+
function makerMcpConfigEnvOption(parsed) {
|
|
42587
|
+
return stringOption(parsed, "env") === "rnd" ? "rnd" : "production";
|
|
42588
|
+
}
|
|
42000
42589
|
function mcpVerifyModeOption(parsed) {
|
|
42001
42590
|
const mode = stringOption(parsed, "mode") || "npx";
|
|
42002
42591
|
if (mode === "npx" || mode === "self") {
|
|
@@ -42060,13 +42649,12 @@ function printHelp() {
|
|
|
42060
42649
|
" taptap-maker pat set [--pat-stdin] [--json]",
|
|
42061
42650
|
" taptap-maker pat set [PAT|--pat PAT] [--json] # fallback; warns: PAT appears in ps/history",
|
|
42062
42651
|
" taptap-maker install [--ide codex,cursor,claude,trae,opencode,workbuddy]",
|
|
42063
|
-
" [--target-dir DIR]",
|
|
42064
42652
|
" [--json] # alias for mcp install",
|
|
42065
42653
|
" taptap-maker mcp install [--ide codex,cursor,claude,trae,opencode,workbuddy]",
|
|
42066
|
-
" [--
|
|
42654
|
+
" [--json]",
|
|
42067
42655
|
" taptap-maker mcp verify [--mode npx|self] [--json]",
|
|
42068
42656
|
" taptap-maker agents update [--target-dir DIR] [--json]",
|
|
42069
|
-
" taptap-maker upgrade [--ide codex,cursor,claude]",
|
|
42657
|
+
" taptap-maker upgrade [--ide codex,cursor,claude,trae,opencode,workbuddy]",
|
|
42070
42658
|
" [--target-dir DIR] [--json]",
|
|
42071
42659
|
" taptap-maker dev-kit update [--target-dir DIR] [--json]",
|
|
42072
42660
|
" taptap-maker logs watch [--target-dir DIR] [--interval 5s] [--reset] [--json]",
|
|
@@ -44658,7 +45246,8 @@ function printHelp2() {
|
|
|
44658
45246
|
" taptap-maker Start MCP server mode",
|
|
44659
45247
|
" taptap-maker init [--app-id ID] [--target-dir DIR] [--pat PAT]",
|
|
44660
45248
|
" [--create --name NAME]",
|
|
44661
|
-
" [--skip-confirm] [--skip-mcp-install]
|
|
45249
|
+
" [--skip-confirm] [--skip-mcp-install]",
|
|
45250
|
+
" [--register-mcp codex,cursor,claude,trae,opencode,workbuddy]",
|
|
44662
45251
|
" [--json]",
|
|
44663
45252
|
"",
|
|
44664
45253
|
"Init flows:",
|
|
@@ -44678,14 +45267,13 @@ function printHelp2() {
|
|
|
44678
45267
|
" taptap-maker login [--json]",
|
|
44679
45268
|
" taptap-maker pat set [--pat-stdin] [--json]",
|
|
44680
45269
|
" taptap-maker pat set [PAT|--pat PAT] [--json] # fallback; warns: PAT appears in ps/history",
|
|
44681
|
-
" taptap-maker install [--ide codex,cursor,claude]",
|
|
44682
|
-
" [--target-dir DIR]",
|
|
45270
|
+
" taptap-maker install [--ide codex,cursor,claude,trae,opencode,workbuddy]",
|
|
44683
45271
|
" [--json] # alias for mcp install",
|
|
44684
|
-
" taptap-maker mcp install [--ide codex,cursor,claude]",
|
|
44685
|
-
" [--
|
|
45272
|
+
" taptap-maker mcp install [--ide codex,cursor,claude,trae,opencode,workbuddy]",
|
|
45273
|
+
" [--json]",
|
|
44686
45274
|
" taptap-maker mcp verify [--mode npx|self] [--json]",
|
|
44687
45275
|
" taptap-maker agents update [--target-dir DIR] [--json]",
|
|
44688
|
-
" taptap-maker upgrade [--ide codex,cursor,claude]",
|
|
45276
|
+
" taptap-maker upgrade [--ide codex,cursor,claude,trae,opencode,workbuddy]",
|
|
44689
45277
|
" [--target-dir DIR] [--json]",
|
|
44690
45278
|
" taptap-maker dev-kit update [--target-dir DIR] [--json]",
|
|
44691
45279
|
" taptap-maker logs watch [--target-dir DIR] [--interval 5s] [--reset] [--json]",
|
|
@@ -44695,7 +45283,7 @@ function printHelp2() {
|
|
|
44695
45283
|
"",
|
|
44696
45284
|
"Windows note:",
|
|
44697
45285
|
" Generated MCP configs prefer absolute node.exe + npm-cli.js on Windows.",
|
|
44698
|
-
"
|
|
45286
|
+
" User-level MCP config never stores a project cwd or generates cd && npx commands.",
|
|
44699
45287
|
""
|
|
44700
45288
|
].join("\n")
|
|
44701
45289
|
);
|