Skip to content

mcp: add tool call authentication state#336

Merged
connor4312 merged 2 commits into
mainfrom
conno/mcp-tool-auth
Jul 15, 2026
Merged

mcp: add tool call authentication state#336
connor4312 merged 2 commits into
mainfrom
conno/mcp-tool-auth

Conversation

@connor4312

Copy link
Copy Markdown
Member

Summary

  • add a resumable auth-required lifecycle state for MCP-contributed tool calls
  • surface tool authentication challenges through session-level input-needed state
  • add auth-required/auth-resolved actions and preserve tool-call state across pause/resume
  • update reducers and generated clients for Go, Kotlin, Rust, and Swift
  • document the authentication flow and add cross-language reducer fixtures

Testing

  • npm run generate -- --allow-missing-formatter
  • npm test
  • TypeScript client: 63 tests passed
  • Rust workspace: 75 tests passed
  • Kotlin client: all tests passed
  • Go client: all tests passed

connor4312 and others added 2 commits July 14, 2026 16:34
Model per-tool-call MCP authentication challenges as a resumable auth-required state, surface them through session input-needed state, and preserve reducer parity across generated clients.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Renumber the MCP authentication reducer fixtures after the newly landed risk-assessment cases and include the upstream optional riskAssessment field in the pending-confirmation expectation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@connor4312
connor4312 marked this pull request as ready for review July 14, 2026 23:43
@connor4312
connor4312 enabled auto-merge July 14, 2026 23:43
@connor4312
connor4312 merged commit 0a75d35 into main Jul 15, 2026
9 checks passed
@connor4312
connor4312 deleted the conno/mcp-tool-auth branch July 15, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants