@pascal-app/mcp 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server.d.ts +2 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +1 -0
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +2 -1
- package/dist/tools/shared-tools.d.ts +7 -0
- package/dist/tools/shared-tools.d.ts.map +1 -1
- package/dist/tools/shared-tools.js +19 -5
- package/package.json +4 -4
package/dist/server.d.ts
CHANGED
|
@@ -46,6 +46,8 @@ export type CreatePascalMcpServerOptions = {
|
|
|
46
46
|
sceneViews?: SceneViewHost;
|
|
47
47
|
/** Reads catalog items' pictures and surfaces before view_assets and paint. */
|
|
48
48
|
assetViews?: PlanReadingHosts['assetViews'];
|
|
49
|
+
/** A pause after each call of a run_batch, for a host with a scene of its own per request. */
|
|
50
|
+
betweenBatchCalls?: PlanReadingHosts['betweenBatchCalls'];
|
|
49
51
|
/** Lines the host adds to what a client reads at connect (the person's own settings). */
|
|
50
52
|
instructions?: string;
|
|
51
53
|
};
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAKV,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAG7B,MAAM,mCAAmC,CAAA;AAE1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,cAAc,CAAA;AAG1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAA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,CAAA;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,+FAA+F;IAC/F,eAAe,CAAC,EAAE,kBAAkB,CAAA;IACpC,kGAAkG;IAClG,YAAY,CAAC,EAAE,eAAe,CAAA;IAC9B,4FAA4F;IAC5F,QAAQ,CAAC,EAAE,qBAAqB,CAAA;IAChC,yFAAyF;IACzF,KAAK,CAAC,EAAE,uBAAuB,CAAA;IAC/B,8FAA8F;IAC9F,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B,4FAA4F;IAC5F,UAAU,CAAC,EAAE,aAAa,CAAA;IAC1B,+EAA+E;IAC/E,UAAU,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAA;IAC3C,8FAA8F;IAC9F,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,CAAA;IACzD,yFAAyF;IACzF,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,4BAA4B,GAAG,SAAS,CA+BnF"}
|
package/dist/server.js
CHANGED
package/dist/tools/index.d.ts
CHANGED
|
@@ -23,5 +23,5 @@ export type ToolHosts = PlanReadingHosts & {
|
|
|
23
23
|
readFile?: ProjectFileReader;
|
|
24
24
|
sceneViews?: SceneViewHost;
|
|
25
25
|
};
|
|
26
|
-
export declare function registerTools(server: McpServer, operations: SceneOperations, { catalog, geometryScripts, objectMakers, readFile, sceneViews, assetViews }?: ToolHosts): void;
|
|
26
|
+
export declare function registerTools(server: McpServer, operations: SceneOperations, { catalog, geometryScripts, objectMakers, readFile, sceneViews, assetViews, betweenBatchCalls, }?: ToolHosts): void;
|
|
27
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CA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a,EAAE,MAAM,cAAc,CAAA;AAEpE;;;;;;;GAOG;AACH,gFAAgF;AAChF,MAAM,MAAM,SAAS,GAAG,gBAAgB,GAAG;IACzC,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,eAAe,CAAC,EAAE,kBAAkB,CAAA;IACpC,gGAAgG;IAChG,YAAY,CAAC,EAAE,eAAe,CAAA;IAC9B,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B,UAAU,CAAC,EAAE,aAAa,CAAA;CAC3B,CAAA;AAED,wBAAgB,aAAa,CAC3B,MAAM,EAAE,SAAS,EACjB,UAAU,EAAE,eAAe,EAC3B,EACE,OAAO,EACP,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,UAAU,EACV,iBAAiB,GAClB,GAAE,SAAc,GAChB,IAAI,CA6BN"}
|
package/dist/tools/index.js
CHANGED
|
@@ -19,10 +19,11 @@ import { registerTemplateTools } from './templates/index.js';
|
|
|
19
19
|
import { registerUndo } from './undo.js';
|
|
20
20
|
import { registerVariantTools } from './variants/index.js';
|
|
21
21
|
import { registerViewScene } from './view-scene.js';
|
|
22
|
-
export function registerTools(server, operations, { catalog, geometryScripts, objectMakers, readFile, sceneViews, assetViews } = {}) {
|
|
22
|
+
export function registerTools(server, operations, { catalog, geometryScripts, objectMakers, readFile, sceneViews, assetViews, betweenBatchCalls, } = {}) {
|
|
23
23
|
registerGetScene(server, operations);
|
|
24
24
|
registerSharedTools(server, operations, catalog, {
|
|
25
25
|
assetViews,
|
|
26
|
+
betweenBatchCalls,
|
|
26
27
|
buildObject: (input) => compileObjectOnHost(geometryScripts, operations, input),
|
|
27
28
|
});
|
|
28
29
|
registerAddColumn(server, operations, geometryScripts);
|
|
@@ -24,6 +24,13 @@ export type PlanReadingHosts = {
|
|
|
24
24
|
assetViews?: AssetViewLoader;
|
|
25
25
|
/** Compiles one add_object module for a batch before the synchronous operations run. */
|
|
26
26
|
buildObject?: (input: Omit<AddObjectInput, 'compiled'>) => Promise<CompiledGeometryScript>;
|
|
27
|
+
/**
|
|
28
|
+
* Awaited after each call of a run_batch, so the host's timers and I/O run during a long one.
|
|
29
|
+
* Only for a host whose scene no other call can reach meanwhile (a bridge of its own for each
|
|
30
|
+
* request): the batch is planned on the scene as its first call found it and applied after its
|
|
31
|
+
* last. Without it a batch runs uninterrupted.
|
|
32
|
+
*/
|
|
33
|
+
betweenBatchCalls?: () => Promise<void>;
|
|
27
34
|
};
|
|
28
35
|
export declare function toPatches(changes: SceneChanges): Patch[];
|
|
29
36
|
/** How an outcome reaches this bridge: its patches, its derived construction, its session record. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-tools.d.ts","sourceRoot":"","sources":["../../src/tools/shared-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EACL,KAAK,cAAc,EAGnB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"shared-tools.d.ts","sourceRoot":"","sources":["../../src/tools/shared-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EACL,KAAK,cAAc,EAGnB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,eAAe,EAUpB,KAAK,YAAY,EAGlB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EAUtB,KAAK,WAAW,EAyCjB,MAAM,8BAA8B,CAAA;AAGrC,OAAO,EAGL,KAAK,sBAAsB,EAI5B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe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GAAE,gBAAqB,GAC3B,IAAI,CA+IN"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AGENT_OPERATIONS, achievedChanges, applyAgentOutcome, assetViewNeeds, buildBatchObjects, createAssetViewLoader, createFetchAssetViewIO, furnishingRefusal, readCatalog, startOfSession, writeCollections, } from '@pascal-app/core/agent-operations';
|
|
1
|
+
import { AGENT_OPERATIONS, achievedChanges, applyAgentOutcome, assetViewNeeds, buildBatchObjects, createAssetViewLoader, createFetchAssetViewIO, furnishingRefusal, RUN_BATCH_STEPS, readCatalog, startOfSession, writeCollections, } from '@pascal-app/core/agent-operations';
|
|
2
2
|
import { addCornerWindowTool, addFenceTool, addLevelTool, addObjectTool, addWallTool, createRoofTool, createRoomTool, createStairTool, createUnitTool, deleteNodeTool, designBriefTool, duplicateLevelTool, duplicateNodeOutput, duplicateNodeTool, findByTypeTool, fitStairTool, furnishRoomTool, getLevelSummaryTool, getNodeTool, getSiteTool, getWallsTool, getZonesTool, isAgentRefusal, listLevelsTool, listUnitsTool, measureStairTool, mergeWindowsTool, moveNodeOutput, moveNodeTool, moveRoofsToRoofLevelTool, paintTool, placeBuildingTool, placeDesignTool, placeInRoomTool, placeItemsTool, ROOM_TOOL_CONTRACTS, refuse, runBatchTool, searchAssetsTool, searchMaterialsTool, setCheckpointTool, setGroundLevelTool, setUnitMembersTool, setWallTypeTool, surfaceDescription, validateDesignTool, verifySceneModelResult, verifySceneTool, viewAssetsTool, } from '@pascal-app/core/agent-tools';
|
|
3
3
|
import { DesignValidationSchema } from '@pascal-app/core/procedural-items';
|
|
4
4
|
import { untracked } from '@pascal-app/core/runtime';
|
|
@@ -523,8 +523,9 @@ function writesScene(changes) {
|
|
|
523
523
|
(changes.collections && Object.keys(changes.collections).length)));
|
|
524
524
|
}
|
|
525
525
|
/**
|
|
526
|
-
* search_assets as the model reads it: each item's id, name and placement facts
|
|
527
|
-
*
|
|
526
|
+
* search_assets as the model reads it: each item's id, name and placement facts, and the params
|
|
527
|
+
* of one built from a script (add_object changes them once placed); the category and the floor's
|
|
528
|
+
* null attachTo stay in the structured result.
|
|
528
529
|
*/
|
|
529
530
|
function searchAssetsModelResult(output) {
|
|
530
531
|
const groups = output.groups;
|
|
@@ -532,11 +533,12 @@ function searchAssetsModelResult(output) {
|
|
|
532
533
|
...output,
|
|
533
534
|
groups: groups.map((group) => ({
|
|
534
535
|
...group,
|
|
535
|
-
results: group.results.map(({ id, name, dimensions, attachTo }) => ({
|
|
536
|
+
results: group.results.map(({ id, name, dimensions, attachTo, params }) => ({
|
|
536
537
|
id,
|
|
537
538
|
name,
|
|
538
539
|
dimensions,
|
|
539
540
|
...(attachTo && { attachTo }),
|
|
541
|
+
...(params && { params }),
|
|
540
542
|
})),
|
|
541
543
|
})),
|
|
542
544
|
};
|
|
@@ -553,6 +555,15 @@ function modelResult(name, output, input) {
|
|
|
553
555
|
return searchAssetsModelResult(output);
|
|
554
556
|
return output;
|
|
555
557
|
}
|
|
558
|
+
/** A batch one call at a time, each in the scene's scope, the host's pause after each. */
|
|
559
|
+
async function runBatchInSteps(bridge, batch, pause) {
|
|
560
|
+
for (;;) {
|
|
561
|
+
const step = inScene(bridge, () => batch.next());
|
|
562
|
+
if (step.done)
|
|
563
|
+
return step.value;
|
|
564
|
+
await pause();
|
|
565
|
+
}
|
|
566
|
+
}
|
|
556
567
|
export function registerSharedTools(server, bridge, catalog = builtInCatalog, hosts = {}) {
|
|
557
568
|
for (const tool of SHARED_TOOLS)
|
|
558
569
|
registerOperationTool(server, bridge, tool, catalog, hosts);
|
|
@@ -627,7 +638,10 @@ export function registerOperationTool(server, bridge, tool, catalog = builtInCat
|
|
|
627
638
|
pictures: needs.pictures,
|
|
628
639
|
});
|
|
629
640
|
try {
|
|
630
|
-
outcome =
|
|
641
|
+
outcome =
|
|
642
|
+
tool.contract.name === runBatchTool.name && hosts.betweenBatchCalls
|
|
643
|
+
? await runBatchInSteps(bridge, RUN_BATCH_STEPS(nodes, input, context), hosts.betweenBatchCalls)
|
|
644
|
+
: inScene(bridge, () => tool.operation(nodes, input, context));
|
|
631
645
|
}
|
|
632
646
|
catch (error) {
|
|
633
647
|
// A refusal can ask the session to remember what it refused (a catalog piece under an open source).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pascal-app/mcp",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Model Context Protocol server for Pascal 3D editor",
|
|
5
5
|
"mcpName": "app.pascal/editor",
|
|
6
6
|
"type": "module",
|
|
@@ -62,19 +62,19 @@
|
|
|
62
62
|
"prepublishOnly": "bun run build && bun test && bun run smoke:node"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@pascal-app/core": "^1.1.
|
|
65
|
+
"@pascal-app/core": "^1.1.1"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@hono/node-server": "^2.1.6",
|
|
69
69
|
"@modelcontextprotocol/node": "^2.1.2",
|
|
70
70
|
"@modelcontextprotocol/server": "^2.4.0",
|
|
71
|
-
"@pascal-app/geometry-script": "^1.1.
|
|
71
|
+
"@pascal-app/geometry-script": "^1.1.1",
|
|
72
72
|
"@pascal-app/lingo": "^0.5.0",
|
|
73
73
|
"zod": ">=4.6.7 <4.7"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@modelcontextprotocol/client": "^2.4.0",
|
|
77
|
-
"@pascal-app/core": "^1.1.
|
|
77
|
+
"@pascal-app/core": "^1.1.1",
|
|
78
78
|
"@pascal/typescript-config": "*",
|
|
79
79
|
"@types/node": "^26.6.6",
|
|
80
80
|
"typescript": "7.0.2"
|