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
- ✅ You're integrating existing server infrastructure
179
-
180
-
### Host Selection Strategy
181
-
182
-
**Development Workflow**:
183
-
- Start with **Claude Desktop** for initial testing
184
-
- Add **Cursor** for AI-powered development
185
-
- Include **VS Code** for traditional development
186
-
187
-
**Production Deployment**:
188
-
- Deploy to all relevant host platforms
189
-
- Use environment-specific configurations
190
-
- Implement backup and recovery procedures
191
-
192
147
## Configuration File Formats
193
148
194
-
### Understanding Host-Specific Formats
149
+
Typically, MCP hosts configuration file follow very similar structures; yet differences in the name of some fields or the presence/absence of other fields may require some adaptation.
195
150
196
151
**Claude Desktop Configuration**:
152
+
197
153
```json
198
154
{
199
155
"mcpServers": {
200
156
"my-server": {
201
-
"command": "python",
157
+
"command": "python", // system python;
158
+
// note that in the case of Hatch packages,
159
+
// we will use the python executable of the
160
+
// Hatch environment in which the package
161
+
// is installed
202
162
"args": ["/absolute/path/to/server.py"],
203
163
"env": {
204
164
"API_KEY": "value"
@@ -209,11 +169,12 @@ hatch package list
209
169
```
210
170
211
171
**VS Code Configuration**:
212
-
```jsonc
172
+
173
+
```json
213
174
{
214
-
"mcp.servers": {
175
+
"servers": {// VS Code uses "servers" as the root object
215
176
"my-server": {
216
-
"command":"python",
177
+
"command": "python",// system python - same as above
217
178
"args": ["./relative/path/to/server.py"],
218
179
"env": {
219
180
"API_KEY": "value"
@@ -223,10 +184,23 @@ hatch package list
223
184
}
224
185
```
225
186
226
-
**Key Differences**:
227
-
-**Path Requirements**: Claude requires absolute paths, VS Code supports relative
228
-
-**Environment Variables**: Different syntax and support levels
229
-
-**Comments**: VS Code supports JSONC with comments
187
+
**Gemini Configuration**:
188
+
189
+
```json
190
+
{
191
+
"mcpServers": {
192
+
"my-server": {
193
+
"command": "python", // system python - same as above
194
+
"args": ["/absolute/path/to/server.py"],
195
+
"env": {
196
+
"API_KEY": "value"
197
+
},
198
+
"trust": false, // typically doesn't exist outside of Gemini
199
+
"timeout": 30000// typically doesn't exist outside of Gemini
200
+
}
201
+
}
202
+
}
203
+
```
230
204
231
205
## Safety and Best Practices
232
206
@@ -243,22 +217,22 @@ Hatch automatically creates backups before making configuration changes:
hatch package add . --host claude-desktop# from within the package directory
252
226
```
253
227
254
228
### Environment Isolation
255
229
256
230
```bash
257
-
# Different environments maintain separate configurations
258
-
hatch env create development
259
-
hatch env create production
231
+
# Different environments maintain separate package versions
232
+
hatch env create package-testing-v2
233
+
hatch env create team-standard-2024q4
260
234
261
-
# Each environment can have different MCP server setups
235
+
# Each environment can have different MCP package versions
262
236
```
263
237
264
238
## Next Steps
@@ -268,6 +242,7 @@ You now understand the MCP host configuration landscape and Hatch's role as a pa
268
242
**Continue to**: [Tutorial 04-02: Configuring Hatch Packages](02-configuring-hatch-packages.md) to learn the **preferred deployment method** using Hatch packages with automatic dependency resolution.
0 commit comments