Repository navigation
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Closes #53401
Type of change
What does this PR do?
MCP server names longer than 100 characters return 404 before reaching the handler because of the router's default parameter length limit.
Set the shared router's
maxParamLengthto 512, as suggested in the issue. Add a regression test covering HTTP add and remove requests with names of 100, 101, and 512 characters.How did you verify your code works?
packages/server:bun test --only-failures— 69 passed, 5 skipped.packages/server:bun typecheck— passed.bun run check— passed.git diff --check— passed.Screenshots / recordings
Not a UI change.
Checklist