Skip to content

Conversation

@tadasant
Copy link
Member

Summary

  • Updated the URL regex pattern in StreamableHttpTransport and SseTransport to allow template variables like {baseUrl} as an alternative to requiring the https:// prefix
  • This enables more flexible URL configuration in the remotes section of server.json

Changes

  • Modified the url field pattern from ^https?://[^\s]+$ to ^(https?://[^\s]+|\{[a-zA-Z_][a-zA-Z0-9_]*\}[^\s]*)$
  • Updated both openapi.yaml and the derived server.schema.json

Test plan

  • Verify URLs starting with https:// still validate correctly
  • Verify URLs starting with template variables like {baseUrl} now validate
  • Verify URLs starting with {baseUrl}/path also validate

🤖 Generated with Claude Code

Agent Orchestrator and others added 2 commits January 21, 2026 02:59
The URL pattern for StreamableHttpTransport and SseTransport now accepts
template variables like {baseUrl} as an alternative to requiring the
https:// prefix. This enables more flexible URL configuration in remotes.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Added explicit documentation that the url field must start with
http://, https://, or a template variable (e.g., {baseUrl}).

Co-Authored-By: Claude Opus 4.5 <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.

2 participants