feat: Add Support for customUserVar Replacement in 'args' Field (#8743)

This commit is contained in:
Dustin Healy 2025-07-30 11:37:56 -07:00 committed by GitHub
parent 8a1a38f346
commit 1050346915
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 49 additions and 0 deletions

View file

@ -124,6 +124,14 @@ export function processMCPEnv(
newObj.env = processedEnv;
}
if ('args' in newObj && newObj.args) {
const processedArgs: string[] = [];
for (const originalValue of newObj.args) {
processedArgs.push(processSingleValue({ originalValue, customUserVars, user }));
}
newObj.args = processedArgs;
}
// Process headers if they exist (for WebSocket, SSE, StreamableHTTP types)
// Note: `env` and `headers` are on different branches of the MCPOptions union type.
if ('headers' in newObj && newObj.headers) {