MCP: smaller answers for small-context clients

Aberta
#470 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
48/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
javascript
Domínio
api, tooling

Direção de pesquisa

Start by locating the MCP tool definitions for validate_view and render_view, then measure their current output and tools/list schema size as the issue describes. Compare compact output and schema text changes separately, recording savings for each. Done means an opt-in compact mode omits default parts, the existing full output remains the default, and the measurements show the savings per change.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

area:mcp enhancement

Measured on main with a local stdio server:

  • a layout call to validate_view or render_view returns the full normalized view, about 600 to 750 characters of mostly default keys (format:null, label:null, showAs:null, the whole chart block);
  • the tool text repeats structuredContent;
  • tools/list is 38 KB for 9 tools (render_view alone 3.9 KB), the largest fixed cost for a small context.

I want an opt-in compact output (only non-default parts) and a look at shortening the schema texts. The default stays as it is, since clients may rely on the full view. Measure the saving per change before building.

Linguagem predominante
JavaScript
Estrelas
1
Forks
1
Merge médio
3h 34min
PRs com merge (30d)
213

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de eizedev/pivotkit

Todas as issues de eizedev/pivotkit

Issues semelhantes

Mais issues de JavaScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.