Skip to content

Send the default User-Agent on the MCP endpoint probe - #2258

Merged
RhysSullivan merged 1 commit into
mainfrom
mcp-user-agent-probe
Oct 10, 2026
Merged

RhysSullivan merged 1 commit into
mainfrom
mcp-user-agent-probe

Conversation

@RhysSullivan

@RhysSullivan RhysSullivan commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

#2254 added a default User-Agent: executor to the MCP transport, but the endpoint shape probe (run when adding a server whose connection attempt fails) still sent its initialize POST, GET fallback, discover POST, and RFC 9728 protected-resource metadata GET with no User-Agent. Servers that reject such requests still failed the add flow.

The probe now sets the User-Agent on every request through its HTTP client: the configured one if present, otherwise the default. The constant and helpers move to user-agent.ts, shared by the transport and the probe.

Tests are in #2259.

Verification

  • MCP plugin vitest run, typecheck; repo lint and format:check pass.

@RhysSullivan
RhysSullivan added this pull request to stack #2260 October 10, 2026 17:53
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud c4af5ce Oct 10 2026, 05:56 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing c4af5ce Commit Preview URL

Branch Preview URL
Oct 10 2026, 05:54 PM

@RhysSullivan RhysSullivan changed the title mcp user agent probe Send the default User-Agent on the MCP endpoint probe Oct 10, 2026
@github-actions

github-actions Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Cloudflare preview

Torn down — the PR is closed.

@pkg-pr-new

pkg-pr-new Bot commented Oct 10, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@2258

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@2258

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@2258

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@2258

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@2258

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@2258

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@2258

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@2258

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@2258

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@2258

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@2258

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@2258

executor

npm i https://pkg.pr.new/executor@2258

commit: c4af5ce

@RhysSullivan
RhysSullivan marked this pull request as ready for review October 10, 2026 18:00
@RhysSullivan
RhysSullivan merged commit 8e4a8a4 into main Oct 10, 2026
43 of 44 checks 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.

1 participant