
这是一个模型上下文协议(MCP)服务器,提供使用 Actions API 的 Appium 移动手势资源和工具。
概览
一个MCP(模型上下文协议)服务器,提供Appium移动手势的资源和工具。 - 关于常见 Appium 移动手势的文档资源: - 轻触 - 滑动 - 滚动 - 捏合/缩放 - 长按 - 拖放 - 双击 - 用于生成不同语言手势代码的工具:- JavaScript(WebdriverIO v9+ 及以下版本)- Java(Appium Java 客户端) 要在 Claude 中使用这个 MCP 服务器,你需要将其添加到你的 MCP 设置配置文件中。该文件的位置取决于你的平台: - 对于光标:/users/[username]/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json- 对于 Claude 桌面:/Users/[username]/Library/Application Support/Claude/claude_desktop_config。
概述(AI 翻译)
一个MCP(模型上下文协议)服务器,提供Appium移动手势的资源和工具。
特色
-
关于常见 Appium 移动手势的文档资源:
-
踢踏
-
滑动
-
卷轴
-
捏合/放大
-
长印刷
-
拖拽式
-
双重击
-
生成不同语言中这些手势代码的工具:
-
JavaScript(WebdriverIO v9+ 及以下版本)
-
Java(Appium Java 客户端)
安装
用途
从本地交通开始
从SSE传输开始(用于远程使用)
开发与测试
与克劳德的使用
要在 Claude 中使用这个 MCP 服务器,你需要将其添加到你的 MCP 设置配置文件中。该文件的位置取决于你的平台:
- 光标:
/Users/[username]/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json - 针对 Claude Desktop:
/Users/[username]/Library/Application Support/Claude/claude_desktop_config.json - 对于 Cline 或其他 MCP 客户端:请查看客户端文档中的配置文件位置
在设置文件中的 mcpServers 对象中添加以下配置:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MCP Appium Gestures
An MCP (Model Context Protocol) server providing resources and tools for Appium mobile gestures.
Features
-
Documentation resources for common Appium mobile gestures:
- Tap
- Swipe
- Scroll
- Pinch/Zoom
- Long Press
- Drag and Drop
- Double Tap
-
Tools to generate code for these gestures in different languages:
- JavaScript (WebdriverIO v9+ and below)
- Java (Appium Java Client)
Installation
# Clone the repository
git clone https://github.com/yourusername/mcp-appium-gestures.git
cd mcp-appium-gestures
# Install dependencies
npm install
Usage
Start with stdio transport (for local use)
# Start the server with stdio transport
npm start
# or
npm run start:stdio
Start with SSE transport (for remote use)
# Start the server with SSE transport on default port (8080)
npm run start:sse
# Start the server with SSE transport on a custom port
npm run start:sse:port 3000
Development and Testing
# Test with mcp-cli
npm run dev
# Inspect with MCP Inspector
npm run inspect
Usage with Claude
To use this MCP server with Claude, you need to add it to your MCP settings configuration file. The location of this file depends on your platform:
- For Cursor:
/Users/[username]/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json - For Claude Desktop:
/Users/[username]/Library/Application Support/Claude/claude_desktop_config.json - For Cline or other MCP clients: Check your client’s documentation for the configuration file location
Add the following configuration to the mcpServers object in the settings file:
{
"mcpServers": {
"appium-gestures": {
"command": "npx",
"disabled": false,
"args": ["mcp-appium-gestures"],
"autoApprove": [],
"timeout": 300,
"transportType": "stdio"
}
}
}
Once configured, you can use the MCP server’s tools and resources directly in Claude:
appium-gestures
generate-tap-code
{
"language": "javascript",
"useElement": true,
"elementId": "login-button"
}
Or access resources:
appium-gestures
gesture://tap
Resources
The server provides documentation resources for the following gestures:
gesture://tap- Tap gesture documentationgesture://swipe- Swipe gesture documentationgesture://scroll- Scroll gesture documentationgesture://pinch-zoom- Pinch and zoom gestures documentationgesture://long-press- Long press gesture documentation
安装
npx mcp-appium-gestures配置
{
"mcpServers": {
"appium-gestures": {
"command": "npx",
"disabled": false,
"args": ["mcp-appium-gestures"],
"autoApprove": [],
"timeout": 300,
"transportType": "stdio"
}
}
}