Skip to content

Commit 6cf3ebc

Browse files
author
Agent! for MacOS
committed
Update README with currently available tools and note about moved tools
- Document all 19 currently available MCP tools - Add section explaining tools moved to Agent macOS app - List write_file, edit_file, delete_file, add_dir, rm_dir, move_file, move_dir, open_doc, close_doc, create_doc, read_doc, save_doc as moved - Link to github.com/macOS26/agent for native tool replacements - Remove outdated tool documentation
1 parent 7695708 commit 6cf3ebc

1 file changed

Lines changed: 68 additions & 114 deletions

File tree

‎README.md‎

Lines changed: 68 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,8 @@ These environment variables let you:
9696
- **Real-time Error Handling:** `xcf build` or `xcf run` sends errors and warnings from Xcode directly to your AI IDE
9797
- **AI-Powered Fixes:** Let Claude fix bugs and mistakes during your coding sessions
9898
- **Intuitive Commands:** Simple, developer-friendly command structure for maximum productivity
99-
- **Comprehensive File Operations:** Read, write, edit, and delete files with ease
100-
- **Directory Management:** Navigate, list, create, and remove directories
101-
- **Xcode Document Integration:** Open, create, read, save, edit, and close Xcode documents directly
99+
- **Comprehensive File Operations:** Read files and directories with ease
100+
- **Xcode Integration:** Build, run, and manage Xcode projects directly
102101
- **Advanced Code Analysis:** Get detailed Swift code analysis without building in Xcode
103102
104103
## 🛠️ Perfect for Swift Developers
@@ -122,29 +121,8 @@ The tool is designed by Swift developers, for Swift developers. Commands like `b
122121
| Command | Description |
123122
|---------|-------------|
124123
| `read_file <file>` | Read content from a file |
125-
| `write_file <file> <content>` | Write content to a file |
126-
| `edit_file <file> <start> <end> <content>` | Edit specific lines in a file |
127-
| `delete_file <file>` | Delete a file |
128-
| `move_file <source> <destination>` | Move a file from one location to another |
129-
130-
### Directory Operations
131-
| Command | Description |
132-
|---------|-------------|
133-
| `cd_dir <path>` | Change directory |
134124
| `read_dir [path] [extension]` | List directory contents |
135-
| `add_dir <path>` | Create directory |
136-
| `rm_dir <path>` | Remove directory |
137-
| `move_dir <source> <destination>` | Move a directory from one location to another |
138-
139-
### Xcode Document Operations
140-
| Command | Description |
141-
|---------|-------------|
142-
| `open_doc <file>` | Open document in Xcode |
143-
| `create_doc <file> [content]` | Create new Xcode document |
144-
| `read_doc <file>` | Read Xcode document |
145-
| `save_doc <file>` | Save Xcode document |
146-
147-
| `close_doc <file> <saving>` | Close a document in Xcode |
125+
| `cd_dir <path>` | Change directory |
148126
149127
### Analysis Tools
150128
| Command | Description |
@@ -215,26 +193,22 @@ When a file isn't found at the exact path, xcf will intelligently search for it
215193
6. As a last resort, performs a fuzzy search for similar filenames
216194
217195
This smart path resolution is used consistently across ALL file operations in xcf, including:
218-
- File reading and writing
219-
- Code snippets and analysis
196+
- File reading and code snippets
197+
- Code analysis
220198
- Directory operations
221-
- File editing and deletion
222-
- Document operations in Xcode
223199
224200
This means you can usually just use the filename without any path for any operation:
225201
226202
```
227203
xcf snippet Constants.swift // For humans
228204
xcf analyze Constants.swift // For humans
229-
xcf edit Constants.swift // For humans
230205
```
231206
232207
Or for AI assistants:
233208

234209
```
235210
mcp_xcf_snippet filePath="Constants.swift" entireFile=true
236211
mcp_xcf_analyzer filePath="Constants.swift" entireFile=true
237-
mcp_xcf_xcf action="edit Constants.swift"
238212
```
239213

240214
## 🔍 Swift Code Analysis
@@ -284,43 +258,62 @@ The analysis identifies issues like:
284258

285259
## 🧩 MCP Tools
286260

287-
### Function-Based Tools
288-
- `mcp_xcf_xcf`: Execute xcf actions/commands
289-
- `mcp_xcf_list`: Show all available tools
290-
- `mcp_xcf_snippet`: Extract code snippets from files
291-
- `mcp_xcf_analyzer`: Analyze Swift code for potential issues
292-
- `mcp_xcf_help`: Get help information
293-
- `mcp_xcf_xcf_help`: Get help for xcf actions only
294-
- `mcp_xcf_tools`: Show detailed reference for all tools
295-
- `mcp_xcf_read_dir`: List contents of a directory
296-
- `mcp_xcf_read_file`: Read content from a file
297-
- `mcp_xcf_write_file`: Write content to a file
298-
- `mcp_xcf_edit_file`: Edit content in a file
299-
- `mcp_xcf_delete_file`: Delete a file
300-
- `mcp_xcf_cd_dir`: Change current directory
301-
- `mcp_xcf_add_dir`: Create a new directory
302-
- `mcp_xcf_rm_dir`: Remove a directory
303-
- `mcp_xcf_move_file`: Move a file from one location to another
304-
- `mcp_xcf_move_dir`: Move a directory from one location to another
305-
- `mcp_xcf_open_doc`: Open a document in Xcode
306-
- `mcp_xcf_close_doc`: Close a document in Xcode
307-
- `mcp_xcf_create_doc`: Create a new document in Xcode
308-
- `mcp_xcf_read_doc`: Read document content from Xcode
309-
- `mcp_xcf_save_doc`: Save document in Xcode
310-
311-
- `mcp_xcf_use_xcf`: Activate XCF mode
312-
313-
### Standalone Action Tools
314-
- `mcp_xcf_show_help`: Display help information about available commands
315-
- `mcp_xcf_grant_permission`: Grant Xcode automation permissions
316-
- `mcp_xcf_run_project`: Run the current Xcode project
317-
- `mcp_xcf_build_project`: Build the current Xcode project
318-
- `mcp_xcf_show_current_project`: Show information about the currently selected project
319-
- `mcp_xcf_show_env`: Display all environment variables
320-
- `mcp_xcf_show_folder`: Display the current working folder
321-
- `mcp_xcf_list_projects`: List all open Xcode projects
322-
- `mcp_xcf_select_project`: Select an Xcode project by number
323-
- `mcp_xcf_analyze_swift_code`: Analyze Swift code for potential issues
261+
### Currently Available Tools
262+
263+
These are the tools currently available in XCF:
264+
265+
| Tool | Description |
266+
|------|-------------|
267+
| `mcp_xcf_xcf` | Execute xcf actions/commands |
268+
| `mcp_xcf_list` | Show all available tools on this server |
269+
| `mcp_xcf_xcf_help` | Help for xcf actions only |
270+
| `mcp_xcf_help` | Regular help with common examples |
271+
| `mcp_xcf_snippet` | Extract code snippets from files |
272+
| `mcp_xcf_analyzer` | Analyze Swift code for potential issues |
273+
| `mcp_xcf_read_dir` | List contents of a directory |
274+
| `mcp_xcf_read_file` | Read content from a file |
275+
| `mcp_xcf_cd_dir` | Change current directory |
276+
| `mcp_xcf_use_xcf` | Activate XCF mode |
277+
| `mcp_xcf_tools` | Show detailed reference for all tools |
278+
| `mcp_xcf_show_help` | Display help information about available commands |
279+
| `mcp_xcf_grant_permission` | Grant Xcode automation permissions |
280+
| `mcp_xcf_run_project` | Run the current Xcode project |
281+
| `mcp_xcf_build_project` | Build the current Xcode project |
282+
| `mcp_xcf_show_current_project` | Show information about the currently selected project |
283+
| `mcp_xcf_show_env` | Display all environment variables |
284+
| `mcp_xcf_show_folder` | Display the current working folder |
285+
| `mcp_xcf_list_projects` | List all open Xcode projects |
286+
| `mcp_xcf_select_project` | Select an Xcode project by number |
287+
| `mcp_xcf_analyze_swift_code` | Analyze Swift code for potential issues |
288+
289+
### Tools Moved to Agent macOS App
290+
291+
The following tools were previously available in XCF but have been **moved to the native Agent macOS app** (github.com/macOS26/agent) for better integration and performance:
292+
293+
| Moved Tool | Replacement in Agent |
294+
|------------|----------------------|
295+
| `mcp_xcf_write_file` | Use native `write_file` tool |
296+
| `mcp_xcf_edit_file` | Use native `edit_file` tool |
297+
| `mcp_xcf_delete_file` | Use native file system tools |
298+
| `mcp_xcf_add_dir` | Use native directory tools |
299+
| `mcp_xcf_rm_dir` | Use native directory tools |
300+
| `mcp_xcf_move_file` | Use native file system tools |
301+
| `mcp_xcf_move_dir` | Use native file system tools |
302+
| `mcp_xcf_open_doc` | Use native Xcode integration |
303+
| `mcp_xcf_close_doc` | Use native Xcode integration |
304+
| `mcp_xcf_create_doc` | Use native Xcode integration |
305+
| `mcp_xcf_read_doc` | Use native Xcode integration |
306+
| `mcp_xcf_save_doc` | Use native Xcode integration |
307+
308+
**Why were these tools moved?**
309+
310+
These file and document manipulation tools are now available as native tools in the Agent macOS application, providing:
311+
- **Better performance** - Direct integration without MCP overhead
312+
- **Enhanced reliability** - Native Swift implementation
313+
- **Consistent API** - Unified tool interface across all operations
314+
- **Improved maintenance** - Centralized updates in the main Agent app
315+
316+
See the [Agent macOS repository](https://github.com/macOS26/agent) for the complete set of native tools.
324317

325318
### For AI Function Calls
326319

@@ -351,46 +344,19 @@ Read a file:
351344
mcp_xcf_read_file filePath="main.swift"
352345
```
353346

354-
Write to a file:
355-
```
356-
mcp_xcf_write_file filePath="test.txt" content="Hello World"
357-
```
358-
359-
Edit specific lines in a file:
360-
```
361-
mcp_xcf_edit_file filePath="main.swift" startLine=10 endLine=20 replacement="new code here"
362-
```
363-
364347
List directory contents:
365348
```
366349
mcp_xcf_read_dir directoryPath="."
367350
```
368351

369-
Create a new directory:
352+
List Swift files only:
370353
```
371-
mcp_xcf_add_dir directoryPath="new_folder"
354+
mcp_xcf_read_dir directoryPath="src" fileExtension="swift"
372355
```
373356

374-
### Working with Xcode Documents
375-
376-
Open a document in Xcode:
357+
Change directory:
377358
```
378-
mcp_xcf_open_doc filePath="main.swift"
379-
```
380-
381-
Create a new document:
382-
```
383-
mcp_xcf_create_doc filePath="new_file.swift" content="import Foundation"
384-
```
385-
386-
Edit a document:
387-
```
388-
389-
```
390-
391-
Close a document:
392-
```
393-
mcp_xcf_close_doc filePath="main.swift" saving=true
359+
mcp_xcf_cd_dir directoryPath="src"
394360
```
395361

396362
## 🔒 Security Features
@@ -417,15 +383,9 @@ mcp_xcf_close_doc filePath="main.swift" saving=true
417383
### File Manipulation Workflow (For Humans)
418384
1. `read_dir .` - List files in current directory
419385
2. `read_file main.swift` - View file contents
420-
3. `edit_file main.swift 10 15 "// Updated code"` - Edit the file
386+
3. Use Agent native tools for file editing
421387
4. `xcf build` - Build after changes
422388

423-
### Xcode Document Workflow (For Humans)
424-
1. `open_doc main.swift` - Open document in Xcode
425-
426-
4. `save_doc main.swift` - Save the document
427-
5. `xcf build` - Build after changes
428-
429389
### Basic Workflow (For AI Assistants)
430390
2. `mcp_xcf_xcf action="show"` - See available projects
431391
3. `mcp_xcf_xcf action="open 1"` - Select a project
@@ -441,13 +401,7 @@ mcp_xcf_close_doc filePath="main.swift" saving=true
441401
### File Manipulation Workflow (For AI Assistants)
442402
2. `mcp_xcf_read_dir directoryPath="."` - List files in current directory
443403
3. `mcp_xcf_read_file filePath="main.swift"` - View file contents
444-
4. `mcp_xcf_edit_file filePath="main.swift" startLine=10 endLine=15 replacement="// Updated code"` - Edit the file
445-
5. `mcp_xcf_xcf action="build"` - Build after changes
446-
447-
### Xcode Document Workflow (For AI Assistants)
448-
2. `mcp_xcf_open_doc filePath="main.swift"` - Open document in Xcode
449-
450-
4. `mcp_xcf_save_doc filePath="main.swift"` - Save the document
404+
4. Use Agent native `edit_file` tool for file editing
451405
5. `mcp_xcf_xcf action="build"` - Build after changes
452406

453407
## 📺 Demo
@@ -472,4 +426,4 @@ Swift Engineers are welcome to contribute! Help us make xcf even better.
472426

473427
---
474428

475-
Created by XCodeFreeze Automation and CodeFreeze.ai - Bringing the future of Swift development to your fingertips!
429+
Created by XCodeFreeze Automation and CodeFreeze.ai - Bringing the future of Swift development to your fingertips!

0 commit comments

Comments
 (0)