fix(mcp): add OAuth skip endpoint and streamline in-chat interaction cards

Add a dedicated cancel route so users can skip mid-conversation OAuth without
token verification, and restyle OAuth/approval cards to match AgentStreamDisplay
with compact inline actions.
This commit is contained in:
wizardchen
2026-06-29 23:20:00 +08:00
committed by lyingbug
parent 505195865a
commit b5a1c88f75
10 changed files with 499 additions and 508 deletions
+1
View File
@@ -890,6 +890,7 @@ func RegisterMCPServiceRoutes(
// Resume an agent run paused on an in-conversation MCP OAuth prompt.
// Same tenant-member (Viewer+) gating rationale as tool-approvals.
agentTool.POST("/mcp-oauth-resolutions/:pending_id", g.Viewer(), oauthHandler.ResolveMCPOAuth)
agentTool.POST("/mcp-oauth-resolutions/:pending_id/cancel", g.Viewer(), oauthHandler.CancelMCPOAuth)
}
}