Skip to content

Commit 2bf2d10

Browse files
chore(internal): use x-stainless-mcp-client-envs header for MCP remote code tool calls
1 parent 51352f3 commit 2bf2d10

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
@@ -163,7 +163,7 @@ const remoteStainlessHandler = async ({
163163
headers: {
164164
...(reqContext.stainlessApiKey && { Authorization: reqContext.stainlessApiKey }),
165165
'Content-Type': 'application/json',
166-
client_envs: JSON.stringify({
166+
'x-stainless-mcp-client-envs': JSON.stringify({
167167
SENT_DM_API_KEY: requireValue(
168168
readEnv('SENT_DM_API_KEY') ?? client.apiKey,
169169
'set SENT_DM_API_KEY environment variable or provide apiKey client option',

0 commit comments

Comments
 (0)