Skip to content

[BUG] #170

Open
Open
[BUG]#170
@szymansk

Description

@szymansk

Describe the bug
Every endpoint returns only TextContent. Other content types like ImageContent or EmbeddedRessource are ignored.

[
{
"type": "text",
"text": "'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte"
}
]

To Reproduce
Implement an endpoint that returns an image.

Affected Code*
The method FastApiMCP._execute_api_tool only (lines 418-444 of fastapi_mcp/server.py) returns only TextContent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions