Skip to content

Automatically change "/" path to "/*" in MCP server mount() method#149

Merged
threepointone merged 3 commits intocloudflare:mainfrom
irvinebroque:patch-1
Apr 5, 2025
Merged

Automatically change "/" path to "/*" in MCP server mount() method#149
threepointone merged 3 commits intocloudflare:mainfrom
irvinebroque:patch-1

Conversation

@irvinebroque
Copy link
Copy Markdown
Contributor

Fixes #148

Could instead throw an error here and ask people to set this themselves. But having hard time seeing problematic case if we just made it work as people might expect, who aren't thinking about the path argument as something that gets fed into URLPattern?

Fixes cloudflare#148

Could instead throw an error here and ask people to set this themselves. But having hard time seeing problematic case if we just made it work as people might expect, who aren't thinking about the `path` argument as something that gets fed into `URLPattern`?
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 5, 2025

🦋 Changeset detected

Latest commit: d1f497c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
agents Patch
hono-agents Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@threepointone threepointone merged commit 49e8b36 into cloudflare:main Apr 5, 2025
1 check passed
@threepointone
Copy link
Copy Markdown
Contributor

landing this, lgtm

@threepointone threepointone mentioned this pull request Apr 5, 2025
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.

MCP server mount method throws error when mounted to root "/"

2 participants