Skip to content

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

Merged
ruturaj-browserstack merged 1 commit into
browserstack:mainfrom
aadarsh-bs:fix/AIMCP-187-rca-tool-trackmcp-args
Jun 12, 2026
Merged

fix: attach auth header on RCA tool MCPInstrumentation events#315
ruturaj-browserstack merged 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>
@aadarsh-bs aadarsh-bs force-pushed the fix/AIMCP-187-rca-tool-trackmcp-args branch from c554fa2 to 8b40fae Compare June 12, 2026 13:12
@ruturaj-browserstack ruturaj-browserstack merged commit 33ca653 into browserstack:main Jun 12, 2026
1 check passed
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.

2 participants