Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(server): outside agents sign in to the T3 MCP server with OAuth #15220

Closedjuliusmarmingewants to merge 11 commits intomain fromt3code/mcp-oauth/sign-inopened View on GitHub

Showing 54 changed files with 161 additions and 2 deletions (loading 52).

x
0 of 54 viewed, 54 left
161 additions and 2 deletionsapps/server/src/auth/EnvironmentAuth.tsModified
View file
@@ -2,6 +2,8 @@
AuthAccessTokenType,
AuthAccessWriteScope,
AuthAdministrativeScopes,
+ AuthOrchestrationOperateScope,
+ AuthOrchestrationReadScope,
AuthStandardClientScopes,
type AuthAccessTokenResult,
type AuthBrowserSessionResult,
@@ -9,6 +11,7 @@
type AuthClientSession,
type AuthCreatePairingCredentialInput,
type AuthEnvironmentScope,
+ type AuthMcpClientAccess,
type AuthPairingLink,
type AuthPairingCredentialResult,
type AuthSessionId,
@@ -63,6 +66,31 @@
readonly expiresAt: DateTime.Utc;
​
+/**
+ * Sessions an MCP client (an agent T3 Code did not launch) obtains through
+ * OAuth. They are accepted only by `/mcp`, where every action is capped by the
+ * access the user approved; the HTTP API and WebSocket reject them so an agent
+ * token cannot reach the full RPC surface around that cap.
+ *
+ * A read-only grant holds `orchestration:read` alone. Any other grant also