Expansion capabilities (Skill/MCP)

Updated at:

Alibaba Cloud Linux 4 Agentic Edition (Agentic OS) can expand the capability boundary through two mechanisms: Skill and MCP, supporting one-sentence installation of Skill packages or access to third-party MCP services. This article introduces the installation and management methods of Skill, the three connection methods of MCP server (stdio, HTTP Streamable, SSE) and their configuration methods.

Install Skill in one sentence

Natural language installation

The simplest installation method - directly tell the system Shell cosh:

# Provide zip package download link or local path
> Help me install this Skill https://example.com/skills/deploy-agent.zip

The Skill will be automatically downloaded, unzipped, and loaded, and will be available for use in conversations once installed.

Manual installation

If manual installation is required, unzip the Skill zip package to ~/.copilot/skills/ or ./.copilot/skills/ Directory is enough.

/skills command management

operate

Order

View all installed Skills

/skills

Automatically called in conversation

Directly describe the intention in natural language, and the system Shell cosh automatically matches the Skill

When using natural language to describe intent in Alibaba Cloud Linux 4 Agentic Edition (Agentic OS), the Agent will automatically match and call the corresponding Skill without manual specification:

> Deploy an OpenClaw Agent for me
> Online expansion of the disk of the current ECS instance
> Diagnose why the system is stuck

Connect to MCP service in one sentence

What is MCP

MCP (Model Context Protocol) is an open protocol used to expand the tools and data sources that can be called by AI models. Alibaba Cloud Linux 4 Agentic Edition natively supports MCP, allowing users to access various third-party services.

In Alibaba Cloud Linux 4 Agentic Edition, the MCP server plays the role of a "tool provider" - each server can expose a set of tools, and the system Shell cosh automatically identifies and calls the appropriate tools in the conversation. Typical MCP servers include: database query tools (MySQL, PostgreSQL), cloud service management tools (ECS, OSS), monitoring and alarm tools (Prometheus, Grafana), document retrieval tools (Elasticsearch), etc.

Natural language configuration

The simplest access method - directly tell the system Shell cosh in natural language:

> Help me configure MCP, the following is the configuration information:
[mcp.servers.mcp-name]
command = "npx"
args = ["-y", "@modelcontextprotocol/mcp-name", "/home/user/data"]
timeout_ms = 5000
allowed_tools = ["tool1"]

cosh automatically writes the configuration into the corresponding configuration file.

Manual configuration

MCP server in the configuration file mcp.servers Defined in the field, user-level and project-level configuration is supported.

Configuration file location:

type

path

illustrate

user level

~/.copilot-shell/config.toml

Effective for all projects of the current user

project level

.copilot-shell/config.toml(project root directory)

Only effective for the current project, can be shared with the code repository

stdio connection method- Communicates with the local MCP server via standard input/output. Required: command, optional: args, env, allowed_tools, timeout_ms.

[mcp.servers.mcp-name]
command = "npx"
args = ["-y", "@modelcontextprotocol/mcp-name", "/home/user/data"]
timeout_ms = 5000
allowed_tools = ["tool1"]

[mcp.servers.filesystem.env]
API_KEY = "${FILESYSTEM_API_KEY}"

HTTP Streamable connection method- Connect to a remote MCP server via HTTP, recommended for new remote services. Required:httpUrl, optional:bearer_token、timeout_ms 。

[mcp.servers.mcp-name]
url = "https://mcp.example.com/mcp"
bearer_token = "${MCP_TOKEN}"
allowed_tools = ["tools"]
timeout_ms = 30000 

SSE connection method——Connect to the remote MCP server through Server-Sent Events (old protocol, it is recommended that new services use HTTP Streamable). Required:url, optional:bearer_token、timeout_ms。

[mcp.servers.mcp-name]
url = "https://old-mcp.example.com/sse"
bearer_token = "${LEGACY_TOKEN}"
timeout_ms = 30000 

Manage MCP server

operate

Order

List all MCP servers and their status

/mcp

Connect to MCP server

/mcp connect

View MCP server details

/mcp inspect

MCP tools are automatically available in conversations, just describe the requirements in natural language:

> Query the order data in the database for the last 24 hours
> Help me check the OSS bucket usage
> Get trend data of CPU usage on Prometheus

cosh will automatically match and call the corresponding MCP tool to complete the task.