Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
e4d4f24
feat(sdk): add host-facing authenticateMcpServer for OAuth MCP servers
AdityaxDeore Nov 9, 2026
f69b84c
fix(sdk): address CodeRabbit review on authenticateMcpServer (#2493)
AdityaxDeore Nov 9, 2026
377c897
fix(sdk): address CodeRabbit round-2 review on authenticateMcpServer …
AdityaxDeore Nov 9, 2026
672c580
fix(sdk): address CodeRabbit round-3 review on authenticateMcpServer …
AdityaxDeore Nov 9, 2026
24f1088
test(sdk): cover the fence-after-settle and failed-reconnect outcomes…
AdityaxDeore Nov 9, 2026
11cba9d
fix(sdk): address CodeRabbit round-4 review on authenticateMcpServer …
AdityaxDeore Nov 9, 2026
129fb79
test(sdk): keep mocked init transparent to init.cache patches (#2493)
AdityaxDeore Nov 15, 2026
4b5cb57
fix(skills): evict the cancelled skill-read result before a retry (#2…
AdityaxDeore Nov 17, 2026
70e652e
fix(sdk): replace tools by exact server ownership in every auth outco…
AdityaxDeore Nov 17, 2026
ca6b111
fix(sdk): run pre-turn MCP work in the session's SDK context (#2493)
AdityaxDeore Nov 17, 2026
a77b7d8
fix(sdk): make the host's process-initialization wait abortable (#2493)
AdityaxDeore Nov 17, 2026
72593d0
fix(sdk): capture the host flow's credential identity before initiali…
AdityaxDeore Nov 17, 2026
ec45081
fix(sdk): keep surviving shared discovery inside its originating cred…
AdityaxDeore Nov 17, 2026
00c3ab9
fix(sdk): track live owners through the connection-cancellation lifec…
AdityaxDeore Nov 17, 2026
20ffdd1
test(mcp): update XAA scope-entry counts for the P1 initial-reads sco…
AdityaxDeore Nov 17, 2026
0a212e5
fix(sdk): satisfy typecheck for the abortable-init race and discovery…
AdityaxDeore Nov 17, 2026
69c64de
chore(mcp): keep the acquire-id_token comment with its call (#2493)
AdityaxDeore Nov 17, 2026
b9008d8
fix(mcp): register the stalled stdio closer once the wrapper supplies…
AdityaxDeore Nov 17, 2026
bb8c622
Merge upstream main into feat/2294-sdk-mcp-oauth-authenticate
AdityaxDeore Nov 18, 2026
c8bfee5
Bind host reconnect discovery to the actual server connection
AdityaxDeore Nov 18, 2026
8ec9d40
Replace a stale remote authenticate tool with the OAuth recovery tool
AdityaxDeore Nov 18, 2026
80c20e8
Honor the session environment during host-triggered MCP setup
AdityaxDeore Nov 18, 2026
f0c3509
Describe host completion and next-turn status consistently
AdityaxDeore Nov 18, 2026
d4ff835
Keep a live reconnect waiter when the creator cancels before transpor…
AdityaxDeore Nov 18, 2026
96e6e56
Release the correct connection after host cancellation / failed tool …
AdityaxDeore Nov 18, 2026
6ecdee4
Keep surviving discovery requests in the originating credential names…
AdityaxDeore Nov 18, 2026
d6b5464
Add regression tests for the jatmn review round (PR #2493)
AdityaxDeore Nov 18, 2026
4b44121
Fix CodeRabbit review round on PR #2493
AdityaxDeore Nov 18, 2026
58c3dd4
Add regression tests for the CodeRabbit review round (PR #2493)
AdityaxDeore Nov 18, 2026
0379acb
fix(mcp): record settled connects and adopt them synchronously (CodeR…
AdityaxDeore Nov 18, 2026
55cb215
test(mcp): regression for settled-connect adoption vs release
AdityaxDeore Nov 18, 2026
1c7c9d1
fix(sdk): snapshot session env, guard registration, fix win32 env del…
AdityaxDeore Nov 18, 2026
851516f
test(sdk): regression tests for CodeRabbit #2493 reviews 5952738851 a…
AdityaxDeore Nov 18, 2026
de0cdd0
fix(sdk): address CodeRabbit review 5955577457 (join assertions, win3…
AdityaxDeore Nov 18, 2026
bbc2521
test(sdk): regression tests for CodeRabbit #2493 reviews 5956557301 a…
AdityaxDeore Nov 18, 2026
b992165
fix(sdk): address CodeRabbit review 5956557301 and Copilot 5955514041…
AdityaxDeore Nov 18, 2026
8b4e5c4
test(sdk): regression tests for CodeRabbit #2493 review 5957362782 (r…
AdityaxDeore Nov 18, 2026
d9c8f10
fix(sdk): address CodeRabbit review 5957362782 (session-owned transpo…
AdityaxDeore Nov 18, 2026
447c95a
fix(sdk): address CodeRabbit review 5961865068 (ownership-aware MCP c…
AdityaxDeore Nov 18, 2026
10660a9
test(sdk): regression tests for CodeRabbit #2493 review 5961865068 (i…
AdityaxDeore Nov 18, 2026
5094d4b
fix(sdk): address jatmn, CodeRabbit and CodeQL follow-ups on MCP auth
AdityaxDeore Nov 18, 2026
cfc54fc
test(sdk): regression tests for MCP auth review follow-ups
AdityaxDeore Nov 18, 2026
9b7903c
fix(sdk): address CodeRabbit #2493 review 5966435933
AdityaxDeore Nov 19, 2026
e54aca1
Merge upstream/main into feat/2294-sdk-mcp-oauth-authenticate
AdityaxDeore Nov 19, 2026
7c69566
test(sdk): strengthen abort-discovery and setup-join tests per CodeRa…
AdityaxDeore Nov 19, 2026
0e94650
fix(sdk): honor host abort before installing MCP clients or submittin…
AdityaxDeore Nov 19, 2026
3ee8b13
fix(sdk): address CodeRabbit #2493 review leftovers (reconnect owner …
AdityaxDeore Nov 19, 2026
20eef78
fix(sdk): scope MCP task index by SDK client so one generation's fail…
AdityaxDeore Nov 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/entrypoints/sdk.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,26 @@
close(): void
/** Respond to a pending permission prompt. */
respondToPermission(toolUseId: string, decision: PermissionResult): void
/**
* Start the OAuth flow for one of the session's MCP servers and await it.
* The authorization URL is delivered to `options.onAuthorizationUrl` as
* soon as it is known; the returned promise resolves once the flow settles
* and the server has been reconnected, with the server's new status.
* Only `http`/`sse` servers support this. The flow runs in the
* environment captured when the call starts — a session's `env` overrides
* are not applied to a call made outside a turn. A call made by
* `canUseTool` during an environment-carrying turn uses that turn's
* environment instead. Closing the session aborts an in-flight flow.
*/
authenticateMcpServer(
name: string,
options?: {
/** Called with the authorization URL as soon as it is known. */
onAuthorizationUrl?: (url: string) => void
/** Abort this sign-in without closing the session. */
signal?: AbortSignal
},
): Promise<McpServerStatus>
}

// ============================================================================
Expand All @@ -487,7 +507,7 @@
name: string
description: string
inputSchema: Schema
handler: (args: any, extra: unknown) => Promise<CallToolResult>

Check warning on line 510 in src/entrypoints/sdk.d.ts

View workflow job for this annotation

GitHub Actions / smoke-and-tests

Unexpected any. Specify a different type
annotations?: ToolAnnotations
searchHint?: string
alwaysLoad?: boolean
Expand Down Expand Up @@ -571,7 +591,7 @@
name: string,
description: string,
inputSchema: Schema,
handler: (args: any, extra: unknown) => Promise<CallToolResult>,

Check warning on line 594 in src/entrypoints/sdk.d.ts

View workflow job for this annotation

GitHub Actions / smoke-and-tests

Unexpected any. Specify a different type
extras?: {
annotations?: ToolAnnotations
searchHint?: string
Expand Down
Loading
Loading