You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add `discoverOAuthServerInfo()` function and unified discovery state caching for OAuth
6
+
7
+
- New `discoverOAuthServerInfo(serverUrl)` export that performs RFC 9728 protected resource metadata discovery followed by authorization server metadata discovery in a single call. Use this for operations like token refresh and revocation that need the authorization server URL outside of `auth()`.
8
+
- New `OAuthDiscoveryState` type and optional `OAuthClientProvider` methods `saveDiscoveryState()` / `discoveryState()` allow providers to persist all discovery results (auth server URL, resource metadata URL, resource metadata, auth server metadata) across sessions. This avoids redundant discovery requests and handles browser redirect scenarios where discovery state would otherwise be lost.
9
+
- New `'discovery'` scope for `invalidateCredentials()` to clear cached discovery state.
10
+
- New `OAuthServerInfo` type exported for the return value of `discoverOAuthServerInfo()`.
@@ -43,7 +43,7 @@ Both packages have a **required peer dependency** on `zod` for schema validation
43
43
44
44
### Middleware packages (optional)
45
45
46
-
The SDK also publishes small “middleware” packages under [`packages/middleware/`](packages/middleware/) that help you **wire MCP into a specific runtime or web framework**.
46
+
The SDK also publishes small "middleware" packages under [`packages/middleware/`](https://github.com/modelcontextprotocol/typescript-sdk/tree/main/packages/middleware) that help you **wire MCP into a specific runtime or web framework**.
47
47
48
48
They are intentionally thin adapters: they should not introduce new MCP functionality or business logic. See [`packages/middleware/README.md`](packages/middleware/README.md) for details.
49
49
@@ -127,10 +127,9 @@ Next steps:
127
127
## Documentation
128
128
129
129
- Local SDK docs:
130
-
-[docs/server.md](docs/server.md) – building MCP servers, transports, tools/resources/prompts, CORS, DNS rebinding, and deployment patterns.
131
-
-[docs/client.md](docs/client.md) – using the high-level client, transports, backwards compatibility, and OAuth helpers.
132
-
-[docs/capabilities.md](docs/capabilities.md) – sampling, elicitation (form and URL), and experimental task-based execution.
133
-
-[docs/faq.md](docs/faq.md) – environment and troubleshooting FAQs (including Node.js Web Crypto support).
130
+
-[docs/server.md](docs/server.md) – building MCP servers, transports, tools/resources/prompts, sampling, elicitation, tasks, and deployment patterns.
131
+
-[docs/client.md](docs/client.md) – building MCP clients: connecting, tools, resources, prompts, server-initiated requests, and error handling
132
+
-[docs/faq.md](docs/faq.md) – frequently asked questions and troubleshooting
134
133
- External references:
135
134
-[SDK API documentation](https://modelcontextprotocol.github.io/typescript-sdk/)
Thank you for helping us keep the SDKs and systems they interact with secure.
3
+
Thank you for helping keep the Model Context Protocol and its ecosystem secure.
4
4
5
5
## Reporting Security Issues
6
6
7
-
This SDK is maintained by [Anthropic](https://www.anthropic.com/) as part of the Model Context Protocol project.
7
+
If you discover a security vulnerability in this repository, please report it through
8
+
the [GitHub Security Advisory process](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability)
9
+
for this repository.
8
10
9
-
The security of our systems and user data is Anthropic’s top priority. We appreciate the work of security researchers acting in good faith in identifying and reporting potential vulnerabilities.
11
+
Please **do not** report security vulnerabilities through public GitHub issues, discussions,
12
+
or pull requests.
10
13
11
-
Our security program is managed on HackerOne and we ask that any validated vulnerability in this functionality be reported through their [submission form](https://hackerone.com/anthropic-vdp/reports/new?type=team&report_type=vulnerability).
14
+
## What to Include
12
15
13
-
## Vulnerability Disclosure Program
16
+
To help us triage and respond quickly, please include:
14
17
15
-
Our Vulnerability Program Guidelines are defined on our [HackerOne program page](https://hackerone.com/anthropic-vdp).
0 commit comments