Limit how long a gateway tool call can run

Aperta
#2,836 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à
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

Start by tracing the gateway tool call and ordinary MCP client request paths; the issue does not name their files or tests. Read the linked credentials-and-lifecycle.md sections on call duration and pauses, then locate how the client writes requests, reads responses, and holds the send-once claim. Done means bounded call duration and response reads, with timed-out written requests ending as unknown outcomes and never replaying; the scope and fixed-versus-configurable limit still need decisions.

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

Descrizione

Related: #2536, #2564, #2730, #2731

Problem

A gateway tool call has no time limit on Mecatl's side. A gateway that keeps streaming, or never answers, holds the call open until the run is cancelled, and the call's send-once claim stays held the whole time. This is safe (the call is never sent twice), but a stuck call blocks the run until someone cancels it. The MCP client's ordinary path for MCP servers has the same gap.

Design

What

  • A maximum duration for a gateway tool call on the client side, no shorter than the vMCP's. Decide whether it is fixed or an operator setting.
  • A call that reaches it ends as an unknown outcome, if the request was written, and keeps its send-once claim.
  • A bound on how much of a response the client reads.
  • Decide whether the same limit applies to calls to ordinary MCP servers.

Done when

A gateway that never answers, or streams without end, ends the call at the limit as an unknown outcome, and the call is not sent again.

Lingua principale
Go
Stelle
309
Fork
29
Merge medio
15h 56m
PR unite (30g)
225

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 stacklok/mecatl

Tutte le issue di stacklok/mecatl

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.