用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/open-wa/wa-automate-nodejs --skill easy-api-mcp命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | easy-api-mcp |
| description | Teaches AI agents how to connect to the open-wa hosted MCP surface via Easy API. |
This skill teaches AI agents how to connect to and use the open-wa MCP integration hosted through Easy API.
open-wa exposes a hosted MCP endpoint that wraps every Easy API method as a discoverable MCP tool. This is the recommended surface for AI agent integration.
The MCP endpoint uses Streamable HTTP transport — a single endpoint handles all operations:
POST /mcp — JSON-RPC messages (initialize, tools/list, tools/call)GET /mcp — Server-initiated SSE stream when neededDELETE /mcp — Session terminationEvery request must include your Easy API key. Without it, you get 401 Unauthorized.
Methods to provide the key:
X-API-Key: YOUR_API_KEYClaude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"open-wa": {
"url": "http://localhost:8080/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Cursor / Windsurf: Add MCP server with URL http://localhost:8080/mcp and set X-API-Key header. Note: Cursor currently calls Streamable HTTP by the name "SSE" in its UI dropdown.
| Scenario | Use |
|---|---|
| AI agent interacting with WhatsApp | Hosted MCP (this) |
| Local CLI tool or IDE integration | Hosted MCP via Streamable HTTP |
| Custom SDK integration in your own app | createClient() directly (no MCP) |
Tools are namespaced:
messages.sendText — Send a text messagechats.getAll — Get all chatsgroups.create — Create a groupUse tools/list (MCP protocol) to discover all available tools.
For debugging, visit /meta/mcp-tools.json on the API host.
createClient().apiKey. No key = server refuses to start.Your API key is missing or wrong. Verify:
apiKey in config.jsonX-API-Key header with the correct valuemcp.enabled is trueMCP requires Easy API apiKey. Refusing to start with MCP enabled and no apiKey configured.
Set apiKey in your config before enabling MCP.
The schema registry has no methods registered. The open-wa runtime may not have fully initialized.
The WhatsApp session isn't ready yet. Wait for the session to be fully connected before calling tools.