SEP: say whether `durationMs` and `timeoutMs` are integers; SDKs disagree and do not interoperate
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Área
- api, backend-api-design
Línea de trabajo
The mismatch lives in the SEP text at docs/sep.md (the durationMs and timeoutMs field types and the timeoutMs: 5000 example) and in the SDK wire types: go/sdk/interceptors/wire.go and csharp/sdk/src/ModelContextProtocol.Interceptors/Protocol/InvokeInterceptorRequestParams.cs and InterceptorResult.cs. Reproduce by serializing a Python float such as 5000.0 into those C# types. Done means the maintainers pick one integer-or-number option, the SEP text states it, and the SDKs agree on it. Because this needs a spec decision first, it is not a good first code change.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The SEP types the millisecond fields as number (durationMs, timeoutMs), and every example uses whole numbers (for instance timeoutMs: 5000). The SDKs have read this differently, and the readings do not interoperate.
| SDK | timeoutMs |
durationMs |
|---|---|---|
| Go | int64 |
int64 |
| C# | int? |
long? |
| Python (#30) | float, sent as 5000.0 |
float, sent as e.g. 0.0072 |
Effect. System.Text.Json throws JsonException when it reads {"timeoutMs":5000.0} into int? or {"durationMs":0.0072} into long? (tested on .NET 10 with a class that uses the same field types). So a C# invoker cannot read any result from a Python interceptor server, and a C# server rejects any Python request that carries timeoutMs. Go's encoding/json is expected to reject the same values for int64; that was not run.
Options.
- Say in the SEP that both fields are integer milliseconds. This matches every example in the text and the Go and C# SDKs; Python would round on send.
- Keep
numberand say that fractional values are allowed. Go and C# would then need to accept them.
Either way, senders could emit integers and receivers could accept any JSON number, which would make the SDKs tolerant of each other regardless of which option is chosen.
Found while reviewing #30.
🤖 Generated with Claude Code
- Lenguaje dominante
- C#
- Estrellas
- 24
- Forks
- 16
- Merge medio
- 3 min
- PR fusionados (30 d)
- 1
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de modelcontextprotocol/experimental-ext-interceptors
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
-
SEP: which severity decides blocking when `valid`, `severity` and `messages[].severity` disagree?Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
-
Python SDK: support `phase="both"` as decorator sugarQuizá libre de nuevo @olaservo la tomó hace 101 días y no hay ningún pull request abierto. Abiertoenhancement
modelcontextprotocol/experimental-ext-interceptors#37 · 1 asignado ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
modelcontextprotocol/experimental-ext-interceptors#29 · 2 comentarios ·
-
Conformance plan for InterceptorAbiertoenhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
modelcontextprotocol/experimental-ext-interceptors#20 · 1 comentario ·
Todos los issues de modelcontextprotocol/experimental-ext-interceptors
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
fluentmigrator/fluentmigrator#2460 ·
Los mantenedores suelen responder en 1 día
-
hand-to-AI
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
CactuseSecurity/firewall-orchestrator#5803 ·
Los mantenedores suelen responder en 1 día
-
Typed MINID rejects numeric thresholds with a leading plus sign accepted by Redis and ValkeyAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
DXF with empty names failsAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 3 días
-
bug python
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
ilia-sokolov/OfficeAgent.NET#89 ·
Los mantenedores suelen responder en 13 días