Skip to content

Commit fdf875e

Browse files
authored
feat: add infrastructure for MCP Apps (#10259)
* feat: add infrastructure for MCP Apps ### Description Adds support for returning structured content from tools, which is used by MCP Apps to pass complex data to the host. Also updates the resource index. ### Scenarios Tested - Verified build and file changes. * fix: resolve build errors and address review comments on infra ### Description - Removes imports and registry entries for UI resources that are not yet available in this branch (login, update_environment, deploy, init). - Replaces as any in toContent with an intersection type for better type safety. ### Scenarios Tested - Verified build succeeds.
1 parent 863b5fe commit fdf875e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/mcp/util.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ export function toContent(
4141
const suffix = options?.contentSuffix || "";
4242
return {
4343
content: [{ type: "text", text: `${prefix}${text}${suffix}` }],
44-
};
44+
structuredContent: data,
45+
} as CallToolResult & { structuredContent: any };
4546
}
4647

4748
/**

0 commit comments

Comments
 (0)