Commit 9d57b7a
feat: include widget HTML as EmbeddedResource for Claude Desktop rendering
Add widget HTML inline as MCP EmbeddedResource (type: "resource",
mimeType: "text/html;profile=mcp-app") in tool call content array.
Injects response data via DOMContentLoaded script so widget renders
immediately without postMessage. Keeps existing _meta for ChatGPT
compatibility.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 6245bce commit 9d57b7a
1 file changed
+26
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
884 | 884 | | |
885 | 885 | | |
886 | 886 | | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
887 | 912 | | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
| 913 | + | |
894 | 914 | | |
895 | 915 | | |
896 | 916 | | |
| |||
0 commit comments