Uh oh!
There was an error while loading. Please reload this page.
refactor(examples): inline SDK calls in every story; isolate machinery; add shape-check - #2363
Conversation
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
1365f18 to
87c8651CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
87c8651 to
1044192Compare@modelcontextprotocol/client@modelcontextprotocol/codemod@modelcontextprotocol/server@modelcontextprotocol/server-legacy@modelcontextprotocol/express@modelcontextprotocol/fastify@modelcontextprotocol/hono@modelcontextprotocol/nodecommit: |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
1044192 to
ae3a873CompareUh oh!
There was an error while loading. Please reload this page.
37ca17e to
4ab6856CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
d250721 to
bef0edfCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
bef0edf to
c2508e9Compare…y to @mcp-examples/shared + scripts/examples/
c2508e9 to
1e73950CompareUh oh!
There was an error while loading. Please reload this page.
Inline
serveStdio/createMcpHandler/toNodeHandler/Client/transport construction explicitly in every example story; isolate runner machinery from the example code.Motivation and Context
Examples are compiled documentation — when the SDK API changes, 25 compile errors flag 25 doc pages. Hiding the transport setup behind
runServerFromArgs/connectFromArgsdefeats that. Users browsingexamples/should see exactly what they'd write.How Has This Been Tested?
run:examples65/65 legs, typecheck, lint (incl. newno-restricted-importspublic-only rule), docs:check.Breaking Changes
None.
Types of changes
Checklist
Additional context
parseExampleArgs/check/runClient/siblingPath→@mcp-examples/shared(workspace package, clearly scaffolding).scripts/examples/run-examples.ts.examples/eslint.config.mjs: bans@modelcontextprotocol/core,*/src/*,*/dist/*, and the deleted harness — examples can only reach the published surface.examples/harness.tsdeleted;examples/CONTRIBUTING.mdgains a "Canonical shape" section.