fix: enforce mime_type='text/html' inside FastMCP resource decorators and release 0.2.8

This commit is contained in:
2026-05-30 19:34:45 +02:00
parent 4d127541c5
commit 99ee6b7076
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ async def generate():
return decorator
def resource(self, path):
def resource(self, path, **kwargs):
def decorator(func):
self.resources[path] = func
return func
@@ -164,7 +164,7 @@ async def generate():
return decorator
def resource(self, path):
def resource(self, path, **kwargs):
def decorator(func):
self.resources[path] = func
return func