fix(postman): always pass environmentId to runCollection for remote APIs#101
Open
christosgkoros wants to merge 1 commit intokirodotdev:mainfrom
Open
Conversation
…f API target
The previous steering instruction "Use the environment for local testing
if it exists" caused the agent to skip passing environmentId when the
target API was remote (e.g. AWS API Gateway, staging, production).
This left environment variables like {{base_url}} unresolved, causing
all requests to fail.
Also clarified the "server must be running" check: it only applies to
local servers, not remote APIs.
Fixes postmanlabs/postman-mcp-server#130
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The steering instruction in
# Test/Run Collectionsread:The qualifier "for local testing" caused the agent to skip passing
environmentIdtorunCollectionwhen the target API was remote (e.g. AWS API Gateway, staging, or production endpoints). Environment variables like{{base_url}}were left unresolved, causing all requests to fail.A secondary instruction — "The server must be running first" — compounded the issue by being scoped to local servers only, creating ambiguity for remote API targets.
This was reported in postmanlabs/postman-mcp-server#130.
Fix
environmentIdwhen available, regardless of whether the API is local or remote.Changes
postman/steering/steering.md— two lines in# Test/Run Collections: