Skip to content

Conversation

@NakaokaRei
Copy link
Owner

Summary

  • Added executeAppleScript tool to execute AppleScript code directly
  • Added executeAppleScriptFile tool to execute AppleScript from files
  • Both tools return the execution results to MCP clients

Changes

  • Upgraded SwiftAutoGUI from v0.3.2 to v0.11.0 for AppleScript support
  • Implemented two new tools with proper error handling and result reporting
  • Added comprehensive test coverage (12 tests, all passing)
  • Updated documentation in README.md and CLAUDE.md

Test plan

  • Unit tests added and passing
  • Tested script execution with results
  • Tested script execution without results
  • Tested error handling for invalid inputs
  • Package builds and installs successfully

Closes #20

🤖 Generated with Claude Code

NakaokaRei and others added 5 commits July 26, 2025 13:18
Upgrade SwiftAutoGUI from v0.3.2 to v0.11.0 to enable AppleScript execution support.
This version includes executeAppleScript and executeAppleScriptFile methods.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Add two new tools for executing AppleScript:
- executeAppleScript: Execute AppleScript code directly and return results
- executeAppleScriptFile: Execute AppleScript from a file and return results

Both tools return the script execution results to MCP clients, making it
possible to retrieve values from AppleScript automation workflows.

Closes #20

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Add test suite for AppleScript execution tools covering:
- Tool registration and schema validation
- Script execution with results
- Script execution without results
- Error handling for missing/invalid parameters
- File execution with non-existent files

All 12 tests pass successfully.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Update tool list with all current tools (excluding AppleScript per request)
- Update project structure to reflect new directory organization
- Add repository and documentation links for dependencies
- Update SwiftAutoGUI version reference
- Update test suite information

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Document the new executeAppleScript and executeAppleScriptFile tools,
including their input parameters and return value formats.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@NakaokaRei NakaokaRei merged commit 3df77b6 into master Jul 26, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add AppleScript execution capabilities

2 participants