Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

MCP tool deadlines do not send protocol cancellation

Aperta
#17 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Trace Kit’s src/tools/mcp.rs at McpTool::dispatch, then read agentkit-mcp’s McpConnection::call_tool and RMCP’s RequestHandle/PeerRequestOptions. Verify how the awaited future currently handles deadlines, and consider the boundary behavior needed for protocol cancellation, pending-state cleanup, and a typed timeout error before Kit delegates its timeout policy there.

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

Descrizione

Kit's MCP wrapper can stop its local wait at the configured tool deadline, but the AgentKit MCP adapter exposes only an awaited call_tool future, not RMCP's RequestHandle. Dropping that future does not invoke RequestHandle::cancel, so Kit cannot send notifications/cancelled for the timed-out request. A server that never answers can retain the corresponding local RMCP pending request until the connection closes, and a remote side effect may still complete. Kit therefore warns callers to inspect remote state before retrying side effects.

A complete fix belongs at the AgentKit MCP boundary: expose a per-call deadline or cancellation-aware call API that uses RMCP PeerRequestOptions/RequestHandle, sends protocol cancellation on expiry, unregisters pending request state, and returns a typed timeout error. Kit can then delegate its timeout_seconds policy to that API instead of enforcing only the outer local deadline.

Relevant implementation: Kit src/tools/mcp.rs (McpTool::dispatch), AgentKit agentkit-mcp (McpConnection::call_tool), and RMCP RequestHandle.

Lingua principale
Rust
Stelle
43
Fork
5
Merge medio
5h 43m
PR unite (30g)
81

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 speakeasy-api/kit

Tutte le issue di speakeasy-api/kit

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.