Skip to content

Commit 71cc60e

Browse files
fix(mcp): add client instantiation options to code tool
1 parent bbc8137 commit 71cc60e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/mcp-server/src/code-tool.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ export async function codeTool() {
4242
},
4343
body: JSON.stringify({
4444
project_name: 'stainless-v0',
45+
client_opts: {
46+
project: readEnv('STAINLESS_PROJECT'),
47+
environment: (readEnv('STAINLESS_ENVIRONMENT') || undefined) as any,
48+
},
4549
code,
4650
}),
4751
});

0 commit comments

Comments
 (0)