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
docs(user): update tutorial on mcp host configuration
- Refresh content of the tutorial to match current to-be-released version 0.7.x
- Refresh content of quicker `MCPHostConfiguration.md`
- Add the tutorials to the mkdocs configuration
**Important**: Each server must be configured as either local (using `--command`) or remote (using `--url`), but not both. These options are mutually exclusive:
88
87
89
-
-**Local servers**: Use `--command` and optionally `--args` and `--env`
88
+
-**Local servers**: Use `--command` and optionally `--args` and `--env-var`
90
89
-**Remote servers**: Use `--url` and optionally `--header`
91
90
92
91
Attempting to use both `--command` and `--url` will result in an error.
@@ -143,14 +142,14 @@ Set up the same server on multiple host platforms:
143
142
144
143
```bash
145
144
# Configure on multiple hosts at once
146
-
hatch mcp configure weather-server \
145
+
hatch mcp configure weather_server \
147
146
--hosts claude-desktop,cursor,vscode \
148
147
--command python \
149
148
--args weather_server.py
150
149
151
150
# Configure on all available hosts
152
-
hatch mcp configure weather-server \
153
-
--all-hosts \
151
+
hatch mcp configure weather_server \
152
+
--hosts all \
154
153
--command python \
155
154
--args weather_server.py
156
155
```
@@ -175,38 +174,6 @@ hatch mcp sync --from-env dev --to-host all --pattern ".*api.*"
175
174
hatch mcp sync --from-env prod --to-host all --dry-run
176
175
```
177
176
178
-
## Host-Specific Considerations
179
-
180
-
### Claude Family (Claude Desktop, Claude Code)
181
-
182
-
Claude hosts require absolute paths for local servers:
183
-
184
-
```bash
185
-
# Correct - absolute path
186
-
hatch mcp configure my-server \
187
-
--host claude-desktop \
188
-
--command /usr/local/bin/python \
189
-
--args /path/to/server.py
190
-
191
-
# Incorrect - relative path (will be rejected)
192
-
hatch mcp configure my-server \
193
-
--host claude-desktop \
194
-
--command python \
195
-
--args ./server.py
196
-
```
197
-
198
-
### VS Code
199
-
200
-
VS Code uses a nested configuration structure. Hatch handles this automatically, but be aware that manual edits to VS Code settings may affect MCP server configurations.
201
-
202
-
### Cursor and LM Studio
203
-
204
-
These hosts are more flexible with path requirements and generally accept both absolute and relative paths.
205
-
206
-
### Gemini
207
-
208
-
Gemini uses the official configuration path at `~/.gemini/settings.json`. Ensure you have Gemini properly installed and configured.
**Note**: The `hatch mcp sync` command only syncs packages from one environment (or one host) at a time. If you want to re-sync other packages, you must run the command several times.
0 commit comments