Issues and Approaches
Challenges Faced
Enterprises with existing MCP Servers and team workflows cannot leverage Managed Agent: knowledge bases "could previously only be queried on the application side, unavailable to Managed Agent"; manual checklist workflows are expected to become Agent-automated.
Solutions and Approaches
The solution follows two tracks: First, register an already-running MCP Server via the Bailian console "Managed Agent → MCP" custom tab (script deployment → http installation method, endpoint registration only, no deployment fees), then mount it in the Agent configuration with type: customer by service ID; when per-session authentication is needed, register a dynamic Header placeholder and pass the real values in mcp_configs when creating the session. Second, package team workflows as a zip containing SKILL.md and scripts (no larger than 10 MB), upload via POST /files, create the skill via POST /skills, wait for the minute-level security review, then mount it to the Agent with an exact version lock; at runtime the Agent calls activate_skill to load SKILL.md on demand and runs scripts in the sandbox /root/workspace/skills/ directory. The example depends on the Bailian knowledge index (RAG) MCP endpoint, Managed Agents API, and built-in toolsets such as bash/read/write.
Implementation Checklist
- Confirm the MCP Server is running and exposes an MCP protocol endpoint (streamableHttp or sse)
- http registration is for endpoint registration only; confirm no Function Compute deployment billing is required
- When mounting, fill name with the service ID (mcp-xxxxxxxx), consistent across mcp_servers[].name and mcp_server_name in all three places
- Keep dynamic Header placeholders as-is at registration; verify mcp_server_name against the registered ID when creating sessions
- Write SKILL.md's description to clearly state when to use it; the model routes based on it
- Place SKILL.md directly in the zip root directory; self-check for redundant files before upload (review does not screen for this)
- Reserve minute-level review waiting time in the upload pipeline; poll GET /skills/{skill_id} until active
- Lock mounts to a specific version; do not follow latest
- Evaluate references in mounted Agents before deleting a skill (hard delete is unrecoverable)
Editorial Analysis Inferred from source information
From an engineering perspective, the value of this solution lies in reusing existing assets rather than rebuilding: MCP uses "registration + proxied invocation" instead of managed hosting—npx/uvx deployment to Function Compute is billed per call while http registration is free, making the cost model difference significant. Skills adopt an on-demand loading design (activate_skill injects SKILL.md into context only when invoked), preventing multiple skills from bloating the system prompt. Risks concentrate in operations: type: customer enforces validation at creation time but mcp_configs passes no error on wrong names; during the version review window, creating a new Agent mounted to the old version will be rejected; skill deletion is a hard delete and invalidates references in already-mounted Agents. For skill design, "scripts handle scanning, the model handles judgment" is recommended to avoid false positives from mechanical matching.
- Luming Publishing in the text is a fictional example company self-described by the documentation, not a real customer delivery
- The review turnaround given in the documentation is a single reference timeline, not an official SLA
- Model qwen3.8-max is an example configuration; no selection comparison data is provided
- Upgrade window behavior is labeled as "measured at approximately a few minutes," which is the documentation author's observation
- This solution represents documentation best practices; no real customer deployment result data exists