Limit how long a gateway tool call can run

オープン
#2,836 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Go
スター
309
フォーク
29
平均マージ
15時間 56分
マージ済み PR(30日)
225

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

stacklok/mecatl のほかの issue

stacklok/mecatl の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。