Skip to content

Commit 804ab08

Browse files
chore(internal): use x-stainless-mcp-client-envs header for MCP remote code tool calls
1 parent 6e4b70e commit 804ab08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const remoteStainlessHandler = async ({
160160
headers: {
161161
...(reqContext.stainlessApiKey && { Authorization: reqContext.stainlessApiKey }),
162162
'Content-Type': 'application/json',
163-
client_envs: JSON.stringify({
163+
'x-stainless-mcp-client-envs': JSON.stringify({
164164
GRID_CLIENT_ID: requireValue(
165165
readEnv('GRID_CLIENT_ID') ?? client.username,
166166
'set GRID_CLIENT_ID environment variable or provide username client option',

0 commit comments

Comments
 (0)