Commit 7731e62
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 2b620d7 commit 7731e62
12 files changed
Lines changed: 832 additions & 6 deletions
File tree
- .changeset
- docs
- examples/server-quickstart
- src
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
0 commit comments