Skip to content

Shared dependencies between UI instances #124

@liady

Description

@liady

Context

An MCP App guest UI is self contained - and is required to include all of its dependencies (running in an isolated iframe). Use cases of MCP Apps will invlove multiple UI instances from the same server - and we might run into the question of "bloated" duplicate dependencies (i.e React, component libraries, etc).

This is not a new problem and is common in all microfrontend-based environements, however here we're looking at a lot of 3rd-party iframes that will have a 3rd-party host, so many of the existing solutions won't work.
We can imagine every host would need or try to solve it somehow at some point.

Not sure if this should be a part of the spec/recommendations (module federation? sharing resources between instances somehow?) - but opening here for a discussion.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions