Skip to content

Test MCP initialization without a User-Agent - #3751

Open
theletterf wants to merge 1 commit into
mainfrom
fix/mcp-no-user-agent-synthetic
Open

Test MCP initialization without a User-Agent#3751
theletterf wants to merge 1 commit into
mainfrom
fix/mcp-no-user-agent-synthetic

Conversation

@theletterf

Copy link
Copy Markdown
Member

Summary

  • Add an MCP initialize request to the deployed-environment synthetic monitor.
  • Override the synthetic client default with an empty User-Agent to reproduce Codex RMCP traffic.
  • Assert a 200 response with text/event-stream before running the existing tool checks.

Companion regression coverage for elastic/docs-infra#373 and elastic/docs-infra#346.

Validation

  • npm run compile:check
  • Prettier formatting
  • Current edge: no-User-Agent initialize returns 403 as expected before the WAF fix is deployed.
  • Current edge: identical initialize request with a User-Agent returns 200 text/event-stream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant