Title: Force returning tool result/ressource as artifact without regeneration · Issue #509 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: Force returning tool result/ressource as artifact without regeneration · Issue #509 · modelcontextprotocol/python-sdk
X Title: Force returning tool result/ressource as artifact without regeneration · Issue #509 · modelcontextprotocol/python-sdk
Description: Is your feature request related to a problem? Please describe. The problem I am facing is that I am currently creating an MCP server that through tools creates artifacts (python code, html code) There is no problem in the model receiving...
Open Graph Description: Is your feature request related to a problem? Please describe. The problem I am facing is that I am currently creating an MCP server that through tools creates artifacts (python code, html code) Th...
X Description: Is your feature request related to a problem? Please describe. The problem I am facing is that I am currently creating an MCP server that through tools creates artifacts (python code, html code) Th...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/509
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Force returning tool result/ressource as artifact without regeneration","articleBody":"**Is your feature request related to a problem? Please describe.**\nThe problem I am facing is that I am currently creating an MCP server that through tools creates artifacts (python code, html code)\n\nThere is no problem in the model receiving the outcome, but when it presents it in the chat, it essentially regenerates it which causes the following problems:\n- slight alterations\n- token usage\n- speed\n\n**Describe the solution you'd like**\nI would like to be able to enforce the direct return of the tool/ressource. \n\nIf using Claude desktop, I would like to even return the output as an artifact, but that is of course specific to anthropic/Claude\n\n_Examples:_\n- Tool creates a custom URL, Ideally this becomes visible in chat as is, quickly and without alteration\n- Tool creates Python code, ideally this is just visible as is in the chat OR even claude artifacts\n\n**Describe alternatives you've considered**\nI have tried to prompt/describe my tools to enforce this, but this did not work\n\n**Additional context**\nI am not sure if this is the correct place to ask, but would be very keen to discuss this as I can imagine it is a common problem?\n\nI can also help refine the problem statement a bit more if that's of interest\n","author":{"url":"https://github.com/maxschulz-COL","@type":"Person","name":"maxschulz-COL"},"datePublished":"2025-04-14T13:22:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/509/python-sdk/issues/509"}
| 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:cf002226-d30c-3cb7-d673-d1e334702ebf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFA6:E455C:1238C7C:18CB07B:6A57189E |
| html-safe-nonce | 44b74dbe30819e7a5a9fb42a7cf653e7689842743b86aa50e383128b0ad257fc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkE2OkU0NTVDOjEyMzhDN0M6MThDQjA3Qjo2QTU3MTg5RSIsInZpc2l0b3JfaWQiOiI2MjE2MDM3MDA3NDI2NTI1MzQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 219c3eb8ed746b60bc7a6ad75c36c29ec1164bc255e2d4f0340d1bfd926e7c86 |
| hovercard-subject-tag | issue:2993068805 |
| 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/509/issue_layout |
| twitter:image | https://opengraph.githubassets.com/911732832cafcab920cd6b6502f26904f3fb4358fe8c16ca757c5471a4185460/modelcontextprotocol/python-sdk/issues/509 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/911732832cafcab920cd6b6502f26904f3fb4358fe8c16ca757c5471a4185460/modelcontextprotocol/python-sdk/issues/509 |
| og:image:alt | Is your feature request related to a problem? Please describe. The problem I am facing is that I am currently creating an MCP server that through tools creates artifacts (python code, html code) Th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxschulz-COL |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| 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 | 2576d1f0198cf1588faf2edf27f1ed120903be10 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width