Skip to content

fix: strip None from structured output, add resource templates#12

Merged
dankelleher merged 1 commit intomainfrom
fix/strip-none-structured-output
Feb 14, 2026
Merged

fix: strip None from structured output, add resource templates#12
dankelleher merged 1 commit intomainfrom
fix/strip-none-structured-output

Conversation

@dankelleher
Copy link
Member

@dankelleher dankelleher commented Feb 14, 2026

Summary

  • Strip None values from structured output for MCP spec compatibility — some clients reject null fields in structuredContent
  • Remove auto-injected params (user_email, service) from tool docstrings and output models
  • Inline $ref/$defs in output schemas since MCP clients don't resolve JSON Schema references
  • Add MCP resource templates for binary file access (NEXUS-1165):
    • gmail://messages/{message_id}/attachments/{attachment_id} — raw attachment bytes
    • gdrive://files/{file_id} — raw file bytes (Google native files exported as PDF/XLSX)
  • Regenerate tool schemas for all services with the updated models

Expose raw file bytes via MCP resource templates, solving the binary
file handling problem (NEXUS-1165) without adding format-specific parsers.
Clients receive base64 BlobResourceContents and decide how to handle them.

- gmail://messages/{message_id}/attachments/{attachment_id}
- gdrive://files/{file_id} (Google native files exported as PDF/XLSX)
@dankelleher dankelleher merged commit c197ea0 into main Feb 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant