Commit 5794111
committed
refactor(examples): trim oauth/ to the browser auth-code flow; carve out repl/ playground
- delete elicitationUrl{Server,Client}.ts (URL-mode elicitation now lives in
examples/mrtr/; these had unescaped HTML interpolation of session/elicit ids)
- delete simpleClientCredentials.ts (superseded by examples/oauth-client-credentials/)
- delete simpleStreamableHttpServer.ts (quarried into the new repl/server.ts)
- escape the one query-derived value (`error`) interpolated into
simpleOAuthClient.ts's callback HTML via a small escHtml helper; sweep
confirmed no other HTML responses in the remaining oauth/ files
- move interactiveReplClient.ts -> examples/repl/client.ts and pair it with a
new fully-featured HTTP server (tools w/ input/output schemas + annotations,
prompts w/ completion, direct + templated resources, logging,
resources/list_changed published via handler.notify); excluded from the
harness (interactive REPL — run manually)
- update oauth/README + package.json to the trimmed contents; repoint the
docs/{client,server}.md cross-refs that named deleted files (#2325)1 parent 19a8036 commit 5794111
14 files changed
Lines changed: 444 additions & 2422 deletions
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments