Skip to content

Conversation

jspahrsummers
Copy link
Member

URLs can't be posted across MessagePorts, as they aren't compatible with structured clones. They might also not be JSON serializable properly?

This is a big issue for web apps and cross-window communication, so let's just use strings everywhere.

@jspahrsummers jspahrsummers merged commit cc2a168 into main Oct 18, 2024
2 checks passed
@jspahrsummers jspahrsummers deleted the justin/revert-urls branch October 18, 2024 16:54
Pizzaface pushed a commit to RewstApp/mcp-inspector that referenced this pull request May 2, 2025
cc2a168 Merge pull request modelcontextprotocol#22 from modelcontextprotocol/justin/revert-urls
209f8eb Revert string -> URL transformations

git-subtree-dir: packages/mcp-typescript
git-subtree-split: cc2a168
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