Skip to content

Commit 725c3fe

Browse files
Import "Build a weather server" quickstart guide
Import and adapt the server quickstart tutorial from modelcontextprotocol.io and the companion `weather-server-typescript` example from `modelcontextprotocol/quickstart-resources` into this repo. `docs/server-quickstart.md` uses code fences with `source=` attributes so code snippets are type-checked and kept in in sync with the full runnable example in `examples/server-quickstart/`. Supporting changes: - `docs/documents.md`: list the new doc - `typedoc.config.mjs`: add `powershell` syntax highlighting - `.prettierignore`: exclude `examples/server-quickstart/` (2-space indent to match ecosystem conventions) - `scripts/sync-snippets.ts`: fix `dedent()` short-circuit on empty `baseIndent`; move `.trim()` so region extraction sees full file Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 81f1756 commit 725c3fe

12 files changed

Lines changed: 832 additions & 6 deletions

File tree

.changeset/config.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,10 @@
77
"access": "public",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
10-
"ignore": ["@modelcontextprotocol/examples-client", "@modelcontextprotocol/examples-server", "@modelcontextprotocol/examples-shared"]
10+
"ignore": [
11+
"@modelcontextprotocol/examples-client",
12+
"@modelcontextprotocol/examples-server",
13+
"@modelcontextprotocol/examples-server-quickstart",
14+
"@modelcontextprotocol/examples-shared"
15+
]
1116
}

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ pnpm-lock.yaml
1111

1212
# Ignore generated files
1313
src/spec.types.ts
14+
15+
# Quickstart example uses 2-space indent to match ecosystem conventions
16+
examples/server-quickstart/

docs/documents.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
---
22
title: Documents
33
children:
4+
- ./server-quickstart.md
45
- ./server.md
56
- ./client.md
67
- ./faq.md
78
---
89

910
# Documents
1011

12+
- [Server Quickstart](./server-quickstart.md) – build a weather server from scratch and connect it to Claude for Desktop
1113
- [Server](./server.md) – building MCP servers, transports, tools/resources/prompts, sampling, elicitation, tasks, and deployment patterns
1214
- [Client](./client.md) – using the high-level client, transports, OAuth helpers, handling server‑initiated requests, and tasks
1315
- [FAQ](./faq.md) – frequently asked questions and troubleshooting

0 commit comments

Comments
 (0)