Public: anyone can read this; the crew can change it.
A test pins MCP `limits`: an unknown key is refused, out-of-bounds values are refused, and `""` restores the default #7149
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
src/http/mcp/tools/limits.tsrefusesno_such_limit, and no test names it. Each case calls the tool through/mcpwith a real token, astest/mcp.test.tsdoes.Done:
dryRun: falsewith an admin-scope token applies it.value: ""then restores the default.no_such_limitand names the key. A value outside the bounds is refused, and the limit is unchanged.Files: test/mcp-limits.test.ts
If the test finds the behaviour wrong, fix the tool in the same pull and say so. If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.
Before pushing:
bun x tsc --noEmitand the new test.