Title: fix(mcp): bound legacy mcp server name and description like the v2 contract by waleedlatif1 · Pull Request #10053 · simstudioai/sim · GitHub
Open Graph Title: fix(mcp): bound legacy mcp server name and description like the v2 contract by waleedlatif1 · Pull Request #10053 · simstudioai/sim
X Title: fix(mcp): bound legacy mcp server name and description like the v2 contract by waleedlatif1 · Pull Request #10053 · simstudioai/sim
Description: Summary Legacy POST /api/mcp/servers and PATCH /api/mcp/servers/[id] accepted an MCP server name and description of any length, while the v2 contract for the same use case caps them at 255 and 2000 characters Applied the same bounds and messages to createMcpServerBodySchema (the update schema derives from it via .partial(), so updates that omit name are unaffected) Type of Change Bug fix Testing Parsed the schemas before/after: 255-char name accepted, 256-char name and 2001-char description rejected on create and update, name-less updates still accepted; pre-fix all accepted bunx vitest run app/api/mcp/servers lib/mcp hooks/queries/mcp (40 files, 388 tests) bun run lint, bun run check:api-validation:strict Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing (new tests pass the test-audit authoring gate) No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA) 🤖 Generated with Claude Code
Open Graph Description: Summary Legacy POST /api/mcp/servers and PATCH /api/mcp/servers/[id] accepted an MCP server name and description of any length, while the v2 contract for the same use case caps them at 255 and 200...
X Description: Summary Legacy POST /api/mcp/servers and PATCH /api/mcp/servers/[id] accepted an MCP server name and description of any length, while the v2 contract for the same use case caps them at 255 and 200...
Opengraph URL: https://github.com/simstudioai/sim/pull/10053
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a02e5da0-d1d6-e16f-245d-5c153b8db1c6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CC58:D16D6:D55462:12590D2:6AFB5E25 |
| html-safe-nonce | 903d6d846c884c6bb61569486ddc97d80f248a3c2c852ab3cc055567faf7d1f8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzU4OkQxNkQ2OkQ1NTQ2MjoxMjU5MEQyOjZBRkI1RTI1IiwidmlzaXRvcl9pZCI6IjUzNDY4NDAwMzMwODY4ODk1MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f248aebf4003cec3f7adbcc89fb84dc19708d5dd05751b7478ad5d6f20154f04 |
| hovercard-subject-tag | pull_request:5316654116 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/10053/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Summary Legacy POST /api/mcp/servers and PATCH /api/mcp/servers/[id] accepted an MCP server name and description of any length, while the v2 contract for the same use case caps them at 255 and 200... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ef97164c52cf59bd10558ddec9c4f482763988 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width