MCP/REST: request id in successful answers, file names without spaces

Aperta
#481 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, react
Ambito
api, backend

Direzione di ricerca

Start by locating the MCP and REST response code and the code that derives the saved filename. Check how successful answers and errors currently carry request IDs, and where the REST header is set. Add the ID to successful structured content and the REST body, and slug the filename while keeping the title as the download display name; verify both behaviors with the relevant tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:mcp area:server enhancement

Two small things a test client noticed in three runs against the dev stack:

  • Successful MCP and REST answers carry no request id (errors do, and REST has the X-Request-Id header). A client that later reports "this answer looked wrong" has nothing to give the operator to find the log line. I want the request id in every answer's structured content (and REST's body), kept short.
  • The saved file name comes from the title with spaces (Umsatz pro Produkt.json). Links and shells handle that worse than umsatz-pro-produkt.json. Check how filename is derived and whether a slug (keeping the title for the download's display name) is better.
Lingua principale
JavaScript
Stelle
1
Fork
1
Merge medio
3h 34m
PR unite (30g)
213

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di eizedev/pivotkit

Tutte le issue di eizedev/pivotkit

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.