Rewrite Quickstart guide with type-checked code examples
Rewrites the Quickstart tutorial to provide a more focused, step-by-step introduction to building MCP Apps. The guide now uses synced code fences that pull from `examples/quickstart/`, ensuring all code shown in the documentation is type-checked and tested. Key improvements: - Clearer project setup instructions with explicit commands - Streamlined explanations of the tool + resource registration pattern - Added screenshot showing the completed app - E2E test coverage validates the example works end-to-end Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
56a2e79bba
commit
2109dccadb
2 changed files with 672 additions and 136 deletions
|
|
@ -17,6 +17,7 @@ const DYNAMIC_MASKS: Record<string, string[]> = {
|
|||
"cohort-heatmap": ['[class*="heatmapWrapper"]'], // Heatmap grid (random data)
|
||||
"customer-segmentation": [".chart-container"], // Scatter plot (random data)
|
||||
"debug-server": ["#event-log", "#callback-table-body"], // Event log and callback counts (dynamic)
|
||||
quickstart: ["#server-time"], // Server time display
|
||||
"say-server": [".playBtn", ".playOverlayBtn"], // Play buttons may have different states
|
||||
shadertoy: ["#canvas"], // WebGL shader canvas (animated)
|
||||
"system-monitor": [
|
||||
|
|
@ -101,6 +102,11 @@ const ALL_SERVERS = [
|
|||
{ key: "map-server", name: "CesiumJS Map Server", dir: "map-server" },
|
||||
{ key: "pdf-server", name: "PDF Server", dir: "pdf-server" },
|
||||
{ key: "qr-server", name: "QR Code Server", dir: "qr-server" },
|
||||
{
|
||||
key: "quickstart",
|
||||
name: "Quickstart MCP App Server",
|
||||
dir: "quickstart",
|
||||
},
|
||||
{ key: "say-server", name: "Say Demo", dir: "say-server" },
|
||||
{
|
||||
key: "scenario-modeler",
|
||||
|
|
|
|||
BIN
tests/e2e/servers.spec.ts-snapshots/quickstart.png
Normal file
BIN
tests/e2e/servers.spec.ts-snapshots/quickstart.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
Loading…
Reference in a new issue