You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`list_chats`| List available iMessage and SMS chats |`includeParticipantDetails` (optional) |
209
+
|`list_chats`| List available iMessage and SMS chats |`includeParticipantDetails` (optional, default: false)|
210
210
|`get_messages`| Get messages from the Messages app |`limit` (optional, default: 100) |
211
211
|`search_messages`| Search for messages containing specific text |`searchText`, `sender` (optional), `chatId` (optional), `limit` (optional, default: 50), `daysBack` (optional, default: 30) |
212
212
|`compose_message`| Open Messages app with pre-filled message or auto-send |`recipient` (required), `body` (optional), `auto` (optional, default: false) |
@@ -240,8 +240,8 @@ Send a message to 555-123-4567 saying "I'll be there in 10 minutes"
240
240
#### Examples
241
241
242
242
```
243
-
// Create a new note
244
-
Create a note titled "Meeting Minutes" with content "# Discussion Points\n- Project timeline\n- Budget review\n- Next steps"
243
+
// Create a new note with markdown formatting
244
+
Create a note titled "Meeting Minutes" with content "# Discussion Points\n- Project timeline\n- Budget review\n- Next steps" and format headings and lists
245
245
246
246
// Create a note with HTML
247
247
Create a note titled "Formatted Report" with HTML content "<h1>Quarterly Report</h1><p>Sales increased by <strong>15%</strong></p>"
@@ -269,6 +269,43 @@ Find notes containing "recipe" in my "Cooking" folder
269
269
Create a Pages document with the content "Project Proposal\n\nThis document outlines the scope and timeline for the upcoming project."
270
270
```
271
271
272
+
## Architecture
273
+
274
+
The applescript-mcp server is built using TypeScript and follows a modular architecture:
275
+
276
+
### Core Components
277
+
278
+
1.**AppleScriptFramework** (`framework.ts`): The main server class that:
279
+
- Manages MCP protocol communication
280
+
- Handles tool registration and execution
281
+
- Provides logging functionality
282
+
- Executes AppleScript commands
283
+
284
+
2.**Categories** (`src/categories/*.ts`): Modular script collections organized by functionality:
285
+
- Each category contains related scripts (e.g., calendar, system, notes)
286
+
- Categories are registered with the framework in `index.ts`
0 commit comments