Adds a Coordinate conventions section to packages/mcp/README.md and a 71-node MCP demo scene that exercises every claim it makes. Closes #337. Covers: right-handed scene with X/Z ground plane and Y up; metres for lengths and radians for rotations as Euler [x, y, z]; the [x, z] → (x, y, z) plan-to-world mapping with no sign flip in the stored contract; level/building-local framing (world only under identity transform); rotation-not-reflection caveat for the 2-D plan panel and the iso-default top-down azimuth offset; a worked 30° rotated slab example; and the wall-local-metres trap for door/window/place_item coordinates. Companion: examples/coordinate-conventions-demo.{json,md} with a reference compass at the origin and Demos A/B/C/D illustrating axis-aligned baseline, the rotated example, and the page-intent vs world-result L pair. Co-authored-by: Marcel Gruber <marcel@grubertech.com>
88 lines
2.2 KiB
JSON
88 lines
2.2 KiB
JSON
{
|
|
"name": "@pascal-app/mcp",
|
|
"version": "0.3.0",
|
|
"description": "Model Context Protocol server for Pascal 3D editor",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./server": {
|
|
"types": "./dist/server.d.ts",
|
|
"import": "./dist/server.js",
|
|
"default": "./dist/server.js"
|
|
},
|
|
"./storage": {
|
|
"types": "./dist/storage/index.d.ts",
|
|
"import": "./dist/storage/index.js",
|
|
"default": "./dist/storage/index.js"
|
|
},
|
|
"./storage/types": {
|
|
"types": "./dist/storage/types.d.ts",
|
|
"import": "./dist/storage/types.js",
|
|
"default": "./dist/storage/types.js"
|
|
},
|
|
"./operations": {
|
|
"types": "./dist/operations/index.d.ts",
|
|
"import": "./dist/operations/index.js",
|
|
"default": "./dist/operations/index.js"
|
|
},
|
|
"./bridge": {
|
|
"types": "./dist/bridge/index.d.ts",
|
|
"import": "./dist/bridge/index.js",
|
|
"default": "./dist/bridge/index.js"
|
|
}
|
|
},
|
|
"bin": {
|
|
"pascal-mcp": "./dist/bin/pascal-mcp.js"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"examples",
|
|
"README.md",
|
|
"CHANGELOG.md"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc --build",
|
|
"dev": "tsc --build --watch",
|
|
"start": "bun dist/bin/pascal-mcp.js",
|
|
"test": "bun test",
|
|
"smoke": "bun run scripts/smoke.ts",
|
|
"prepublishOnly": "bun run build && bun test"
|
|
},
|
|
"peerDependencies": {
|
|
"@pascal-app/core": "^0.8.0"
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
"zod": "^4.3.5"
|
|
},
|
|
"devDependencies": {
|
|
"@pascal-app/core": "^0.8.0",
|
|
"@pascal/typescript-config": "*",
|
|
"@types/node": "^25.5.0",
|
|
"typescript": "5.9.3"
|
|
},
|
|
"keywords": [
|
|
"mcp",
|
|
"model-context-protocol",
|
|
"pascal",
|
|
"3d",
|
|
"building",
|
|
"editor",
|
|
"ai"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/pascalorg/editor.git",
|
|
"directory": "packages/mcp"
|
|
},
|
|
"license": "MIT",
|
|
"homepage": "https://github.com/pascalorg/editor/tree/main/packages/mcp#readme",
|
|
"bugs": "https://github.com/pascalorg/editor/issues"
|
|
}
|