File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,25 @@ The config file should follow the MCP configuration format:
167167}
168168```
169169
170+ #### Using Project Settings
171+
172+ By default, the SDK ** does not** read MCP servers from project settings files (like ` .claude/settings.json ` ). This is intentional for isolation.
173+
174+ To use MCP servers configured in your project settings, enable setting sources:
175+
176+ ``` python
177+ options = ClaudeAgentOptions(
178+ setting_sources = [" project" ] # Read MCP servers from project settings
179+ )
180+
181+ # Or combine multiple sources
182+ options = ClaudeAgentOptions(
183+ setting_sources = [" user" , " project" , " local" ]
184+ )
185+ ```
186+
187+ Available sources: ` "user" ` (global), ` "project" ` (repo-level), ` "local" ` (gitignored local settings).
188+
170189### Custom Tools (as In-Process SDK MCP Servers)
171190
172191A ** custom tool** is a Python function that you can offer to Claude, for Claude to invoke as needed.
You can’t perform that action at this time.
0 commit comments