From 1bb0c441643e2c3c8cfdbd806f7ea0f3300c366e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Figueiredo?= Date: Sun, 7 Sep 2025 18:51:44 +0100 Subject: [PATCH 1/4] Organize imports in MCP files --- mcp/id-mcp.py | 10 ++++++++-- mcp/pr-mcp.py | 14 +++++++++----- mcp/ps-mcp.py | 16 +++++++++++----- 3 files changed, 28 insertions(+), 12 deletions(-) diff --git a/mcp/id-mcp.py b/mcp/id-mcp.py index f9ebadc..365fb80 100644 --- a/mcp/id-mcp.py +++ b/mcp/id-mcp.py @@ -20,10 +20,16 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +# Standard library imports +import sys + +# Third-party imports from mcp.server.fastmcp import FastMCP -from core import init, sendCommand, createCommand + +# Local imports import socket_client -import sys +from core import init, sendCommand, createCommand + #logger.log(f"Python path: {sys.executable}") #logger.log(f"PYTHONPATH: {os.environ.get('PYTHONPATH')}") diff --git a/mcp/pr-mcp.py b/mcp/pr-mcp.py index faab7fd..0d1cc6e 100644 --- a/mcp/pr-mcp.py +++ b/mcp/pr-mcp.py @@ -20,15 +20,19 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +# Standard library imports +import io +import os +import sys +import tempfile + +# Third-party imports from mcp.server.fastmcp import FastMCP, Image from PIL import Image as PILImage -from core import init, sendCommand, createCommand +# Local imports import socket_client -import sys -import tempfile -import os -import io +from core import init, sendCommand, createCommand #logger.log(f"Python path: {sys.executable}") diff --git a/mcp/ps-mcp.py b/mcp/ps-mcp.py index 1c44de3..15dd6cd 100644 --- a/mcp/ps-mcp.py +++ b/mcp/ps-mcp.py @@ -20,14 +20,20 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +# Standard library imports +import base64 +import os +import sys + +# Third-party imports +import numpy as np from mcp.server.fastmcp import FastMCP, Image + +# Local imports +import socket_client from core import init, sendCommand, createCommand from fonts import list_all_fonts_postscript -import numpy as np -import base64 -import socket_client -import sys -import os + FONT_LIMIT = 1000 #max number of font names to return to AI From 01346950d9c10a4e88dcab27b46a3f7848c5e662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Figueiredo?= Date: Sun, 7 Sep 2025 18:54:06 +0100 Subject: [PATCH 2/4] Correct app names in UXP manifest and package jsons --- uxp/id/package.json | 4 ++-- uxp/pr/package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/uxp/id/package.json b/uxp/id/package.json index 06dfee0..1768b97 100644 --- a/uxp/id/package.json +++ b/uxp/id/package.json @@ -1,7 +1,7 @@ { - "name": "uxp-template-ps-starter", + "name": "uxp-template-id-starter", "version": "1.0.0", - "description": "Adobe Photoshop MCP Agent Plugin.", + "description": "Adobe InDesign MCP Agent Plugin.", "author": "Mike Chambers (mikechambers@gmail.com)", "license": "MIT" } diff --git a/uxp/pr/package.json b/uxp/pr/package.json index 06dfee0..8dc76a5 100644 --- a/uxp/pr/package.json +++ b/uxp/pr/package.json @@ -1,7 +1,7 @@ { - "name": "uxp-template-ps-starter", + "name": "uxp-template-pr-starter", "version": "1.0.0", - "description": "Adobe Photoshop MCP Agent Plugin.", + "description": "Adobe Premiere MCP Agent Plugin.", "author": "Mike Chambers (mikechambers@gmail.com)", "license": "MIT" } From d6e9e348226f3e941835d7f2b615499259b71212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Figueiredo?= Date: Sun, 7 Sep 2025 18:55:29 +0100 Subject: [PATCH 3/4] Add missing chapter number in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 69ccad1..ed573cc 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ Download the latest release from the [releases page](https://github.com/mikecham - `premiere-mcp.dxt` for Premiere Pro 3. Restart Claude Desktop -#### Using Prebuilt Executables (Recommended) +#### 4. Using Prebuilt Executables (Recommended) 1. Download the appropriate executable for your platform from the latest release (files named like `adb-proxy-socket-macos-x64.zip` (Intel), `adb-proxy-socket-macos-arm64.zip` (Silicon), or `adb-proxy-socket-win-x64.exe.zip`). 2. Unzip the executable. From dfe68568c7a95e99c7a1b101a23eea888e72f65d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Figueiredo?= Date: Sun, 7 Sep 2025 18:58:07 +0100 Subject: [PATCH 4/4] Add empty line at the end of a few files --- mcp/id-mcp.py | 2 +- mcp/pr-mcp.py | 2 +- uxp/id/manifest.json | 2 +- uxp/pr/manifest.json | 2 +- uxp/ps/manifest.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mcp/id-mcp.py b/mcp/id-mcp.py index 365fb80..89337b3 100644 --- a/mcp/id-mcp.py +++ b/mcp/id-mcp.py @@ -143,4 +143,4 @@ def get_instructions() -> str: "SUBTRACT", "DIVIDE" ] -""" \ No newline at end of file +""" diff --git a/mcp/pr-mcp.py b/mcp/pr-mcp.py index 0d1cc6e..7b3d337 100644 --- a/mcp/pr-mcp.py +++ b/mcp/pr-mcp.py @@ -901,4 +901,4 @@ def get_instructions() -> str: "VIVIDLIGHT", "SUBTRACT", "DIVIDE" -] \ No newline at end of file +] diff --git a/uxp/id/manifest.json b/uxp/id/manifest.json index b621302..208fc3d 100755 --- a/uxp/id/manifest.json +++ b/uxp/id/manifest.json @@ -107,4 +107,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/uxp/pr/manifest.json b/uxp/pr/manifest.json index e4ea5a2..b3302ee 100755 --- a/uxp/pr/manifest.json +++ b/uxp/pr/manifest.json @@ -104,4 +104,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/uxp/ps/manifest.json b/uxp/ps/manifest.json index 0658697..1f6382d 100755 --- a/uxp/ps/manifest.json +++ b/uxp/ps/manifest.json @@ -104,4 +104,4 @@ ] } ] -} \ No newline at end of file +}