Skip to content

Conversation

@sighthon
Copy link

@sighthon sighthon commented Dec 31, 2025

Implemented RFC 2045-compliant MIME validation using the email.message parser to ensure correct type/subtype structure. The update adds strict checks for mandatory components but relaxed check for parameter keys and values.

Fixes #1756

How Has This Been Tested?

Exhautive tests covering varied mime_types have been added.

Breaking Changes

N/A

Types of changes

  • [X ] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • [X ] I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • [X ] I have added appropriate error handling
  • [ X] I have added or updated documentation as needed

Additional context

https://www.iana.org/assignments/media-types/media-types.xhtml

@maxisbey maxisbey added enhancement Request for a new feature that's not currently supported P3 Nice to haves, rare edge cases labels Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Request for a new feature that's not currently supported P3 Nice to haves, rare edge cases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider removing or relaxing MIME type validation in FastMCP resources

2 participants