lint_project and project_report return unbounded, pretty-printed findings
Mantenedores costumam responder em até 2 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 58/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- api, performance
Direção de pesquisa
Start by reading src/tools/lint.ts and src/tools/scenes.ts at the cited locations, then inspect src/tools/result.ts and the generated tool definitions. Compare the response shape with the acceptance criteria: lint_project should cap findings by default and include the total and truncation flag, while summary mode should return counts only. Run npm run generate:tools after changes.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Summary
lint_project and project_report return every finding in one pretty-printed text block, with no limit, paging or summary mode. On a realistic untyped project this is tens of megabytes, far beyond what an MCP client or LLM context can take.
Where
src/tools/lint.ts:65,src/tools/scenes.ts:100src/tools/result.ts:9(JSON.stringify(data, null, 2))
Details
A synthetic project with 3000 scripts produced 108k lint findings: 90k untyped-declaration, which is on by default, plus 6k stringly-nodepath. JSON output was 37.3 MB for lint and 39.5 MB for report. Even 10k findings is about 3.5 MB. The server-side cost (sort 264 ms, stringify 154 ms) is small; the problem is the size of the response.
Impact
On real projects that do not use static typing, the main MCP tools return responses that clients truncate or reject, so agents cannot use them.
Suggested fix
- Add
maxFindings(default for example 500, withtruncated: trueand the total count in the payload) andoffset. - Add a
summarymode that returns counts per rule and per file. - Drop the indentation in
ok(). - Run
npm run generate:toolsafterwards.
Acceptance criteria
- By default,
lint_projecton a project with more findings than the limit returns at most the limit, plustotalFindingsand a truncation flag. - Summary mode returns counts only.
Filed by repo-audit/full-audit at e836036. Severity: medium. Effort: M. audit-key: performance|src/tools/result.ts|ok
- Linguagem predominante
- TypeScript
- Estrelas
- 0
- Forks
- 6
- Merge médio
- 1d 21h
- PRs com merge (30d)
- 8
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de TMHSDigital/godot-correctness-mcp
-
enhancement good first issue severity: medium
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
TMHSDigital/godot-correctness-mcp#123 ·
Mantenedores costumam responder em até 2 dias
-
dependencies good first issue severity: low
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
TMHSDigital/godot-correctness-mcp#116 ·
Mantenedores costumam responder em até 2 dias
-
bug good first issue severity: low
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
TMHSDigital/godot-correctness-mcp#107 ·
Mantenedores costumam responder em até 2 dias
-
bug good first issue severity: low
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
TMHSDigital/godot-correctness-mcp#106 ·
Mantenedores costumam responder em até 2 dias
-
bug good first issue severity: medium
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
TMHSDigital/godot-correctness-mcp#105 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de TMHSDigital/godot-correctness-mcp
Issues semelhantes
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
openclaw/openclaw#203385 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
nwverse/persona#12800 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
Mantenedores costumam responder em até 1 dia
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
microsoft/playwright#44289 ·
Mantenedores costumam responder em até 1 dia
-
good first issue
Dificuldade 2/5 Meio dia Facilidade para iniciantes 65/100
Mantenedores costumam responder em até 1 dia