Title: how to return images from an mcp server · Issue #2557 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: how to return images from an mcp server · Issue #2557 · modelcontextprotocol/python-sdk
X Title: how to return images from an mcp server · Issue #2557 · modelcontextprotocol/python-sdk
Description: Question i understand that i can base64 encode the image and return it using ImageContent type, but there seems to be a limit of the size of the image i can move. what is this limit? is there a better way to do this? Additional Context N...
Open Graph Description: Question i understand that i can base64 encode the image and return it using ImageContent type, but there seems to be a limit of the size of the image i can move. what is this limit? is there a bet...
X Description: Question i understand that i can base64 encode the image and return it using ImageContent type, but there seems to be a limit of the size of the image i can move. what is this limit? is there a bet...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/2557
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"how to return images from an mcp server","articleBody":"### Question\n\ni understand that i can base64 encode the image and return it using ImageContent type, but there seems to be a limit of the size of the image i can move. what is this limit?\n\nis there a better way to do this?\n\n### Additional Context\n\n_No response_","author":{"url":"https://github.com/JINO-ROHIT","@type":"Person","name":"JINO-ROHIT"},"datePublished":"2026-05-08T06:32:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2557/python-sdk/issues/2557"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fc73467c-402a-c8a3-4b80-1337cf710b00 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D54A:6972A:11516DA:176275D:6A594E9E |
| html-safe-nonce | 240c1b3c98f8132264685bb85756a2359a84893c53e2e89e2c1d80fe90b05a07 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTRBOjY5NzJBOjExNTE2REE6MTc2Mjc1RDo2QTU5NEU5RSIsInZpc2l0b3JfaWQiOiI4NzMxMTcwMTMwODQyMTc3MTgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4810abe20a7ef37410629d56cf8dea35e4a6ca52725e049982c45af89527b080 |
| hovercard-subject-tag | issue:4404328015 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/python-sdk/2557/issue_layout |
| twitter:image | https://opengraph.githubassets.com/43ef032dbfbe1e9d29261cc48f6947c621851ff942c39eb1303eba40ba8e62c5/modelcontextprotocol/python-sdk/issues/2557 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/43ef032dbfbe1e9d29261cc48f6947c621851ff942c39eb1303eba40ba8e62c5/modelcontextprotocol/python-sdk/issues/2557 |
| og:image:alt | Question i understand that i can base64 encode the image and return it using ImageContent type, but there seems to be a limit of the size of the image i can move. what is this limit? is there a bet... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JINO-ROHIT |
| hostname | github.com |
| expected-hostname | github.com |
| None | a540949572872b935b393b36db38922db390ae71c859537d741b8f3eb7e545b5 |
| turbo-cache-control | no-preview |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5f35ad1fb16417d6e6774c537b62a2fe92222907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width