typescript-sdk/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Paul Carleton 09623e2aa5
Merge commit from fork
* Add secure default for DNS rebinding, use in examples

* Update README examples to use createMcpExpressApp, bump to 1.23.0

- Update all server examples to use createMcpExpressApp() for secure defaults
- Rewrite DNS Rebinding Protection section to document new middleware approach
- Bump version from 1.23.0-beta.0 to 1.23.0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Add IPv6 support, allowedHosts option, and warning for unprotected servers

- Use native URL API to parse Host headers (handles IPv6 correctly)
- Add [::1] (IPv6 localhost) to localhostHostValidation
- Add ::1 to list of localhost hosts that get automatic protection
- Add allowedHosts option to createMcpExpressApp for custom host validation
- Warn when binding to 0.0.0.0 or :: without allowedHosts configured
- Add tests for IPv6 and allowedHosts functionality

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update remaining examples to use createMcpExpressApp and add DNS rebinding docs

- Update simpleTaskInteractive.ts, ssePollingExample.ts, and elicitationUrlExample.ts
  to use createMcpExpressApp() instead of express() + express.json()
- Add DNS rebinding protection section to docs/server.md explaining how to use
  createMcpExpressApp() and hostHeaderValidation middleware

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-02 13:23:06 +00:00
..
__fixtures__ fix hanging stdio servers (#1200) 2025-12-01 14:56:48 +00:00
__mocks__ run prettier (#995) 2025-10-02 18:21:00 +01:00
client fix: normalize headers in sse transport (#856) 2025-12-01 16:38:19 +00:00
examples Merge commit from fork 2025-12-02 13:23:06 +00:00
experimental feat: eslint rule to prefer node protocols (#1187) 2025-11-28 11:37:25 +00:00
integration-tests fix hanging stdio servers (#1200) 2025-12-01 14:56:48 +00:00
server Merge commit from fork 2025-12-02 13:23:06 +00:00
shared feat: add closeStandaloneSSEStream for GET stream polling (#1203) 2025-12-01 17:01:20 +00:00
validation SEP-1613: use.catchall() on inputSchema/outputSchema to support JSON Schema 2020-12 (#1135) 2025-11-21 13:41:12 +00:00
inMemory.test.ts run prettier (#995) 2025-10-02 18:21:00 +01:00
inMemory.ts run prettier (#995) 2025-10-02 18:21:00 +01:00
spec.types.test.ts feat: backwards-compatible createMessage overloads for SEP-1577 (#1212) 2025-12-02 13:18:22 +00:00
spec.types.ts fix: React to upstream RC schema changes for form mode elicitation requests (#1164) 2025-11-25 11:21:07 +00:00
types.capabilities.test.ts SEP-1036: URL Elicitation (#1105) 2025-11-18 10:53:15 +00:00
types.test.ts feat: backwards-compatible createMessage overloads for SEP-1577 (#1212) 2025-12-02 13:18:22 +00:00
types.ts feat: backwards-compatible createMessage overloads for SEP-1577 (#1212) 2025-12-02 13:18:22 +00:00