Skip to content

Commit 5b0e033

Browse files
Merge pull request modelcontextprotocol#29 from modelcontextprotocol/justin/fixes
Various fixes
2 parents 697e33d + e53c226 commit 5b0e033

File tree

4 files changed

+92
-90
lines changed

4 files changed

+92
-90
lines changed

docs/concepts/prompts.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ const debugWorkflow = {
169169
role: "user",
170170
content: {
171171
type: "text",
172-
text: "Here's an error I'm seeing:"
172+
text: `Here's an error I'm seeing: ${error}`
173173
}
174174
},
175175
{
@@ -183,7 +183,7 @@ const debugWorkflow = {
183183
role: "user",
184184
content: {
185185
type: "text",
186-
text: error
186+
text: "I've tried restarting the service, but the error persists."
187187
}
188188
}
189189
];

docs/first-server/python.mdx

Lines changed: 83 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,67 @@ Let's build your first MCP server in Python! We'll create a weather server that
285285
</Step>
286286
</Steps>
287287

288+
289+
290+
291+
## Connect to Claude Desktop
292+
293+
<Steps>
294+
<Step title="Update Claude config">
295+
Add to `claude_desktop_config.json`:
296+
297+
```json
298+
{
299+
"mcpServers": {
300+
"weather": {
301+
"command": "uv",
302+
"args": "--directory path/to/your/project run weather-service",
303+
"env": {
304+
"OPENWEATHER_API_KEY": "your-api-key",
305+
}
306+
}
307+
}
308+
}
309+
```
310+
</Step>
311+
312+
<Step title="Restart Claude">
313+
1. Quit Claude completely
314+
315+
2. Start Claude again
316+
317+
3. Look for your weather server in the 🔌 menu
318+
</Step>
319+
</Steps>
320+
321+
## Try it out!
322+
323+
<AccordionGroup>
324+
<Accordion title="Check Current Weather" active>
325+
Ask Claude:
326+
327+
```
328+
What's the current weather in San Francisco? Can you analyze the conditions and tell me if it's a good day for outdoor activities?
329+
```
330+
</Accordion>
331+
332+
<Accordion title="Get a Forecast">
333+
Ask Claude:
334+
335+
```
336+
Can you get me a 5-day forecast for Tokyo and help me plan what clothes to pack for my trip?
337+
```
338+
</Accordion>
339+
340+
<Accordion title="Compare Weather">
341+
Ask Claude:
342+
343+
```
344+
Can you analyze the forecast for both Tokyo and San Francisco and tell me which city would be better for outdoor photography this week?
345+
```
346+
</Accordion>
347+
</AccordionGroup>
348+
288349
## Understanding the code
289350

290351
<Tabs>
@@ -445,87 +506,6 @@ import uvicorn
445506
uvicorn.run(app, host="0.0.0.0", port=8000)
446507
```
447508

448-
## Troubleshooting
449-
450-
### Installation issues
451-
452-
```bash
453-
# Check Python version
454-
python --version
455-
456-
# Reinstall dependencies
457-
uv sync --reinstall
458-
```
459-
460-
461-
### Type checking
462-
463-
```bash
464-
# Install mypy
465-
uv add --dev pyright
466-
467-
# Run type checker
468-
uv run pyright src
469-
```
470-
471-
## Connect to Claude Desktop
472-
473-
<Steps>
474-
<Step title="Update Claude config">
475-
Add to `claude_desktop_config.json`:
476-
477-
```json
478-
{
479-
"mcpServers": {
480-
"weather": {
481-
"command": "uv",
482-
"args": "--directory path/to/your/project run weather-service",
483-
"env": {
484-
"OPENWEATHER_API_KEY": "your-api-key",
485-
}
486-
}
487-
}
488-
}
489-
```
490-
</Step>
491-
492-
<Step title="Restart Claude">
493-
1. Quit Claude completely
494-
495-
2. Start Claude again
496-
497-
3. Look for your weather server in the 🔌 menu
498-
</Step>
499-
</Steps>
500-
501-
## Try it out!
502-
503-
<AccordionGroup>
504-
<Accordion title="Check Current Weather" active>
505-
Ask Claude:
506-
507-
```
508-
What's the current weather in San Francisco? Can you analyze the conditions and tell me if it's a good day for outdoor activities?
509-
```
510-
</Accordion>
511-
512-
<Accordion title="Get a Forecast">
513-
Ask Claude:
514-
515-
```
516-
Can you get me a 5-day forecast for Tokyo and help me plan what clothes to pack for my trip?
517-
```
518-
</Accordion>
519-
520-
<Accordion title="Compare Weather">
521-
Ask Claude:
522-
523-
```
524-
Can you analyze the forecast for both Tokyo and San Francisco and tell me which city would be better for outdoor photography this week?
525-
```
526-
</Accordion>
527-
</AccordionGroup>
528-
529509
## Advanced features
530510

531511
<Steps>
@@ -789,6 +769,28 @@ uv run pyright src
789769
</Step>
790770
</Steps>
791771

772+
## Troubleshooting
773+
774+
### Installation issues
775+
776+
```bash
777+
# Check Python version
778+
python --version
779+
780+
# Reinstall dependencies
781+
uv sync --reinstall
782+
```
783+
784+
### Type checking
785+
786+
```bash
787+
# Install mypy
788+
uv add --dev pyright
789+
790+
# Run type checker
791+
uv run pyright src
792+
```
793+
792794
## Next steps
793795

794796
<CardGroup cols={2}>

introduction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Choose the path that best fits your needs:
1515
icon="bolt"
1616
href="/quickstart"
1717
>
18-
The fastest way to see MCP in action - connect example servers to Claude Desktop
18+
The fastest way to see MCP in action&mdash;connect example servers to Claude Desktop
1919
</Card>
2020
<Card
2121
title="Build your first server (Python)"

quickstart.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ brew install node git sqlite3
160160
161161
This tells Claude Desktop:
162162
1. There's an MCP server named "sqlite"
163-
2. Launch it using the `mcp-server-sqlite` command
163+
2. Launch it by running `uvx mcp-server-sqlite`
164164
3. Connect it to your test database
165165
166166
Save the file, and restart **Claude Desktop**.
@@ -237,7 +237,7 @@ brew install node git sqlite3
237237
238238
This tells Claude Desktop:
239239
1. There's an MCP server named "sqlite"
240-
2. Launch it using the `mcp-server-sqlite` command
240+
2. Launch it by running `uvx mcp-server-sqlite`
241241
3. Connect it to your test database
242242
243243
Save the file, and restart **Claude Desktop**.
@@ -325,8 +325,8 @@ Want to give Claude Desktop more local integration capabilities? Add these serve
325325
Add this to your config to let Claude Desktop read and analyze files:
326326
```json
327327
"filesystem": {
328-
"command": "mcp-server-filesystem",
329-
"args": ["/Users/YOUR_USERNAME/Desktop"]
328+
"command": "npx",
329+
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/YOUR_USERNAME/Desktop"]
330330
}
331331
```
332332
</Accordion>
@@ -335,8 +335,8 @@ Want to give Claude Desktop more local integration capabilities? Add these serve
335335
Connect Claude Desktop to your PostgreSQL database:
336336
```json
337337
"postgres": {
338-
"command": "mcp-server-postgres",
339-
"args": ["postgresql://localhost/mydb"]
338+
"command": "npx",
339+
"args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost/mydb"]
340340
}
341341
```
342342
</Accordion>

0 commit comments

Comments
 (0)