Files
editor/packages/mcp/package.json
T
Wawa 8921e341cc Bump inter-package peerDeps to ^0.8.0 + fix release.yml sync bug
Two bugs in one fix:

1. The 0.8.0 release commit only bumped .version, not the inter-package
   peerDependencies / devDependencies. So the published packages still
   declared peer constraints like "@pascal-app/viewer": "^0.7.0". Caret
   in semver 0.x doesn't allow 0.8.0 to satisfy ^0.7.0, so bun resolves
   workspace consumers (and apps/editor's deep import paths) to the
   stale npm-published 0.7.0 instead of the workspace 0.8.0 — meaning
   local edits never show up in apps/editor or any linked consumer.

2. The release.yml sync step was using $GITHUB_ENV to read back the new
   versions in the same step, which doesn't work — env-file writes only
   surface in subsequent steps. Switched to a bash associative array
   (NEW_VERSIONS) for in-step lookup, kept the $GITHUB_ENV write for the
   downstream publish/commit/tag steps. Also added a final "refs after
   sync" debug print so this is visible in the workflow log.

After this lands and you bun install, packages/editor/node_modules/@pascal-app/viewer
should symlink to the workspace packages/viewer/, not to .bun/@pascal-app+viewer@0.7.0.
Future releases will sync peerDeps correctly on their own.
2026-05-10 13:12:08 +00:00

87 lines
2.2 KiB
JSON

{
"name": "@pascal-app/mcp",
"version": "0.2.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",
"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"
}