feat: add agent export and import functionality#4251
feat: add agent export and import functionality#4251abhinav-m22 wants to merge 29 commits intoarchestra-ai:mainfrom
Conversation
|
Should we support importing MCP gateway and LLM proxy agent types, or restrict it to the standard |
|
Hi @joeyorlando 👋 |
|
hey @abhinav-m22 👋 thank you for the ping! On first glance this makes sense. I will take a deeper review soon 🙂 My first comment would be that in the actions column for Agents, I think we should "simplify" that a bit - I would propose showing Connect, Chat, and Edit Icons followed by a "three dots" icon/button which opens a "pop-over" with the remaining actions. Does that make sense? |
/claim #4201
This PR introduces the ability to export an agent's configuration into a JSON file and import it into any other Archestra instance. This enables teams to move agents seamlessly across multi-environment setups (dev to staging to prod) and share configurations easily.
Features & Functionality
GET /api/agents/:id/exportgenerates a self-contained JSON schema representing the agent. Internal UUIDs are stripped out and replaced with portable names.POST /api/agents/importaccepts the JSON payload, creates the agent, and intelligently resolves associations (Tools, Knowledge Bases, Connectors, Delegations) by name against the local registry.Security Constraints & Edge Cases
identityProviderIdandllmApiKeyIdare intentionally excluded from the export payload because they contain instance-specific secrets.personalscope by default to prevent privilege escalation.Demo showing both successful imports (no warnings) and imports with warnings for remote MCP tools:
Screencast.From.2026-05-01.17-12-37.mp4