Repository navigation
feat(native): implement MCP Use in another app flow and palette action (CN-MCP, KB-PALETTE) - #422
Merged
Merged
Conversation
…n (CN-MCP, KB-PALETTE)
This was referenced Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Wave F2 Track 1 —
CN-MCP(#375) andKB-PALETTE(#250):CN-MCP(todo->done):crates/core/src/mcp/{mod,apps,gate,approval}.rs):mcpApps.ts(MCP_APPS9 external targets with Gemini hidden,OTHER_MCP_APP_STEPS,mcpHandoffAction, JS-compatibleencodeURIComponent, safehttps:/grokbot://link checks).mcpGate.ts&t3ConnectState.ts(resolveMcpGate,afterFailedCheck,isManagedTunnelActive,t3ConnectMcpUrlplain DNS validation,resolveT3ConnectTurnOn,McpCapabilitiesdecoding).ConnectAgentSurface.logic.ts,ApproveAgentSurface.tsx,approve-agent.tsx, andconnectMcpApproval.ts(AuthMcpClientAccess,mcpClientScopes,mcpApprovalCode,parseMcpApprovalCode,resolveMcpAccess,resolveApprovalDecision,ceilingReason,agentRedirectUrl,isLoopbackHost,/approve-agent&/connect-agentURL parsing).crates/app/src/mcp/{mod,wizard,approval,tests}.rs,workspace.rs):UseInAnotherAppDialog.tsx: full gate screen coverage (checking,sign-in,disconnected,update,no-relay-read,error,turn-onon-host/policy,offline,open), 2-step hosted approval (mcpHostedApproval) vs 3-step access + one-use code minting (POST /api/auth/pairing-tokenwith{ label: "App sign-in", access }& 1s countdown only while live),"Set up another way",LinkedLine(peerLinks.list), and"Manage access"-> Settings -> Sharing & access.ApproveAgentSurface.tsx&ConnectAgentSurface.tsx: intercepts/approve-agent&/connect-agentURLs, callsPOST /oauth/mcp/approvalandPOST /oauth/mcp/decisionon connected environments, enforces 700ms arming delay + window-focus rearm, supports one-click approval, sign-in codes, level-bound codes, managed runtime-mode ceilings, safe redirect validation, and hosted browser/code handoff for unsaved relay machines (pendingCN-RELAY#93).KB-PALETTE(partial->done):action:use-in-another-app("Use T3 Code in another app (MCP)") with full web search terms (mcp,connector,another app,poke,claude,chatgpt,grok,muse,instinct,openclaw,hermes) intocrates/app/src/palette/mod.rs, closing the sole remaining gap in## Commands and keys(4/4 done).apps/native/parity/LEDGER.md):CN-MCP(todo->done) andKB-PALETTE(partial->done), formatted withvp fmt.Upstream refs:
pingdotgg/t3code#33196,pingdotgg/t3code#33600,pingdotgg/t3code#33632.Verification (
a542d92f8a51a7856a12a3b9ac35e997f44334af)vp fmt --check apps/native/parity/LEDGER.md— passcd apps/native && node scripts/gen-theme.ts --check && node --test parity/sync.test.ts && node conformance/generate.ts --check— pass (tokens.rsup to date, 42/42 sync tests)cd apps/native && cargo test -p t3-core -p t3-client— pass (t3-client135/135,t3-core1666/1666,conformance8/8)cd apps/native && T3_NATIVE_HOME=$(mktemp -d) cargo test -p t3-native --features snapshot -- mcp palette workspace— pass (23/23)cd apps/native && cargo clippy --workspace --all-targets -- -D warnings && cargo build -p t3-native— pass (0 clippy warnings)Done with Antigravity.