Skip to content

fix: attach auth header on RCA tool MCPInstrumentation events#315

Open
aadarsh-bs wants to merge 1 commit into
browserstack:mainfrom
aadarsh-bs:fix/AIMCP-187-rca-tool-trackmcp-args
Open

fix: attach auth header on RCA tool MCPInstrumentation events#315
aadarsh-bs wants to merge 1 commit into
browserstack:mainfrom
aadarsh-bs:fix/AIMCP-187-rca-tool-trackmcp-args

Conversation

@aadarsh-bs

Copy link
Copy Markdown
Collaborator

Fixes AIMCP-187. fetchRCA/getBuildId/listTestIds pass config into trackMCP's error slot (3-arg call), so no auth header is attached and /sdk/v1/event silently drops the event — these tools log zero usage despite being invoked. Fix passes undefined as the error arg and config as the 4th. Build+tests pass; verified end-to-end (0 events before, success=true after). Full RCA on the ticket.

fetchRCA, getBuildId and listTestIds called trackMCP with config in the
3rd (error) argument slot, leaving the config param undefined. Without
config, no Authorization header is attached and the /sdk/v1/event
endpoint silently drops the event (raise_error:false + .catch), so these
tools logged zero usage despite being invoked. Pass undefined as the
error arg and config as the 4th, matching the other tools.

Fixes AIMCP-187.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant