Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
01ad036
feat(antigravity): managed releases can be the agy CLI or the paired …
yaacovcorcos Nov 21, 2026
e299b2d
feat(antigravity): install the catalog's agy CLI as the managed default
yaacovcorcos Nov 21, 2026
a3cb0d5
feat(antigravity): project plugin skills only for the paired runtime
yaacovcorcos Nov 21, 2026
a5e5fc6
fix(antigravity): skill picker hides plugins agy disabled
yaacovcorcos Nov 21, 2026
b57a2f2
docs(antigravity): the managed runtime is the agy CLI
yaacovcorcos Nov 21, 2026
ab81dc0
feat(antigravity): offer plugin sign-in from its tool challenge
yaacovcorcos Nov 21, 2026
dec6a89
feat(web): sign in to an Antigravity plugin from its chat notice
yaacovcorcos Nov 21, 2026
d10f3db
feat(chat): finish an MCP sign-in without pasting when the browser is…
yaacovcorcos Nov 21, 2026
730aa0a
fix(extensions): refresh a provider's inventory after a chat MCP sign-in
yaacovcorcos Nov 21, 2026
eb89614
docs: describe chat sign-ins for plugins and MCP servers
yaacovcorcos Nov 21, 2026
626d4d1
feat(contracts): add the Antigravity store kind and publisher affilia…
yaacovcorcos Nov 21, 2026
121ca13
feat(server): add the Antigravity Marketplace store through the agy CLI
yaacovcorcos Nov 21, 2026
9659b7b
feat(server): file Antigravity plugins under Discover categories and …
yaacovcorcos Nov 21, 2026
9ed71a9
feat(web): offer the Antigravity Marketplace in Extensions
yaacovcorcos Nov 21, 2026
4908506
docs: describe the Antigravity Marketplace store
yaacovcorcos Nov 21, 2026
cece108
feat(server): mark Antigravity store entries when the agent cannot ad…
yaacovcorcos Nov 21, 2026
4e53d35
feat(web): connect Gmail and other account services to Antigravity
yaacovcorcos Nov 21, 2026
c1422ff
docs: note Antigravity on account service pages
yaacovcorcos Nov 21, 2026
752de92
fix(server): list MCP servers from Antigravity plugins' mcp_config.json
yaacovcorcos Nov 21, 2026
6e9a406
fix(server): re-check Antigravity's plugins right before installing
yaacovcorcos Nov 21, 2026
27d6603
fix(server): tie Antigravity install receipts to one exact installed …
yaacovcorcos Nov 21, 2026
444d248
fix(server): refresh every Antigravity instance sharing a plugin folder
yaacovcorcos Nov 21, 2026
b59d75f
fix(antigravity): scrub every sign-in URL and trust only the plugin's…
yaacovcorcos Nov 21, 2026
69fcb48
fix(web): offer local-only sign-ins only on a proven same-computer co…
yaacovcorcos Nov 21, 2026
8fd675e
docs: record plugin sign-in provenance and same-computer gating
yaacovcorcos Nov 21, 2026
46d1728
fix(extensions): recognise the Antigravity plugins a user already has
yaacovcorcos Nov 21, 2026
6f6ad3a
fix(web): say every agent reaches Google services through its own sig…
yaacovcorcos Nov 21, 2026
4139035
fix(antigravity): close the re-check's install and sign-in gaps
yaacovcorcos Nov 21, 2026
f73a11a
docs(extensions): describe Antigravity Add and origin as built
yaacovcorcos Nov 21, 2026
118a73b
fix(antigravity): receipts need the folder agy created; Turn on finds…
yaacovcorcos Nov 21, 2026
b082aee
fix(antigravity): scrub every text update and key notices by session
yaacovcorcos Nov 21, 2026
e2b5449
fix(claude): finish a chat MCP sign-in from the browser without pasting
yaacovcorcos Nov 21, 2026
85edf78
fix(extensions): lock by agy's real plugin home; receipts per folder
yaacovcorcos Nov 21, 2026
4f47844
ci(runtime): void Antigravity publication when its runtime release ch…
yaacovcorcos Nov 21, 2026
62d4b0f
fix(antigravity): give the agy CLI's profile the user's plugins
yaacovcorcos Nov 21, 2026
49306ed
fix(extensions): say where an Antigravity plugin's MCP connection sig…
yaacovcorcos Nov 22, 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
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ jobs:
apps/server/src/scient/providerLifecycle/antigravityBrowserHelperPreflight.ts \
apps/server/scripts/qualify-antigravity-acp-catalog.ts \
apps/server/src/scient/providerLifecycle/antigravityAcpCatalog.ts \
apps/server/src/scient/providerLifecycle/antigravityRuntimeRelease.ts \
apps/server/package.json \
':(glob)apps/server/src/*.ts' \
apps/server/src/secrets/secretProviderDefinitions.ts \
Expand Down
27 changes: 23 additions & 4 deletions UPSTREAM.md
Original file line number Diff line number Diff line change
Expand Up @@ -1789,10 +1789,12 @@ generation runner. Retain these narrow mounts without forking the native engine.
Legacy CLI owners are named explicitly and remain active for explicit `agy` paths
and targets outside the qualified native set; removing a fallback requires native
replacement qualification, not merely an available Google archive. T3 now installs Google's
native CLI and dropped its pinned ACP release; Scient keeps that 1.4.5 release as the offline
floor of its qualified catalog (`scient/providerLifecycle/antigravityAcpCatalog.ts`), and T3's
native install runs only where no catalog is supplied. Moving Scient to the native CLI needs that
qualification first.
native CLI and dropped its pinned ACP release. Scient installs the CLI too, but from its own
catalog's `antigravity` key (1.5.12 and later, through T3's CLI install path), and keeps the
paired release as the floor where no qualified CLI is listed
(`scient/providerLifecycle/antigravityAcpCatalog.ts`); T3's own CLI channel runs only where no
catalog is supplied. `startRelease` treats the CLI as newer than any paired release, and
`prepareAntigravityProfile` takes `nativePlugins` so a CLI launch skips Scient's projection.
T3 also removed harness support and rates Antigravity below 1.5 broken; Scient's manifest keeps
1.4.5 supported, and the driver, prompt and permission seams keep the harness path (its own
`yolo`/`auto_edit` modes, video linking, runtime-policy approvals when no native Auto is
Expand Down Expand Up @@ -2607,6 +2609,23 @@ predicate. Tested in `ThreadLaunchService.scient.test.ts` and `EmptyRepositoryWo
T3 main has the same launch, save and wait code, so this is offered upstream; when T3 takes an
equal change, use its version and delete the blocks, modules and tests.

## MCP sign-in from a chat notice

T3's #39921 signs an agent's MCP server in from its notice and finishes only with a pasted callback
address. Scient makes `ProviderMcpSignInCompleteInput.callbackUrl` optional: without it, Codex's
`complete` waits up to five minutes for `mcpServer/oauthLogin/completed`, Claude's succeeds only
when the server is already connected, and `McpSignInAction` starts that wait when it opens the
page. `McpSignIn` refreshes the provider instance after a sign-in so Extensions updates. All edits
carry SCIENT-FORK markers; tests are `CodexAdapterV2.mcpSignIn.scient.test.ts`,
`McpSignIn.scient.test.ts` and `McpSignInAction.scient.browser.test.tsx`. The same change suits T3
and can be offered upstream; when T3 finishes local sign-ins itself, take its version and delete
the blocks and tests.

Antigravity plugin sign-in reuses that notice slot with a Scient `pluginSignIn` field on
`system_notice`, Scient's `scient.pluginSignIn.open` RPC, the ACP flavor hooks `scientToolNotice`
and `scientPluginSignIn`, and `ProviderAdapterV2SessionRuntime.scientPluginSignIn`; see the Antigravity
section of `docs/internals/scient-extensions.md`.

## Security policy

`.github/SECURITY.md` is Scient's: reports go to Scient's address or a private advisory on
Expand Down
2 changes: 2 additions & 0 deletions apps/server/src/auth/RpcAuthorization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ export const RPC_REQUIRED_SCOPES = {
[WS_METHODS.providerAuthComplete]: AuthProvidersManageScope,
[WS_METHODS.providerMcpSignInStart]: AuthProvidersManageScope,
[WS_METHODS.providerMcpSignInComplete]: AuthProvidersManageScope,
// SCIENT-FORK: an Antigravity plugin sign-in takes the same grant as an MCP sign-in.
[WS_METHODS.pluginSignInOpen]: AuthProvidersManageScope,
[WS_METHODS.chatGptReconnectProfile]: AuthProvidersManageScope,
[WS_METHODS.chatGptImportProfile]: AuthProvidersManageScope,
[WS_METHODS.chatGptHandoffSubscribe]: AuthProvidersManageScope,
Expand Down
67 changes: 67 additions & 0 deletions apps/server/src/mcpApps/McpSignIn.scient.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import { assert, it } from "@effect/vitest";
import {
ProviderInstanceId,
ProviderSessionId,
ProviderThreadId,
ThreadId,
} from "@t3tools/contracts";
import * as Deferred from "effect/Deferred";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import * as Option from "effect/Option";

import * as ProviderSessionManager from "../orchestration-v2/ProviderSessionManager.ts";
import * as ThreadManagementService from "../orchestration-v2/ThreadManagementService.ts";
import * as ProviderRegistry from "../provider/ProviderRegistry.ts";
import * as McpSignIn from "./McpSignIn.ts";

const instanceId = ProviderInstanceId.make("codex-chat-sign-in");
const providerThread = {
id: ProviderThreadId.make("provider-thread-chat-sign-in"),
providerInstanceId: instanceId,
providerSessionId: ProviderSessionId.make("provider-session-chat-sign-in"),
};
const input = {
threadId: ThreadId.make("thread-chat-sign-in"),
providerThreadId: providerThread.id,
server: "linear",
};

it.effect("refreshes the instance's inventory after a chat sign-in finishes", () =>
Effect.gen(function* () {
const refreshed = yield* Deferred.make<ProviderInstanceId>();
const completed: Array<string | undefined> = [];
const layer = McpSignIn.layer.pipe(
Layer.provide(
Layer.mergeAll(
Layer.mock(ThreadManagementService.ThreadManagementService)({
getThreadRecords: () => Effect.succeed({ providerThreads: [providerThread] }) as never,
}),
Layer.mock(ProviderSessionManager.ProviderSessionManagerV2)({
get: () =>
Effect.succeed(
Option.some({
mcpSignIn: {
start: () => Effect.succeed({ authorizationUrl: "https://linear.example/a" }),
complete: ({ callbackUrl }: { readonly callbackUrl: string | undefined }) =>
Effect.sync(() => {
completed.push(callbackUrl);
}),
},
}) as never,
),
}),
Layer.mock(ProviderRegistry.ProviderRegistry)({
refreshInstance: (id) => Deferred.succeed(refreshed, id).pipe(Effect.as([])),
}),
),
),
);
yield* Effect.gen(function* () {
const signIn = yield* McpSignIn.McpSignIn;
yield* signIn.complete(input);
assert.deepEqual(completed, [undefined]);
assert.strictEqual(yield* Deferred.await(refreshed), instanceId);
}).pipe(Effect.provide(layer));
}),
);
16 changes: 16 additions & 0 deletions apps/server/src/mcpApps/McpSignIn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
type ProviderInstanceId,
ProviderMcpSignInError,
type ProviderMcpSignInCompleteInput,
type ProviderMcpSignInCompleteResult,
Expand All @@ -15,6 +16,9 @@ import * as Schema from "effect/Schema";

import * as ProviderSessionManager from "../orchestration-v2/ProviderSessionManager.ts";
import * as ThreadManagementService from "../orchestration-v2/ThreadManagementService.ts";
// SCIENT-FORK:START — a chat sign-in refreshes the instance's Extensions inventory.
import * as ProviderRegistry from "../provider/ProviderRegistry.ts";
// SCIENT-FORK:END

/**
* Signs an agent's MCP server in through the session that reported it needs
Expand All @@ -37,6 +41,14 @@ const isSignInError = Schema.is(ProviderMcpSignInError);
const make = Effect.gen(function* () {
const threadManagement = yield* ThreadManagementService.ThreadManagementService;
const providerSessions = yield* ProviderSessionManager.ProviderSessionManagerV2;
// SCIENT-FORK:START — the agent keeps the new credential; re-read the servers it lists.
const providerRegistry = yield* ProviderRegistry.ProviderRegistry;
const serviceScope = yield* Effect.scope;
const refreshInventory = (providerThread: { readonly providerInstanceId: ProviderInstanceId }) =>
providerRegistry
.refreshInstance(providerThread.providerInstanceId)
.pipe(Effect.ignore, Effect.forkIn(serviceScope), Effect.asVoid);
// SCIENT-FORK:END

const fail = (server: string, detail: string) => new ProviderMcpSignInError({ server, detail });
const stopped = (server: string) =>
Expand Down Expand Up @@ -80,6 +92,8 @@ const make = Effect.gen(function* () {
providerThread,
server: input.server,
});
// SCIENT-FORK: see refreshInventory.
if (authorizationUrl === null) yield* refreshInventory(providerThread);
return {
authorizationUrl,
signedInAt: authorizationUrl === null ? DateTime.formatIso(yield* DateTime.now) : null,
Expand All @@ -99,6 +113,8 @@ const make = Effect.gen(function* () {
server: input.server,
callbackUrl: input.callbackUrl,
});
// SCIENT-FORK: see refreshInventory.
yield* refreshInventory(providerThread);
return { signedInAt: DateTime.formatIso(yield* DateTime.now) };
},
(effect, input) =>
Expand Down
2 changes: 2 additions & 0 deletions apps/server/src/observability/RpcInstrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ const RPC_AGGREGATES = {
[WS_METHODS.providerAuthComplete]: "provider",
[WS_METHODS.providerMcpSignInStart]: "provider",
[WS_METHODS.providerMcpSignInComplete]: "provider",
// SCIENT-FORK: Antigravity plugin sign-in from its chat notice.
[WS_METHODS.pluginSignInOpen]: "provider",
[WS_METHODS.chatGptReconnectProfile]: "provider",
[WS_METHODS.chatGptImportProfile]: "provider",
[WS_METHODS.chatGptHandoffSubscribe]: "provider",
Expand Down
Loading
Loading