Skip to content

Commit 69e2c5b

Browse files
lapfelixclaude
andcommitted
Add preferred values documentation to README
- Add Claude Code example showing how to configure preferred scheme and xcodeproj - Use environment variables for clean configuration - Document benefits: optional parameters, default value indicators, reduced repetition - Place after --no-clean example for logical flow 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent c1e9dcf commit 69e2c5b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,28 @@ claude mcp add-json XcodeMCP '{
9292
}'
9393
```
9494

95+
#### Using Preferred Values for Single Project Workflows
96+
97+
For projects where you're working with a single xcodeproj and scheme, you can configure preferred values to make tool parameters optional:
98+
99+
```bash
100+
claude mcp add-json XcodeMCP '{
101+
"command": "npx",
102+
"args": ["-y", "xcodemcp@latest"],
103+
"env": {
104+
"LOG_LEVEL": "INFO",
105+
"XCODE_MCP_PREFERRED_SCHEME": "MyApp",
106+
"XCODE_MCP_PREFERRED_XCODEPROJ": "MyApp.xcodeproj"
107+
}
108+
}'
109+
```
110+
111+
With preferred values configured:
112+
- Tool parameters become optional instead of required
113+
- Tool descriptions show default values (e.g., "defaults to MyApp.xcodeproj")
114+
- You can still override defaults by providing explicit parameters
115+
- Reduces repetition when working with a single project
116+
95117
#### Troubleshooting
96118

97119
If `/mcp` in Claude Code indicates the MCP failed, try running it from the project folder manually to see what the output is: `npx -y xcodemcp@latest`

0 commit comments

Comments
 (0)