@taptap/maker 0.0.27 → 0.0.28-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 +1 -1
- package/dist/maker.js +425 -145
- package/package.json +1 -1
- package/skills/taptap-maker-local/SKILL.md +11 -16
package/README.md
CHANGED
package/dist/maker.js
CHANGED
|
@@ -29164,8 +29164,10 @@ var MAKER_CAPABILITY_ROUTING_INDEX = `TapTap Maker routing index:
|
|
|
29164
29164
|
- Build, preview, run, submit, or push: after checking project status, use
|
|
29165
29165
|
maker_build_current_directory.
|
|
29166
29166
|
- Ads: read maker://ads-integration-guide before any ad-related work.
|
|
29167
|
-
- Tap flows: test QR -> generate_test_qrcode; online player feedback
|
|
29168
|
-
screenshots
|
|
29167
|
+
- Tap flows: test QR -> generate_test_qrcode; current Maker game's online player feedback
|
|
29168
|
+
(including player-submitted game bug reports, real-device game logs, or screenshots), or
|
|
29169
|
+
server/Lua logs for a specified game session -> call get_debug_feedbacks only when it is
|
|
29170
|
+
exposed by the current Maker tool list.
|
|
29169
29171
|
- Game assets: Maker MCP also provides image, video, music, sound-effect,
|
|
29170
29172
|
dialogue/voice, and 3D generation tools when exposed.
|
|
29171
29173
|
|
|
@@ -29343,16 +29345,20 @@ function createMakerAgentsPolicyBody() {
|
|
|
29343
29345
|
"",
|
|
29344
29346
|
"Maker feedback workflow:",
|
|
29345
29347
|
"",
|
|
29346
|
-
"- For user requests about
|
|
29347
|
-
"
|
|
29348
|
-
" the Maker proxy `get_debug_feedbacks` tool
|
|
29348
|
+
"- For user requests about the current Maker game's online player feedback, including",
|
|
29349
|
+
" player-submitted game bug reports, real-device game logs, or screenshots, or server/Lua",
|
|
29350
|
+
" logs for a specified game session, call the Maker proxy `get_debug_feedbacks` tool only",
|
|
29351
|
+
" when it is exposed by the current Maker tool list.",
|
|
29352
|
+
"- This includes 当前 Maker 游戏的玩家反馈、玩家提交的游戏故障、真机游戏日志或截图、",
|
|
29353
|
+
" 指定游戏会话的服务端/Lua 日志. It does not include AI client, plugin, or other product",
|
|
29354
|
+
" feedback.",
|
|
29349
29355
|
"- Use local runtime log files only for the current local build/runtime session. Do not use",
|
|
29350
29356
|
" local logs as a substitute for remote player-submitted feedback.",
|
|
29351
29357
|
"- Follow the remote tool schema and return the feedback records, logs, screenshots, and",
|
|
29352
29358
|
" full error payloads as provided by the remote Maker MCP server.",
|
|
29353
29359
|
"",
|
|
29354
|
-
"
|
|
29355
|
-
"
|
|
29360
|
+
"Maker MCP provides the following game asset generation and editing tools when they are",
|
|
29361
|
+
"exposed in the current session:",
|
|
29356
29362
|
"",
|
|
29357
29363
|
"- `generate_image` for one image asset.",
|
|
29358
29364
|
"- `batch_generate_images` for multiple image assets.",
|
|
@@ -29374,17 +29380,13 @@ function createMakerAgentsPolicyBody() {
|
|
|
29374
29380
|
" option inspection, and post-processing.",
|
|
29375
29381
|
"- Never automatically continue a 3D review step. Show returned previews and wait for explicit",
|
|
29376
29382
|
' user approval before calling `create_3d_asset` with `action="continue"`.',
|
|
29383
|
+
"- Follow the selected tool schema when one of these tools is used.",
|
|
29377
29384
|
"",
|
|
29378
29385
|
"Follow each Maker tool schema for supported local path, remote URL, and data URL inputs.",
|
|
29379
29386
|
"If the user references attached/local media, inspect the attachment or workspace file path",
|
|
29380
29387
|
"before calling the tool. Local proxy may convert resolvable local reference media to data URLs",
|
|
29381
29388
|
"before forwarding to the remote Maker MCP server.",
|
|
29382
29389
|
"",
|
|
29383
|
-
"If the required Maker proxy tool is not exposed in the current AI session, explain that the",
|
|
29384
|
-
"Maker proxy tool is unavailable and suggest checking/reconnecting the Maker MCP session.",
|
|
29385
|
-
"Other client media tools may still be usable when their output is passed back through a supported",
|
|
29386
|
-
"local path, remote URL, or data URL input.",
|
|
29387
|
-
"",
|
|
29388
29390
|
"Generated Maker proxy assets should stay in the Maker project asset workflow under",
|
|
29389
29391
|
"`assets/image`, `assets/video`, `assets/audio`, or `assets/model`, with remote mappings",
|
|
29390
29392
|
"preserved for later edits and builds.",
|
|
@@ -32424,8 +32426,8 @@ function formatMakerSkillStatus(_options = {}) {
|
|
|
32424
32426
|
"",
|
|
32425
32427
|
"Maker proxy tool policy",
|
|
32426
32428
|
`- entry: ${MAKER_LOCAL_SKILL_NAME} > Maker Creative Asset Tool Policy`,
|
|
32427
|
-
"-
|
|
32428
|
-
"-
|
|
32429
|
+
"- Maker MCP provides image, video, music, sound-effect, dialogue/voice, and 3D asset tools for Maker projects.",
|
|
32430
|
+
"- Follow the selected tool schema when one of these tools is used.",
|
|
32429
32431
|
"- Use generate_image, batch_generate_images, edit_image for game image assets.",
|
|
32430
32432
|
"- Use create_video_task and query_video_task for game video assets.",
|
|
32431
32433
|
"- Use text_to_music for game music.",
|
|
@@ -32443,7 +32445,7 @@ function formatMakerSkillStatus(_options = {}) {
|
|
|
32443
32445
|
"- Do not infer ad readiness from local SDK docs, .maker-mcp/config.json, or runtime callbacks.",
|
|
32444
32446
|
"- If primary local project configs are missing, keep ad config unavailable. Build only for an explicit user build/submit/preview request, and do not automatically rebuild when local configs remain missing after success.",
|
|
32445
32447
|
"- If get_ad_config reports missing app_id or developer_id, call generate_test_qrcode once, then call get_ad_config again.",
|
|
32446
|
-
"- For online player feedback,
|
|
32448
|
+
"- For the current Maker game's online player feedback, including player-submitted game bug reports, real-device game logs, or screenshots, or server/Lua logs for a specified game session, call get_debug_feedbacks only when it is exposed by the current Maker tool list.",
|
|
32447
32449
|
"- Use local runtime logs only for the current local build/runtime session.",
|
|
32448
32450
|
"- Generated assets are saved under assets/image, assets/video, assets/audio, or assets/model with remote mappings.",
|
|
32449
32451
|
"- Follow each tool schema for supported local path, remote URL, and data URL inputs.",
|
|
@@ -36304,7 +36306,7 @@ function applyDefaults(config2) {
|
|
|
36304
36306
|
var MAKER_MCP_TRACKING_ACTION = "tapmaker_mcp_call";
|
|
36305
36307
|
var MAKER_MCP_TRACKING_SOURCE = "local_mcp";
|
|
36306
36308
|
var MAKER_MCP_TRACKING_TIMEOUT_MS = 1500;
|
|
36307
|
-
var MAKER_MCP_VERSION = "0.0.
|
|
36309
|
+
var MAKER_MCP_VERSION = "0.0.28-beta.2".trim() ? "0.0.28-beta.2".trim() : "dev";
|
|
36308
36310
|
var TRACKING_ERROR_MAX_LENGTH = 500;
|
|
36309
36311
|
function buildMakerMcpTrackingPayload(event) {
|
|
36310
36312
|
var _a3, _b, _c;
|
|
@@ -36406,8 +36408,218 @@ Do not build automatically just because local project configs are missing. Use
|
|
|
36406
36408
|
maker_build_current_directory only when the user explicitly requests build, submit, or preview.`;
|
|
36407
36409
|
}
|
|
36408
36410
|
|
|
36411
|
+
// src/maker/server/remoteProxyManager.ts
|
|
36412
|
+
import { createHash } from "node:crypto";
|
|
36413
|
+
function createContextKey(context) {
|
|
36414
|
+
const identity = JSON.stringify({
|
|
36415
|
+
projectRoot: context.projectRoot,
|
|
36416
|
+
serverUrl: context.serverUrl,
|
|
36417
|
+
env: context.env,
|
|
36418
|
+
userId: context.userId,
|
|
36419
|
+
projectId: context.projectId,
|
|
36420
|
+
projectPath: context.projectPath,
|
|
36421
|
+
command: context.command,
|
|
36422
|
+
args: context.args,
|
|
36423
|
+
proxyConfigJson: context.proxyConfigJson
|
|
36424
|
+
});
|
|
36425
|
+
return createHash("sha256").update(identity).digest("hex");
|
|
36426
|
+
}
|
|
36427
|
+
function mergeStringEnv(...sources) {
|
|
36428
|
+
const result = {};
|
|
36429
|
+
for (const source of sources) {
|
|
36430
|
+
for (const [key, value] of Object.entries(source || {})) {
|
|
36431
|
+
if (typeof value === "string") {
|
|
36432
|
+
result[key] = value;
|
|
36433
|
+
}
|
|
36434
|
+
}
|
|
36435
|
+
}
|
|
36436
|
+
return result;
|
|
36437
|
+
}
|
|
36438
|
+
function isConnectionClosedError(error2) {
|
|
36439
|
+
return typeof error2 === "object" && error2 !== null && "code" in error2 && error2.code === ErrorCode.ConnectionClosed;
|
|
36440
|
+
}
|
|
36441
|
+
function createDefaultTransport(context) {
|
|
36442
|
+
return trackMakerChildTransport(
|
|
36443
|
+
new StdioClientTransport({
|
|
36444
|
+
command: context.command,
|
|
36445
|
+
args: context.args,
|
|
36446
|
+
env: mergeStringEnv(process.env, context.envVars),
|
|
36447
|
+
stderr: "pipe"
|
|
36448
|
+
})
|
|
36449
|
+
);
|
|
36450
|
+
}
|
|
36451
|
+
function createDefaultClient(_context, handlers) {
|
|
36452
|
+
return new Client(
|
|
36453
|
+
{ name: "taptap-maker-persistent-proxy", version: "dev" },
|
|
36454
|
+
{
|
|
36455
|
+
capabilities: {},
|
|
36456
|
+
listChanged: {
|
|
36457
|
+
tools: {
|
|
36458
|
+
onChanged: (error2, tools2) => {
|
|
36459
|
+
void handlers.onToolsChanged(error2, tools2);
|
|
36460
|
+
}
|
|
36461
|
+
}
|
|
36462
|
+
}
|
|
36463
|
+
}
|
|
36464
|
+
);
|
|
36465
|
+
}
|
|
36466
|
+
function createMakerRemoteProxyManager(options = {}) {
|
|
36467
|
+
const connections = /* @__PURE__ */ new Map();
|
|
36468
|
+
const retiredEntries = /* @__PURE__ */ new Set();
|
|
36469
|
+
const cachedTools = /* @__PURE__ */ new Map();
|
|
36470
|
+
const createClient = options.createClient || createDefaultClient;
|
|
36471
|
+
const createTransport = options.createTransport || createDefaultTransport;
|
|
36472
|
+
let closed = false;
|
|
36473
|
+
let closePromise;
|
|
36474
|
+
const closeEntry = (entry) => {
|
|
36475
|
+
if (connections.get(entry.key) === entry) {
|
|
36476
|
+
connections.delete(entry.key);
|
|
36477
|
+
}
|
|
36478
|
+
entry.retiring = true;
|
|
36479
|
+
if (entry.closePromise) {
|
|
36480
|
+
return entry.closePromise;
|
|
36481
|
+
}
|
|
36482
|
+
retiredEntries.add(entry);
|
|
36483
|
+
entry.closing = true;
|
|
36484
|
+
entry.closePromise = Promise.resolve().then(async () => await entry.client.close()).catch(() => {
|
|
36485
|
+
}).finally(() => {
|
|
36486
|
+
retiredEntries.delete(entry);
|
|
36487
|
+
});
|
|
36488
|
+
return entry.closePromise;
|
|
36489
|
+
};
|
|
36490
|
+
const retireEntry = (entry) => {
|
|
36491
|
+
if (connections.get(entry.key) === entry) {
|
|
36492
|
+
connections.delete(entry.key);
|
|
36493
|
+
}
|
|
36494
|
+
entry.retiring = true;
|
|
36495
|
+
retiredEntries.add(entry);
|
|
36496
|
+
if (entry.activeOperations > 0) {
|
|
36497
|
+
return;
|
|
36498
|
+
}
|
|
36499
|
+
void closeEntry(entry);
|
|
36500
|
+
};
|
|
36501
|
+
const releaseEntry = async (entry) => {
|
|
36502
|
+
entry.activeOperations = Math.max(0, entry.activeOperations - 1);
|
|
36503
|
+
if (entry.retiring && entry.activeOperations === 0) {
|
|
36504
|
+
await closeEntry(entry);
|
|
36505
|
+
}
|
|
36506
|
+
};
|
|
36507
|
+
const acquire = async (context) => {
|
|
36508
|
+
if (closed) {
|
|
36509
|
+
throw new Error("Maker remote proxy manager is closed.");
|
|
36510
|
+
}
|
|
36511
|
+
const key = createContextKey(context);
|
|
36512
|
+
const existing = connections.get(key);
|
|
36513
|
+
if (existing) {
|
|
36514
|
+
existing.lastUsedAt = Date.now();
|
|
36515
|
+
existing.activeOperations += 1;
|
|
36516
|
+
try {
|
|
36517
|
+
await existing.connectPromise;
|
|
36518
|
+
return existing;
|
|
36519
|
+
} catch (error2) {
|
|
36520
|
+
await releaseEntry(existing);
|
|
36521
|
+
throw error2;
|
|
36522
|
+
}
|
|
36523
|
+
}
|
|
36524
|
+
const staleProjectEntries = [...connections.entries()].filter(
|
|
36525
|
+
([entryKey, entry2]) => entryKey !== key && entry2.projectRoot === context.projectRoot
|
|
36526
|
+
);
|
|
36527
|
+
for (const [entryKey, entry2] of staleProjectEntries) {
|
|
36528
|
+
cachedTools.delete(entryKey);
|
|
36529
|
+
retireEntry(entry2);
|
|
36530
|
+
}
|
|
36531
|
+
const transport = createTransport(context);
|
|
36532
|
+
const handlers = {
|
|
36533
|
+
async onToolsChanged(error2, tools2) {
|
|
36534
|
+
var _a3, _b;
|
|
36535
|
+
if (error2 || !tools2 || ((_a3 = connections.get(key)) == null ? void 0 : _a3.client) !== client) {
|
|
36536
|
+
return;
|
|
36537
|
+
}
|
|
36538
|
+
const definitions = tools2;
|
|
36539
|
+
cachedTools.set(key, definitions);
|
|
36540
|
+
try {
|
|
36541
|
+
await ((_b = options.onToolsChanged) == null ? void 0 : _b.call(options, context, definitions));
|
|
36542
|
+
} catch {
|
|
36543
|
+
}
|
|
36544
|
+
}
|
|
36545
|
+
};
|
|
36546
|
+
const client = createClient(context, handlers);
|
|
36547
|
+
const entry = {
|
|
36548
|
+
key,
|
|
36549
|
+
projectRoot: context.projectRoot,
|
|
36550
|
+
client,
|
|
36551
|
+
transport,
|
|
36552
|
+
connectPromise: Promise.resolve(client),
|
|
36553
|
+
lastUsedAt: Date.now(),
|
|
36554
|
+
activeOperations: 1,
|
|
36555
|
+
retiring: false,
|
|
36556
|
+
closing: false
|
|
36557
|
+
};
|
|
36558
|
+
connections.set(key, entry);
|
|
36559
|
+
client.onclose = () => {
|
|
36560
|
+
if (!entry.closing && connections.get(key) === entry) {
|
|
36561
|
+
connections.delete(key);
|
|
36562
|
+
}
|
|
36563
|
+
};
|
|
36564
|
+
entry.connectPromise = client.connect(transport).then(() => client);
|
|
36565
|
+
try {
|
|
36566
|
+
await entry.connectPromise;
|
|
36567
|
+
return entry;
|
|
36568
|
+
} catch (error2) {
|
|
36569
|
+
entry.activeOperations -= 1;
|
|
36570
|
+
await closeEntry(entry);
|
|
36571
|
+
throw error2;
|
|
36572
|
+
}
|
|
36573
|
+
};
|
|
36574
|
+
const run = async (context, operation) => {
|
|
36575
|
+
const entry = await acquire(context);
|
|
36576
|
+
entry.lastUsedAt = Date.now();
|
|
36577
|
+
try {
|
|
36578
|
+
return await operation(entry.client);
|
|
36579
|
+
} catch (error2) {
|
|
36580
|
+
if (isConnectionClosedError(error2)) {
|
|
36581
|
+
await closeEntry(entry);
|
|
36582
|
+
}
|
|
36583
|
+
throw error2;
|
|
36584
|
+
} finally {
|
|
36585
|
+
await releaseEntry(entry);
|
|
36586
|
+
}
|
|
36587
|
+
};
|
|
36588
|
+
return {
|
|
36589
|
+
async listTools(context) {
|
|
36590
|
+
const key = createContextKey(context);
|
|
36591
|
+
const result = await run(context, async (client) => await client.listTools());
|
|
36592
|
+
const tools2 = result.tools;
|
|
36593
|
+
cachedTools.set(key, tools2);
|
|
36594
|
+
return tools2;
|
|
36595
|
+
},
|
|
36596
|
+
async callTool(context, request, requestOptions) {
|
|
36597
|
+
return await run(
|
|
36598
|
+
context,
|
|
36599
|
+
async (client) => await client.callTool(request, void 0, requestOptions)
|
|
36600
|
+
);
|
|
36601
|
+
},
|
|
36602
|
+
getCachedTools(context) {
|
|
36603
|
+
return cachedTools.get(createContextKey(context));
|
|
36604
|
+
},
|
|
36605
|
+
async closeAll() {
|
|
36606
|
+
if (closePromise) {
|
|
36607
|
+
return await closePromise;
|
|
36608
|
+
}
|
|
36609
|
+
closed = true;
|
|
36610
|
+
const entries = /* @__PURE__ */ new Set([...connections.values(), ...retiredEntries]);
|
|
36611
|
+
connections.clear();
|
|
36612
|
+
retiredEntries.clear();
|
|
36613
|
+
closePromise = Promise.allSettled(
|
|
36614
|
+
[...entries].map(async (entry) => await closeEntry(entry))
|
|
36615
|
+
).then(() => void 0);
|
|
36616
|
+
return await closePromise;
|
|
36617
|
+
}
|
|
36618
|
+
};
|
|
36619
|
+
}
|
|
36620
|
+
|
|
36409
36621
|
// src/maker/server/mcp.ts
|
|
36410
|
-
var VERSION = true ? "0.0.
|
|
36622
|
+
var VERSION = true ? "0.0.28-beta.2" : "dev";
|
|
36411
36623
|
var DEFAULT_BUILD_TIMEOUT_MS = 10 * 60 * 1e3;
|
|
36412
36624
|
var DEFAULT_PROXY_RETRY_ATTEMPTS = 5;
|
|
36413
36625
|
var DEFAULT_PROXY_RETRY_DELAY_MS = 30 * 1e3;
|
|
@@ -36580,6 +36792,7 @@ var resources = [
|
|
|
36580
36792
|
}
|
|
36581
36793
|
];
|
|
36582
36794
|
async function listMakerTools(options) {
|
|
36795
|
+
var _a3;
|
|
36583
36796
|
let remoteTools = [];
|
|
36584
36797
|
try {
|
|
36585
36798
|
const context = await resolveMakerProjectContext({
|
|
@@ -36592,9 +36805,19 @@ async function listMakerTools(options) {
|
|
|
36592
36805
|
serverUrl: options.serverUrl,
|
|
36593
36806
|
env: options.env
|
|
36594
36807
|
}));
|
|
36595
|
-
|
|
36596
|
-
|
|
36597
|
-
|
|
36808
|
+
try {
|
|
36809
|
+
remoteTools = filterExposedRemoteProxyTools(await listedRemoteTools()).map(
|
|
36810
|
+
decorateRemoteProxyToolDefinition
|
|
36811
|
+
);
|
|
36812
|
+
} catch (error2) {
|
|
36813
|
+
const cachedTools = (_a3 = options.getCachedRemoteTools) == null ? void 0 : _a3.call(options);
|
|
36814
|
+
if (!cachedTools) {
|
|
36815
|
+
throw error2;
|
|
36816
|
+
}
|
|
36817
|
+
remoteTools = filterExposedRemoteProxyTools(cachedTools).map(
|
|
36818
|
+
decorateRemoteProxyToolDefinition
|
|
36819
|
+
);
|
|
36820
|
+
}
|
|
36598
36821
|
} catch (error2) {
|
|
36599
36822
|
if (isMakerProjectContextAmbiguousError(error2)) {
|
|
36600
36823
|
logLifecycleEvent("maker-tools-list-roots-ambiguous", String(error2));
|
|
@@ -36724,37 +36947,33 @@ function remoteProxyToolGuidance(toolName) {
|
|
|
36724
36947
|
case "generate_image":
|
|
36725
36948
|
case "batch_generate_images":
|
|
36726
36949
|
return [
|
|
36727
|
-
"**Maker asset workflow hint:**
|
|
36950
|
+
"**Maker asset workflow hint:** Successful results are downloaded into the Maker project and recorded with remote mapping for later edits or video references.",
|
|
36728
36951
|
localMediaSizeHint,
|
|
36729
36952
|
failurePolicy
|
|
36730
36953
|
].join(" ");
|
|
36731
36954
|
case "edit_image":
|
|
36732
|
-
return [
|
|
36733
|
-
"**Maker asset workflow hint:** In a bound Maker project, prefer this Maker MCP proxy tool for image editing.",
|
|
36734
|
-
localMediaSizeHint,
|
|
36735
|
-
failurePolicy
|
|
36736
|
-
].join(" ");
|
|
36955
|
+
return [localMediaSizeHint, failurePolicy].join(" ");
|
|
36737
36956
|
case "create_video_task":
|
|
36738
36957
|
return [
|
|
36739
|
-
"**Maker asset workflow hint:**
|
|
36958
|
+
"**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.",
|
|
36740
36959
|
localMediaSizeHint,
|
|
36741
36960
|
failurePolicy
|
|
36742
36961
|
].join(" ");
|
|
36743
36962
|
case "query_video_task":
|
|
36744
36963
|
return [
|
|
36745
|
-
"**Maker asset workflow hint:**
|
|
36964
|
+
"**Maker asset workflow hint:** Refreshing video task status releases completed task quota and materializes successful video results into the Maker project.",
|
|
36746
36965
|
"Use this Maker MCP proxy tool to refresh video task status when create_video_task returns a task_id or reports video concurrency limits.",
|
|
36747
36966
|
failurePolicy
|
|
36748
36967
|
].join(" ");
|
|
36749
36968
|
case "text_to_music":
|
|
36750
36969
|
return [
|
|
36751
|
-
"**Maker asset workflow hint:**
|
|
36970
|
+
"**Maker asset workflow hint:** Generated audio can be materialized into the project and recorded for later Maker references.",
|
|
36752
36971
|
failurePolicy
|
|
36753
36972
|
].join(" ");
|
|
36754
36973
|
case "text_to_sound_effect":
|
|
36755
36974
|
case "batch_sound_effects":
|
|
36756
36975
|
return [
|
|
36757
|
-
"**Maker asset workflow hint:**
|
|
36976
|
+
"**Maker asset workflow hint:** Successful audio is materialized in its original format under assets/audio/sfx and recorded for later Maker references.",
|
|
36758
36977
|
failurePolicy
|
|
36759
36978
|
].join(" ");
|
|
36760
36979
|
case "text_to_dialogue":
|
|
@@ -36818,7 +37037,7 @@ async function listRemoteProxyTools(options) {
|
|
|
36818
37037
|
new StdioClientTransport({
|
|
36819
37038
|
command: proxy.command,
|
|
36820
37039
|
args: proxy.args,
|
|
36821
|
-
env:
|
|
37040
|
+
env: mergeStringEnv2(process.env, proxy.envVars),
|
|
36822
37041
|
stderr: "pipe"
|
|
36823
37042
|
})
|
|
36824
37043
|
);
|
|
@@ -36841,66 +37060,73 @@ async function listRemoteProxyTools(options) {
|
|
|
36841
37060
|
}
|
|
36842
37061
|
}
|
|
36843
37062
|
async function callRemoteProxyTool(options) {
|
|
36844
|
-
const
|
|
37063
|
+
const createProxy = () => createRemoteProxyContext({
|
|
36845
37064
|
targetDir: options.targetDir,
|
|
36846
37065
|
exposedTools: MAKER_REMOTE_PROXY_EXPOSED_TOOL_NAMES
|
|
36847
37066
|
});
|
|
37067
|
+
let proxy = createProxy();
|
|
36848
37068
|
const finalArgs = await prepareRemoteProxyToolArgsAsync({
|
|
36849
37069
|
toolName: options.name,
|
|
36850
37070
|
targetDir: proxy.projectRoot,
|
|
36851
37071
|
args: options.args
|
|
36852
37072
|
});
|
|
36853
|
-
const
|
|
36854
|
-
|
|
36855
|
-
|
|
36856
|
-
|
|
36857
|
-
|
|
36858
|
-
|
|
36859
|
-
|
|
36860
|
-
|
|
36861
|
-
|
|
36862
|
-
|
|
36863
|
-
|
|
37073
|
+
const requestOptions = createRemoteProxyCallToolOptions(options.progressToken, options.extra);
|
|
37074
|
+
const callTool = options.manager ? async () => {
|
|
37075
|
+
proxy = createProxy();
|
|
37076
|
+
return await options.manager.callTool(
|
|
37077
|
+
proxy,
|
|
37078
|
+
{ name: options.name, arguments: finalArgs },
|
|
37079
|
+
requestOptions
|
|
37080
|
+
);
|
|
37081
|
+
} : async () => {
|
|
37082
|
+
const transport = trackMakerChildTransport(
|
|
37083
|
+
new StdioClientTransport({
|
|
37084
|
+
command: proxy.command,
|
|
37085
|
+
args: proxy.args,
|
|
37086
|
+
env: mergeStringEnv2(process.env, proxy.envVars),
|
|
37087
|
+
stderr: "pipe"
|
|
37088
|
+
})
|
|
37089
|
+
);
|
|
37090
|
+
const client = new Client(
|
|
37091
|
+
{
|
|
37092
|
+
name: "taptap-maker-tool-call-forwarder",
|
|
37093
|
+
version: VERSION
|
|
37094
|
+
},
|
|
37095
|
+
{
|
|
37096
|
+
capabilities: {}
|
|
37097
|
+
}
|
|
37098
|
+
);
|
|
37099
|
+
try {
|
|
37100
|
+
await client.connect(transport);
|
|
37101
|
+
return await client.callTool(
|
|
36864
37102
|
{
|
|
36865
|
-
name:
|
|
36866
|
-
|
|
37103
|
+
name: options.name,
|
|
37104
|
+
arguments: finalArgs
|
|
36867
37105
|
},
|
|
37106
|
+
void 0,
|
|
36868
37107
|
{
|
|
36869
|
-
|
|
37108
|
+
...requestOptions
|
|
36870
37109
|
}
|
|
36871
37110
|
);
|
|
36872
|
-
|
|
36873
|
-
|
|
36874
|
-
|
|
36875
|
-
{
|
|
36876
|
-
name: options.name,
|
|
36877
|
-
arguments: finalArgs
|
|
36878
|
-
},
|
|
36879
|
-
void 0,
|
|
36880
|
-
{
|
|
36881
|
-
...createRemoteProxyCallToolOptions(options.progressToken, options.extra)
|
|
36882
|
-
}
|
|
36883
|
-
);
|
|
36884
|
-
} finally {
|
|
36885
|
-
await client.close().catch(() => {
|
|
36886
|
-
});
|
|
36887
|
-
}
|
|
36888
|
-
},
|
|
36889
|
-
{
|
|
36890
|
-
onRetry: options.progressToken ? (event) => {
|
|
36891
|
-
options.extra.sendNotification({
|
|
36892
|
-
method: "notifications/progress",
|
|
36893
|
-
params: {
|
|
36894
|
-
progressToken: options.progressToken,
|
|
36895
|
-
progress: event.attempt,
|
|
36896
|
-
total: event.attempts,
|
|
36897
|
-
message: event.message
|
|
36898
|
-
}
|
|
36899
|
-
}).catch(() => {
|
|
36900
|
-
});
|
|
36901
|
-
} : void 0
|
|
37111
|
+
} finally {
|
|
37112
|
+
await client.close().catch(() => {
|
|
37113
|
+
});
|
|
36902
37114
|
}
|
|
36903
|
-
|
|
37115
|
+
};
|
|
37116
|
+
const result = await retryMakerProxyOperation(callTool, {
|
|
37117
|
+
onRetry: options.progressToken ? (event) => {
|
|
37118
|
+
options.extra.sendNotification({
|
|
37119
|
+
method: "notifications/progress",
|
|
37120
|
+
params: {
|
|
37121
|
+
progressToken: options.progressToken,
|
|
37122
|
+
progress: event.attempt,
|
|
37123
|
+
total: event.attempts,
|
|
37124
|
+
message: event.message
|
|
37125
|
+
}
|
|
37126
|
+
}).catch(() => {
|
|
37127
|
+
});
|
|
37128
|
+
} : void 0
|
|
37129
|
+
});
|
|
36904
37130
|
return await materializeRemoteProxyToolAssets({
|
|
36905
37131
|
toolName: options.name,
|
|
36906
37132
|
targetDir: proxy.projectRoot,
|
|
@@ -36954,18 +37180,46 @@ async function startMakerMcpServer() {
|
|
|
36954
37180
|
},
|
|
36955
37181
|
{
|
|
36956
37182
|
capabilities: {
|
|
36957
|
-
tools: {},
|
|
37183
|
+
tools: { listChanged: true },
|
|
36958
37184
|
resources: {}
|
|
36959
37185
|
},
|
|
36960
37186
|
instructions: MAKER_CAPABILITY_ROUTING_INDEX
|
|
36961
37187
|
}
|
|
36962
37188
|
);
|
|
36963
37189
|
const listClientRoots = createServerClientRootsProvider(server);
|
|
37190
|
+
const remoteProxyManager = createMakerRemoteProxyManager({
|
|
37191
|
+
onToolsChanged: async (_context, _definitions) => {
|
|
37192
|
+
try {
|
|
37193
|
+
await server.notification({
|
|
37194
|
+
method: "notifications/tools/list_changed",
|
|
37195
|
+
params: {}
|
|
37196
|
+
});
|
|
37197
|
+
} catch (error2) {
|
|
37198
|
+
logLifecycleEvent("maker-tools-list-changed-notification-failed", String(error2));
|
|
37199
|
+
}
|
|
37200
|
+
}
|
|
37201
|
+
});
|
|
36964
37202
|
const startupReportedProjects = /* @__PURE__ */ new Set();
|
|
36965
37203
|
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
36966
37204
|
const contextPromise = resolveMakerMcpTrackingContext({ listClientRoots });
|
|
36967
37205
|
void reportMakerMcpStartupFromPromise(contextPromise, startupReportedProjects);
|
|
36968
|
-
|
|
37206
|
+
let context;
|
|
37207
|
+
try {
|
|
37208
|
+
const resolved = await resolveMakerProjectContext({
|
|
37209
|
+
listClientRoots,
|
|
37210
|
+
allowFallbackOnAmbiguousRoots: false
|
|
37211
|
+
});
|
|
37212
|
+
context = createRemoteProxyContext({
|
|
37213
|
+
targetDir: resolved.targetDir,
|
|
37214
|
+
exposedTools: MAKER_REMOTE_PROXY_EXPOSED_TOOL_NAMES
|
|
37215
|
+
});
|
|
37216
|
+
} catch {
|
|
37217
|
+
}
|
|
37218
|
+
return listMakerTools({
|
|
37219
|
+
listClientRoots,
|
|
37220
|
+
listRemoteTools: context ? () => remoteProxyManager.listTools(context) : void 0,
|
|
37221
|
+
getCachedRemoteTools: context ? () => remoteProxyManager.getCachedTools(context) : void 0
|
|
37222
|
+
});
|
|
36969
37223
|
});
|
|
36970
37224
|
server.setRequestHandler(ListResourcesRequestSchema, async () => {
|
|
36971
37225
|
const contextPromise = resolveMakerMcpTrackingContext({ listClientRoots });
|
|
@@ -36986,7 +37240,7 @@ async function startMakerMcpServer() {
|
|
|
36986
37240
|
{
|
|
36987
37241
|
uri,
|
|
36988
37242
|
mimeType: "text/plain",
|
|
36989
|
-
text: uri === MAKER_ADS_INTEGRATION_GUIDE_URI ? formatMakerAdsIntegrationGuide() : await formatStatus({ listClientRoots })
|
|
37243
|
+
text: uri === MAKER_ADS_INTEGRATION_GUIDE_URI ? formatMakerAdsIntegrationGuide() : await formatStatus({ listClientRoots, remoteProxyManager })
|
|
36990
37244
|
}
|
|
36991
37245
|
]
|
|
36992
37246
|
};
|
|
@@ -37028,7 +37282,8 @@ async function startMakerMcpServer() {
|
|
|
37028
37282
|
text: await formatStatus({
|
|
37029
37283
|
targetDir: args.target_dir,
|
|
37030
37284
|
skipRemoteSync: args.skip_remote_sync,
|
|
37031
|
-
listClientRoots
|
|
37285
|
+
listClientRoots,
|
|
37286
|
+
remoteProxyManager
|
|
37032
37287
|
})
|
|
37033
37288
|
}
|
|
37034
37289
|
]
|
|
@@ -37067,6 +37322,7 @@ async function startMakerMcpServer() {
|
|
|
37067
37322
|
message: args.message,
|
|
37068
37323
|
files: args.files,
|
|
37069
37324
|
confirmRemoteBuildWithoutSubmit: args.confirm_remote_build_without_submit,
|
|
37325
|
+
remoteProxyManager,
|
|
37070
37326
|
onProgress: progressReporter.report
|
|
37071
37327
|
});
|
|
37072
37328
|
progressSummary = progressReporter.finish();
|
|
@@ -37142,7 +37398,8 @@ async function startMakerMcpServer() {
|
|
|
37142
37398
|
name,
|
|
37143
37399
|
args: remoteArgs,
|
|
37144
37400
|
progressToken: (_b = request.params._meta) == null ? void 0 : _b.progressToken,
|
|
37145
|
-
extra
|
|
37401
|
+
extra,
|
|
37402
|
+
manager: remoteProxyManager
|
|
37146
37403
|
});
|
|
37147
37404
|
void reportMakerMcpActivityFromPromise(contextPromise, {
|
|
37148
37405
|
toolName: name,
|
|
@@ -37175,7 +37432,7 @@ async function startMakerMcpServer() {
|
|
|
37175
37432
|
});
|
|
37176
37433
|
const transport = new StdioServerTransport();
|
|
37177
37434
|
await server.connect(transport);
|
|
37178
|
-
installMakerServerExitHandlers();
|
|
37435
|
+
installMakerServerExitHandlers(remoteProxyManager);
|
|
37179
37436
|
}
|
|
37180
37437
|
async function resolveMakerMcpTrackingContext(options) {
|
|
37181
37438
|
var _a3, _b;
|
|
@@ -37227,7 +37484,7 @@ async function reportMakerMcpStartupFromPromise(contextPromise, reportedProjects
|
|
|
37227
37484
|
}
|
|
37228
37485
|
}
|
|
37229
37486
|
var MAKER_SERVER_SHUTDOWN_TIMEOUT_MS = 3e3;
|
|
37230
|
-
function installMakerServerExitHandlers() {
|
|
37487
|
+
function installMakerServerExitHandlers(remoteProxyManager) {
|
|
37231
37488
|
let exiting = false;
|
|
37232
37489
|
const shutdown = async (source) => {
|
|
37233
37490
|
if (exiting) {
|
|
@@ -37240,7 +37497,13 @@ function installMakerServerExitHandlers() {
|
|
|
37240
37497
|
const timer = setTimeout(resolve, MAKER_SERVER_SHUTDOWN_TIMEOUT_MS);
|
|
37241
37498
|
(_a3 = timer.unref) == null ? void 0 : _a3.call(timer);
|
|
37242
37499
|
});
|
|
37243
|
-
await Promise.race([
|
|
37500
|
+
await Promise.race([
|
|
37501
|
+
Promise.allSettled([
|
|
37502
|
+
(remoteProxyManager == null ? void 0 : remoteProxyManager.closeAll()) || Promise.resolve(),
|
|
37503
|
+
closeTrackedMakerChildTransports()
|
|
37504
|
+
]).then(() => void 0),
|
|
37505
|
+
timeout
|
|
37506
|
+
]);
|
|
37244
37507
|
process.exit(0);
|
|
37245
37508
|
};
|
|
37246
37509
|
process.stdin.once("end", () => {
|
|
@@ -37346,7 +37609,10 @@ async function formatStatus(options = {}) {
|
|
|
37346
37609
|
"",
|
|
37347
37610
|
remoteSyncText,
|
|
37348
37611
|
"",
|
|
37349
|
-
identify.projectRoot ? await formatMakerProxyToolsStatusSafely({
|
|
37612
|
+
identify.projectRoot ? await formatMakerProxyToolsStatusSafely({
|
|
37613
|
+
targetDir: identify.projectRoot,
|
|
37614
|
+
remoteProxyManager: options.remoteProxyManager
|
|
37615
|
+
}) : "",
|
|
37350
37616
|
"",
|
|
37351
37617
|
formatAuthNextStep({ hasPat: Boolean(pat), isProjectBound: Boolean(identify.projectRoot) }),
|
|
37352
37618
|
"",
|
|
@@ -37426,7 +37692,12 @@ function formatMakerToolRegistrationCwdStatus(options) {
|
|
|
37426
37692
|
}
|
|
37427
37693
|
async function formatMakerProxyToolsStatusSafely(options) {
|
|
37428
37694
|
try {
|
|
37429
|
-
const listedRemoteTools = options.listRemoteTools ?? (() =>
|
|
37695
|
+
const listedRemoteTools = options.listRemoteTools ?? (options.remoteProxyManager ? async () => options.remoteProxyManager.listTools(
|
|
37696
|
+
createRemoteProxyContext({
|
|
37697
|
+
targetDir: options.targetDir,
|
|
37698
|
+
exposedTools: MAKER_REMOTE_PROXY_EXPOSED_TOOL_NAMES
|
|
37699
|
+
})
|
|
37700
|
+
) : () => listRemoteProxyTools({
|
|
37430
37701
|
targetDir: options.targetDir
|
|
37431
37702
|
}));
|
|
37432
37703
|
const availableTools = filterExposedRemoteProxyTools(await listedRemoteTools()).map(
|
|
@@ -38193,71 +38464,80 @@ async function runRemoteBuildCurrentDirectory(options, targetDir) {
|
|
|
38193
38464
|
startRuntimeLogWatch: options.startRuntimeLogWatch
|
|
38194
38465
|
});
|
|
38195
38466
|
}
|
|
38196
|
-
const
|
|
38467
|
+
const createProxy = () => createRemoteProxyContext({
|
|
38197
38468
|
targetDir,
|
|
38198
38469
|
serverUrl: options.serverUrl,
|
|
38199
38470
|
env: options.env
|
|
38200
38471
|
});
|
|
38472
|
+
let proxy = createProxy();
|
|
38201
38473
|
const buildArgs = createBuildArgs(proxy.projectRoot, options);
|
|
38202
38474
|
const timeoutMs = options.timeoutMs || DEFAULT_BUILD_TIMEOUT_MS;
|
|
38203
|
-
const
|
|
38204
|
-
|
|
38205
|
-
|
|
38206
|
-
|
|
38207
|
-
|
|
38208
|
-
|
|
38209
|
-
|
|
38210
|
-
|
|
38211
|
-
|
|
38212
|
-
|
|
38213
|
-
|
|
38475
|
+
const requestOptions = {
|
|
38476
|
+
timeout: timeoutMs,
|
|
38477
|
+
resetTimeoutOnProgress: true,
|
|
38478
|
+
onprogress: (progress) => {
|
|
38479
|
+
var _a3;
|
|
38480
|
+
(_a3 = options.onProgress) == null ? void 0 : _a3.call(options, {
|
|
38481
|
+
progress: progress.progress,
|
|
38482
|
+
total: progress.total,
|
|
38483
|
+
phase: "remote_build",
|
|
38484
|
+
message: progress.message || "Remote Maker build progress"
|
|
38485
|
+
});
|
|
38486
|
+
}
|
|
38487
|
+
};
|
|
38488
|
+
const callBuild = options.remoteProxyManager ? async () => {
|
|
38489
|
+
proxy = createProxy();
|
|
38490
|
+
return await options.remoteProxyManager.callTool(
|
|
38491
|
+
proxy,
|
|
38492
|
+
{ name: "build", arguments: buildArgs },
|
|
38493
|
+
requestOptions
|
|
38494
|
+
);
|
|
38495
|
+
} : async () => {
|
|
38496
|
+
const transport = trackMakerChildTransport(
|
|
38497
|
+
new StdioClientTransport({
|
|
38498
|
+
command: proxy.command,
|
|
38499
|
+
args: proxy.args,
|
|
38500
|
+
env: mergeStringEnv2(process.env, proxy.envVars),
|
|
38501
|
+
stderr: "pipe"
|
|
38502
|
+
})
|
|
38503
|
+
);
|
|
38504
|
+
const client = new Client(
|
|
38505
|
+
{
|
|
38506
|
+
name: "taptap-maker-build-forwarder",
|
|
38507
|
+
version: VERSION
|
|
38508
|
+
},
|
|
38509
|
+
{
|
|
38510
|
+
capabilities: {}
|
|
38511
|
+
}
|
|
38512
|
+
);
|
|
38513
|
+
try {
|
|
38514
|
+
await client.connect(transport);
|
|
38515
|
+
return await client.callTool(
|
|
38214
38516
|
{
|
|
38215
|
-
name: "
|
|
38216
|
-
|
|
38517
|
+
name: "build",
|
|
38518
|
+
arguments: buildArgs
|
|
38217
38519
|
},
|
|
38520
|
+
void 0,
|
|
38218
38521
|
{
|
|
38219
|
-
|
|
38522
|
+
...requestOptions
|
|
38220
38523
|
}
|
|
38221
38524
|
);
|
|
38222
|
-
|
|
38223
|
-
|
|
38224
|
-
|
|
38225
|
-
{
|
|
38226
|
-
name: "build",
|
|
38227
|
-
arguments: buildArgs
|
|
38228
|
-
},
|
|
38229
|
-
void 0,
|
|
38230
|
-
{
|
|
38231
|
-
timeout: timeoutMs,
|
|
38232
|
-
resetTimeoutOnProgress: true,
|
|
38233
|
-
onprogress: (progress) => {
|
|
38234
|
-
var _a3;
|
|
38235
|
-
(_a3 = options.onProgress) == null ? void 0 : _a3.call(options, {
|
|
38236
|
-
progress: progress.progress,
|
|
38237
|
-
total: progress.total,
|
|
38238
|
-
phase: "remote_build",
|
|
38239
|
-
message: progress.message || "Remote Maker build progress"
|
|
38240
|
-
});
|
|
38241
|
-
}
|
|
38242
|
-
}
|
|
38243
|
-
);
|
|
38244
|
-
} finally {
|
|
38245
|
-
await client.close().catch(() => {
|
|
38246
|
-
});
|
|
38247
|
-
}
|
|
38248
|
-
},
|
|
38249
|
-
{
|
|
38250
|
-
onRetry: (event) => {
|
|
38251
|
-
var _a3;
|
|
38252
|
-
(_a3 = options.onProgress) == null ? void 0 : _a3.call(options, {
|
|
38253
|
-
progress: event.attempt,
|
|
38254
|
-
total: event.attempts,
|
|
38255
|
-
phase: "remote_build",
|
|
38256
|
-
message: event.message
|
|
38257
|
-
});
|
|
38258
|
-
}
|
|
38525
|
+
} finally {
|
|
38526
|
+
await client.close().catch(() => {
|
|
38527
|
+
});
|
|
38259
38528
|
}
|
|
38260
|
-
|
|
38529
|
+
};
|
|
38530
|
+
const result = await retryMakerProxyOperation(callBuild, {
|
|
38531
|
+
onRetry: (event) => {
|
|
38532
|
+
var _a3;
|
|
38533
|
+
(_a3 = options.onProgress) == null ? void 0 : _a3.call(options, {
|
|
38534
|
+
progress: event.attempt,
|
|
38535
|
+
total: event.attempts,
|
|
38536
|
+
phase: "remote_build",
|
|
38537
|
+
message: event.message
|
|
38538
|
+
});
|
|
38539
|
+
}
|
|
38540
|
+
});
|
|
38261
38541
|
if (isRemoteToolError(result)) {
|
|
38262
38542
|
throw new Error(formatRemoteToolResult(result));
|
|
38263
38543
|
}
|
|
@@ -38379,7 +38659,7 @@ async function startRuntimeLogWatch(buildResult) {
|
|
|
38379
38659
|
const child = spawn4(command.command, command.args, {
|
|
38380
38660
|
cwd: buildResult.projectRoot,
|
|
38381
38661
|
detached: true,
|
|
38382
|
-
env:
|
|
38662
|
+
env: mergeStringEnv2(process.env, { TAPTAP_MCP_ENV: buildResult.env }),
|
|
38383
38663
|
stdio: ["ignore", outFd, errFd],
|
|
38384
38664
|
windowsHide: true
|
|
38385
38665
|
});
|
|
@@ -38637,7 +38917,7 @@ function createRemoteRuntimeLogClient(proxy, timeoutMs = DEFAULT_TOOL_CALL_TIMEO
|
|
|
38637
38917
|
new HiddenStdioClientTransport({
|
|
38638
38918
|
command: proxy.command,
|
|
38639
38919
|
args: proxy.args,
|
|
38640
|
-
env:
|
|
38920
|
+
env: mergeStringEnv2(process.env, proxy.envVars),
|
|
38641
38921
|
stderr: "pipe"
|
|
38642
38922
|
})
|
|
38643
38923
|
));
|
|
@@ -38731,7 +39011,7 @@ function createBuildArgs(projectRoot, options) {
|
|
|
38731
39011
|
}
|
|
38732
39012
|
return buildArgs;
|
|
38733
39013
|
}
|
|
38734
|
-
function
|
|
39014
|
+
function mergeStringEnv2(...sources) {
|
|
38735
39015
|
const result = {};
|
|
38736
39016
|
for (const source of sources) {
|
|
38737
39017
|
if (!source) {
|
|
@@ -39472,7 +39752,7 @@ function uniqueStrings(values) {
|
|
|
39472
39752
|
}
|
|
39473
39753
|
|
|
39474
39754
|
// src/maker/cli/commands.ts
|
|
39475
|
-
var VERSION2 = true ? "0.0.
|
|
39755
|
+
var VERSION2 = true ? "0.0.28-beta.2" : "dev";
|
|
39476
39756
|
var DEFAULT_MCP_NAME = "taptap-maker";
|
|
39477
39757
|
var MAKER_NPM_PACKAGE = "@taptap/maker";
|
|
39478
39758
|
var TWO_PART_COMMANDS = /* @__PURE__ */ new Set(["pat", "mcp", "dev-kit", "logs", "python", "lua-lsp", "agents"]);
|
|
@@ -43554,7 +43834,7 @@ var TapTapMCPProxy = class {
|
|
|
43554
43834
|
this.client = this.createClient();
|
|
43555
43835
|
this.server = new Server(
|
|
43556
43836
|
{ name: "taptap-proxy", version: "1.0.0" },
|
|
43557
|
-
{ capabilities: { tools: {}, resources: {} } }
|
|
43837
|
+
{ capabilities: { tools: { listChanged: true }, resources: {} } }
|
|
43558
43838
|
);
|
|
43559
43839
|
}
|
|
43560
43840
|
createClient() {
|
package/package.json
CHANGED
|
@@ -146,16 +146,10 @@ selected files.
|
|
|
146
146
|
|
|
147
147
|
## Maker Creative Asset Tool Policy
|
|
148
148
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
This guidance helps users prefer Maker-managed tools for Maker game assets.
|
|
155
|
-
|
|
156
|
-
- Prefer Maker proxy tools for Maker project asset requests when the Maker proxy tool is callable.
|
|
157
|
-
- If the required Maker proxy tool is not exposed in the current AI session, tell the user that
|
|
158
|
-
Maker proxy tools are unavailable in this session.
|
|
149
|
+
Maker MCP provides image, video, music, sound-effect, dialogue/voice, and 3D asset tools for Maker
|
|
150
|
+
projects. These tools keep generated files inside the project, record remote mappings for later
|
|
151
|
+
editing, and can forward resolvable local reference media as data URLs when the remote tool schema
|
|
152
|
+
supports it. Follow the selected tool schema when one of these tools is used.
|
|
159
153
|
|
|
160
154
|
- Use `generate_image` for one image.
|
|
161
155
|
- Use `batch_generate_images` for multiple images.
|
|
@@ -204,9 +198,12 @@ This guidance helps users prefer Maker-managed tools for Maker game assets.
|
|
|
204
198
|
`missing_taptap_identity`, follow that `next_action` before using tools that depend on remote
|
|
205
199
|
project config. `.project` directory presence alone is never proof of initialization; empty,
|
|
206
200
|
voice-mapping-only, and primary-config-incomplete directories remain buildable new-project state.
|
|
207
|
-
- For online player feedback,
|
|
208
|
-
screenshots,
|
|
209
|
-
`get_debug_feedbacks` tool when
|
|
201
|
+
- For the current Maker game's online player feedback, including player-submitted game bug reports,
|
|
202
|
+
real-device game logs, or screenshots, or server/Lua logs for a specified game session,
|
|
203
|
+
call the Maker proxy `get_debug_feedbacks` tool only when it is exposed by the current Maker tool list.
|
|
204
|
+
This includes 当前 Maker 游戏的玩家反馈、
|
|
205
|
+
玩家提交的游戏故障、真机游戏日志或截图、指定游戏会话的服务端/Lua 日志. It does not include
|
|
206
|
+
AI client, plugin, or other product feedback.
|
|
210
207
|
- Use local runtime log files only for the current local build/runtime session. Do not use local logs
|
|
211
208
|
as a substitute for remote player-submitted feedback.
|
|
212
209
|
- Before `edit_image`, resolve dragged or referenced images to a local project image path or CDN
|
|
@@ -218,8 +215,6 @@ This guidance helps users prefer Maker-managed tools for Maker game assets.
|
|
|
218
215
|
Generated assets should be saved by Maker MCP under `assets/image`, `assets/video`, or
|
|
219
216
|
`assets/audio`. `create_3d_asset` local runtime `model_files` instructions are materialized under
|
|
220
217
|
`assets/model`; use `local_delivery` for the usable model path and `preview_assets` for local review images.
|
|
221
|
-
Do not prefer client-native image generation when the user is asking for Maker game assets in a
|
|
222
|
-
bound project.
|
|
223
218
|
|
|
224
219
|
## Project Detection
|
|
225
220
|
|
|
@@ -337,7 +332,7 @@ suggesting repeated restarts:
|
|
|
337
332
|
MCP Roots, and actual process cwd evidence instead.
|
|
338
333
|
|
|
339
334
|
When Maker proxy tools are missing, explain that this is likely a session/configuration problem and
|
|
340
|
-
that
|
|
335
|
+
that requests specifically requiring those tools cannot use them in the current session.
|
|
341
336
|
|
|
342
337
|
## Initialization Workflow
|
|
343
338
|
|