veadk mpa command performs one-click provisioning of prerequisite resources (network, APIG, PostgreSQL, Skill Space, Worker) and deploys the agent to an AgentKit Runtime, without checking out the agentkit-mpa-agent source. Studio and the CLI share the same orchestration implementation.
MPA agents use prebuilt container images and support account-shared APIG registration and metadata initialization. After deployment, the veadk mpa control subgroup manages the agent lifecycle, including viewing bindings, creating and updating agents, managing profile revisions, and session configuration.
Prerequisites
- Install
veadk-python(for Preview source installation see Installation). - Configure Volcengine credentials (
VOLCENGINE_ACCESS_KEY,VOLCENGINE_SECRET_KEY, optionalVOLCENGINE_SESSION_TOKEN). - Prepare a PostgreSQL database (auto-provisioning via AIDAP is supported, or create manually).
- Prepare a prebuilt MPA agent container image.
- The deployment account must have AgentKit Runtime, Skill Space, Tool, VPC/subnet, APIG/IM Gateway, and
GetCallerIdentitypermissions.
Command Overview
Theveadk mpa command group includes the following subcommands:
Deploy with YAML Config
veadk mpa provision prepares prerequisite resources (network, shared APIG, database, Skill Space, Worker) from a YAML config file, then deploys the Runtime. Suitable for repeatable deployments and team collaboration.
--agent-id is a stable identifier; reusing the same ID resumes a failed deployment. Use --dry-run to validate configuration and view the resource plan locally without cloud calls.
The YAML config supports auto-provisioning PostgreSQL (
managed.postgres.mode: auto), eliminating the need to manually provide database addresses and credentials. An example config is available at prd-spec/features/mpa-agent-oneclick-provision/mpa-create.config.example.yaml in the repository.
Create via CLI
veadk mpa create creates an MPA agent instance via CLI options. The orchestration flow is: ensure workload identity → ensure Skill Space → ensure Tool → pre-seed metadata → compute plane deployment → validate bindings → verify instance.
A --config YAML file can provide option defaults; explicit CLI options take precedence.
When
--compute-plane is runtime, you must provide --tool-image to create a dedicated Tool, or use --agentkit-tool-id to specify an existing one. TOS mount settings require Tool creation and cannot be combined with --agentkit-tool-id.Initialize Management Database
veadk mpa init-admin-db prepares mpa_admin_db on the configured management Workspace. In auto mode (managed.postgres.mode: auto), it provisions the PostgreSQL Workspace via AIDAP; in manual mode, it uses an existing PostgreSQL instance.
--source-url-env to specify the environment variable name holding the legacy registry URL. The command atomically copies registry records without moving business databases or modifying running Runtime environments.
Control-Plane Commands
Theveadk mpa control subgroup manages MPA agent lifecycle through the AgentKit Studio BFF. All commands support --studio-url, --token, and --timeout global options, which can be provided via VEADK_MPA_STUDIO_URL and VEADK_MPA_STUDIO_TOKEN environment variables.
View Agent
Create Agent
Update Agent
Operation Management
Profile Management
Session Configuration
Delete Preview
Using in Studio
After deploying Studio, it automatically reuses the deployed Studio’s UserPool, client, Identity region, and/oauth/callback for MPA agent managed creation. Studio does not require a YAML file; it uses the code-built-in Beijing region configuration.
Select Agents → MPA Agents → Create MPA Agent to enter a three-step creation flow: fill in basic information, PostgreSQL auto-provisioning details, and optional OpenViking configuration. Enter the Runtime name (4–64 ASCII letters, digits, underscores, or hyphens); the server generates the agent ID and injects it into the Agent and Worker. After submission, it sequentially prepares account network, APIG, Worker, independent business database, and Skill Space, then deploys and checks Runtime readiness. Refresh the list to view the result after success.
Studio’s built-in configuration uses the Beijing region default images and models. The model API Key is read from the
VEADK_MPA_CONFIG_MODEL_AGENT_API_KEY environment variable. Selecting other regions returns a configuration error.