Skip to content
Source
Docs
Explore
Skills
MCP servers
For agents
Search or jump to…
Sign in
Sign up
pingdotgg
/
t3code
Pull requests
pingdotgg
t3code
Public
Synced with GitHub
Popular #1
Fork
0
0
0
0
1
2
3
4
5
6
7
8
9
Code
Architecture
Issues
Pull requests
Community
Assets
Artifacts
Releases
CI
Agents
Settings
fix(server): Antigravity turns now get profile MCP tools from the first model call
#40300
Send to my agent
Closed
juliusmarminge
wants to merge 2 commits into
main
from
refs/pull/40300/head
·
opened
2 weeks ago
View on GitHub
Conversation
7
Commits
2
Files changed
3
Impact
Showing
3 changed files
with
120 additions
and
0 deletions
.
x
0 of 3 viewed, 3 left
Files
Hide whitespace
Unified
Split
23 additions and 0 deletions
+23
-0
apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts
Modified
Diff
Before/After
Viewed
apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts
View file
Expand up
Show all 26 lines
@@ -27,6 +27,7 @@
27
27
antigravitySteersWithPrompt,
28
28
applyAntigravityAcpModelSelection,
29
29
buildAntigravityPrompt,
30
+
readAntigravityProfileMcpServers,
30
31
type
AntigravityAcpRuntimeInput
,
31
32
}
from
"../../provider/acp/AntigravityAcpSupport.ts"
;
32
33
import
{
Expand up
Expand down
Show all 118 lines
@@ -151,11 +152,27 @@
151
152
const
makeRuntime =
Effect
.
fn
(
"AntigravityAdapterV2.makeRuntime"
)(
152
153
function
* (input:
AcpAdapterV2RuntimeInput
) {
153
154
const
scope =
yield
*
Scope
.
fork
(
yield
*
Effect
.
scope
);
155
+
const
sessionServerNames =
new
Set
(input.
mcpServers
.
map
((server) => server.
name
));
156
+
const
profileServers = (
157
+
profileDirectory ===
undefined
158
+
? []
159
+
:
yield
*
readAntigravityProfileMcpServers
(profileDirectory).
pipe
(
160
+
Effect
.
provideService
(
FileSystem
.
FileSystem
, options.
fileSystem
),
161
+
Effect
.
provideService
(
Path
.
Path
, options.
path
),
162
+
)
163
+
).
filter
((server) => !sessionServerNames.
has
(server.
name
));
164
+
const
withProfileServers = (
165
+
activation:
AcpSessionRuntime
.
AcpSessionActivationOptions
|
undefined
,
166
+
) =>
167
+
activation?.
mcpServers
===
undefined
168
+
? activation
169
+
: { ...activation,
mcpServers
: [...activation.
mcpServers
, ...profileServers] };
154
170
const
runtime =
yield
* options
155
171
.
withProcess
(
Home
Search
Explore
Menu