Cloud <-> self-host export and import
Both directions of this are a reason people do not start.
- Someone evaluating Cloud wants to know they can leave with their configuration.
- Someone self-hosting who outgrows it wants to move without re-entering 40 connectors.
Scope
- Export a workspace: connectors, tool definitions, response mappings, MCP servers, roles, knowledge graph. Secrets excluded by design — the export names each required env var and leaves it blank.
- Import the same bundle into any instance, reporting which credentials must be supplied.
- Version-stamped, with a clear error when importing a bundle from a newer version.
This one removes a purchase objection in both directions, which is why it is above several older items.
I'd like to take this next, after #1918. I checked the existing connector export/import: it does not carry MCP server links, roles or the knowledge graph, and it explicitly leaves out annotation overrides. This needs its own workspace bundle rather than a second connector backup endpoint.
Proposed first PR: backend export, import preview and transactional apply, with a versioned format and bundle-local references. Every source query stays workspace-scoped; import creates fresh IDs in the caller's workspace and rejects conflicts or dangling references before writing. Secrets stay out, required variables are reported, and imported connectors start inactive until configured. Existing code-tool and plan checks still apply.
Two scope points to agree before implementation:
- Export role definitions, capabilities and tool grants (including rate limits), but not user assignments, SSO mappings, keys or OAuth grants. Does that match what you want?
- For the knowledge graph, include nodes, edges and curated descriptions; exclude observed values, personal memory and learning history. Is that the intended boundary?
I would test the round trip with different source/destination IDs and encryption keys, missing credentials, conflicting names, rollback and cross-workspace isolation. CLI support and the operator guide can follow once the bundle contract is settled. No ee/ changes.
Thanks @Coding-Professional, the plan sounds good. Yes to both boundaries:
- Roles: definitions, capabilities and tool grants with their rate limits. No user assignments, SSO mappings, keys or OAuth grants.
- Knowledge graph: nodes, edges and curated descriptions. No observed values, personal memory or learning history.
Imported connectors starting inactive until their credentials are set is the right default. Please go ahead after #1918.