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
{{ message }}
Repository navigation
Commit 8383de4
Browse filesBrowse the repository at this point in the historyBrowse files
Add static OAuth client settings for MCP servers (Zoo-Code-Org#2129)
* feat(mcp): add static OAuth client configuration (Zoo-Code-Org#2096)
* fix(mcp): preserve SDK OAuth resource (Zoo-Code-Org#2096)
* fix(mcp): keep OAuth requests consistent (Zoo-Code-Org#2096)
* fix(mcp): persist OAuth request constraints (Zoo-Code-Org#2096)
* test(mcp): cover OAuth creation constraints (Zoo-Code-Org#2096)
* fix(mcp): close OAuth lifecycle gaps (Zoo-Code-Org#2096)
* fix(mcp): harden callback and token storage (Zoo-Code-Org#2096)
* test(mcp): cover static OAuth client isolation and discovery gating
- SecretStorageService: isolate hasOAuthData, deleteOAuthData, and
onDidChange per client ID on one server URL, next to the dynamic key.
- McpHub: check the hasOAuthData arguments and each skipDiscovery term.
- McpOAuthClientProvider: start the callback server eagerly for a
static client without a redirectUri, so redirect_uris never use :0.
* fix(mcp): harden static OAuth callback lifecycle
* fix(mcp): close failed OAuth callback listeners
Copy file name to clipboardExpand all lines: src/services/mcp/McpHub.ts
+49-16Lines changed: 49 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ const stdioFieldsErrorMessage =
84
84
constsseFieldsErrorMessage=
85
85
"For 'sse' type servers, you must provide a 'url' field and can optionally include 'headers'"
86
86
conststreamableHttpFieldsErrorMessage=
87
-
"For 'streamable-http' type servers, you must provide a 'url' field and can optionally include 'headers'"
87
+
"For 'streamable-http' type servers, you must provide a 'url' field and can optionally include 'headers' and 'oauth'"
88
88
constmixedFieldsErrorMessage=
89
89
"Cannot mix 'stdio' and ('sse' or 'streamable-http') fields. For 'stdio' use 'command', 'args', and 'env'. For 'sse'/'streamable-http' use 'url' and 'headers'"
0 commit comments