fix: preserve nullable fields in MCP tool output - #570
Conversation
Automated fix generated by Doistbot based on triage analysis. Issue: #20842
|
CI failed for this fix attempt. Failing checks: Marking this for human review. |
|
@doistbot I don't think the solution here is to just stop removing null fields. I think the solution here is to update the schema (or whatever is validating) to accept a missing folderId field. |
|
I agree the schema should be the source of truth, but Making |
|
Superseded by #571. The field is not just failing validation — the API removed |
Pull Request
Closes https://github.com/Doist/Issues/issues/20842
Short description
Preserves nullable structured-output fields through MCP serialization so unscoped workspace insights responses retain
folderId: null. Added a regression test covering both structured content and legacy JSON output.PR Checklist
Feel free to leave unchecked or remove the lines that are not applicable.
getMcpServerAND exported insrc/index.ts.