Skip to content

Commit 4d8231f

Browse files
authored
Merge pull request #336 from dtmilano/feat/claude-code-mcp-support
Add Claude Code support to MCP server docs and configuration
2 parents c75c684 + 8b2130b commit 4d8231f

10 files changed

Lines changed: 600 additions & 129 deletions

File tree

‎.claude/settings.json‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"mcp__culebratester2__getDeviceInfo",
5+
"mcp__culebratester2__getCurrentPackage",
6+
"mcp__culebratester2__dumpUiHierarchy",
7+
"mcp__culebratester2__takeScreenshot"
8+
],
9+
"ask": [
10+
"mcp__culebratester2__startApp",
11+
"mcp__culebratester2__forceStopApp",
12+
"mcp__culebratester2__sleepDevice"
13+
]
14+
}
15+
}

‎.gitignore‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,9 @@ venv*/*
3232
# Kiro #
3333
########
3434
.kiro/
35+
36+
# Claude Code #
37+
###############
38+
# .mcp.json and .claude/settings.json are committed on purpose; these are personal
39+
.claude/settings.local.json
40+
CLAUDE.local.md

‎.mcp.json‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"mcpServers": {
3+
"culebratester2": {
4+
"type": "stdio",
5+
"command": "python3",
6+
"args": ["-m", "com.dtmilano.android.mcp.server"],
7+
"env": {
8+
"PYTHONPATH": "${ANDROID_VIEW_CLIENT_HOME:-.}/src",
9+
"CULEBRATESTER2_URL": "${CULEBRATESTER2_URL:-http://localhost:9987}",
10+
"CULEBRATESTER2_TIMEOUT": "${CULEBRATESTER2_TIMEOUT:-30}",
11+
"CULEBRATESTER2_DEBUG": "${CULEBRATESTER2_DEBUG:-0}"
12+
}
13+
}
14+
}
15+
}

‎README.md‎

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Or check the wiki for more alternatives.
4141

4242
# AI-Powered Testing with MCP
4343

44-
**NEW!** AndroidViewClient now includes a Model Context Protocol (MCP) server that enables AI assistants like Kiro to interact with Android devices through natural language.
44+
**NEW!** AndroidViewClient now includes a Model Context Protocol (MCP) server that enables AI assistants like Claude Code and Kiro to interact with Android devices through natural language.
4545

4646
## Quick Start with MCP
4747

@@ -53,11 +53,15 @@ Or check the wiki for more alternatives.
5353
2. **Start CulebraTester2 on your device:**
5454

5555
Check the details at [How to run CulebraTester2 ?](https://github.com/dtmilano/CulebraTester2-public?tab=readme-ov-file#how-to-run-culebratester2-)
56-
5756

58-
4. **Configure your AI assistant:**
59-
60-
Add to `.kiro/settings/mcp.json` or `~/.kiro/settings/mcp.json`:
57+
3. **Configure your AI assistant:**
58+
59+
**Claude Code** — register the server with one command:
60+
```bash
61+
claude mcp add culebratester2 --env CULEBRATESTER2_URL=http://localhost:9987 -- culebra-mcp
62+
```
63+
64+
Or add it to `.mcp.json` in your project root, so everyone who clones the project gets it:
6165
```json
6266
{
6367
"mcpServers": {
@@ -71,7 +75,9 @@ Or check the wiki for more alternatives.
7175
}
7276
```
7377

74-
5. **Start testing with natural language:**
78+
**Kiro** — add the same entry to `.kiro/settings/mcp.json` or `~/.kiro/settings/mcp.json`.
79+
80+
4. **Start testing with natural language:**
7581
- "_Get the device screen size_"
7682
- "_Launch the Calculator app_"
7783
- "_Find the button with text Submit and click it_"
@@ -103,9 +109,14 @@ The MCP server provides 20 tools for Android automation:
103109
For detailed MCP configuration options, see the [MCP Configuration Guide](docs/MCP_CONFIGURATION.md).
104110

105111
Quick reference:
106-
- **User-level config** (kiro-cli): `~/.kiro/settings/mcp.json`
107-
- **Workspace config** (Kiro IDE): `.kiro/settings/mcp.json`
108-
- **Examples:** `examples/mcp_config.json`
112+
113+
| | Claude Code | Kiro |
114+
|---|---|---|
115+
| **Project config** | `.mcp.json` (repository root) | `.kiro/settings/mcp.json` |
116+
| **User config** | `~/.claude.json` (via `claude mcp add --scope user`) | `~/.kiro/settings/mcp.json` |
117+
| **Tool pre-approval** | `permissions.allow` in `.claude/settings.json` | `autoApprove` in the server entry |
118+
| **Example** | `examples/mcp_config.json` | `examples/mcp_config_kiro.json` |
119+
109120
- **Usage examples:** `examples/test_calculator_mcp.py`
110121

111122
## Environment Variables

0 commit comments

Comments
 (0)