Commit 74023cf
committed
fix(fastmcp): propagate mimeType in resource template listing and add test
- Fix resource template list did not include the mimeType attribute.
- Propagate mimeType from template metadata to the list output in FastMCP.
- Add test_resource_template_includes_mime_type to verify that listed resource templates include the correct mimeType and the resource is still accessible via the client.1 parent 6a84a2f commit 74023cf
File tree
2 files changed
+22
-0
lines changed- src/mcp/server/fastmcp
- tests/server/fastmcp
2 files changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| 299 | + | |
299 | 300 | | |
300 | 301 | | |
301 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
742 | 763 | | |
743 | 764 | | |
744 | 765 | | |
| |||
0 commit comments