Skip to main content
Glama
Android Preference Editor MCP Server

Android Preference Editor MCP Server

Android 設定エディター MCP サーバー

概要

*Android-Preference-Editor MCPサーバーは、*エージェントアプリケーションがアプリ開発中にAndroidユーザー設定を編集できるように設計された自然言語インターフェースです。実装はAndroid Preference Editorライブラリに基づいています。このサーバーはMCP(Model Context Protocol)クライアントとシームレスに統合され、Androidアプリ開発におけるAI駆動型ワークフローを実現します。このMCPを使用すると、次のような指示を与えることができます。

  • 「 isVisitedユーザー設定を切り替える」

  • 「接続されているデバイスを一覧表示する」

  • 「デバイスにはどのようなアプリがインストールされていますか?」

  • 「アプリ内のすべてのユーザー設定を表示」

  • 「エポックからの現在のミリ秒値を持つlastTimeStampユーザー設定を追加します」

Related MCP server: @wilsonbeam/openclaw-adb-mcp

ツール

名前

説明

設定を変更する

既存の設定の値を変更します

削除設定

既存の設定を削除する

設定を追加する

名前、値、タイプを指定して新しい設定を追加します。

デバイス

接続されているAndroidデバイスを一覧表示します

リストアプリ

デバイスにインストールされているアプリを一覧表示します

リストファイル

アプリの設定ファイルを一覧表示します

設定の読み取り

ファイル内のすべてのユーザー設定を読み取ります

デモ

ユーザー設定を切り替える

利用可能なツール

ユーザー設定を切り替える

利用可能なツール

その他のデモのスクリーンショットはこちらをご覧ください

要件

  • Android adbがホスト システムにインストールされています。

Claude Desktopとの統合

claude_desktop_config.json構成ファイルに次のコードを追加することで、Claude Desktop がこの MCP サーバーを使用するように構成できます。

{
  "mcpServers": {
    "pref-editor": {
      "command": "npx",
      "args": ["@charlesmuchene/pref-editor-mcp-server"]
    }
  }
}

トラブルシューティング

ログ ファイルを追跡することで、問題をトラブルシューティングできます。

tail -f ~/Library/Logs/Claude/mcp-server-pref-editor.log

VS Codeとの統合

VS Code でサーバーを使用するには、次のことが必要です。

  1. エージェントモードツールを有効にsettings.jsonます。settings.json に以下の行を追加します。

{
  "chat.agent.enabled": true
}
  1. MCP サーバー構成をmcp.jsonまたはsettings.jsonに追加します。

// .vscode/mcp.json
{
  "servers": {
    "pref-editor": {
      "type": "stdio",
      "command": "npx",
      "args": ["@charlesmuchene/pref-editor-mcp-server"]
    }
  }
}
// settings.json
{
  "mcp": {
    "pref-editor": {
      "type": "stdio",
      "command": "npx",
      "args": ["@charlesmuchene/pref-editor-mcp-server"]
    }
  }
}

詳細については、 VS Code のドキュメントを参照してください。

インストール

# Clone the repository
git clone https://github.com/charlesmuchene/pref-editor-mcp-server.git
cd pref-editor-mcp-server

# Install dependencies and build
npm install

テスト

MCP インスペクターを使用すると、この MCP サーバーを視覚的にデバッグできます。

npx @modelcontextprotocol/inspector npm run dev

ライセンス

ライセンスを参照

接触

ご質問やサポートについては、 GitHub Issuesからお問い合わせください。

Available Tools

7 tools
add_preferenceC

Adds a new preference given the name, value and type.

Inputs: name (required), value (required), type (required), deviceId (required), +2 more.

change_preferenceC

Changes the value of an existing preference

Inputs: name (required), value (required), deviceId (required), appId (required), +1 more.

delete_preferenceC

Delete an existing preference

Inputs: name (required), deviceId (required), appId (required), filename (required).

devicesB

Lists connected Android devices

Inputs: no named parameters.

list_appsC

Lists apps installed on device

Inputs: deviceId (required).

list_filesC

Lists preference files for an app

Inputs: deviceId (required), appId (required).

read_preferencesC

Reads all user preferences in a file

Inputs: deviceId (required), appId (required), filename (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no ambiguity. Preference management tools (add, change, delete, read) target specific operations, while device/app/file listing tools serve separate discovery functions. The descriptions make it easy to differentiate between actions on preferences versus actions on devices/apps/files.

    Naming Consistency5/5

    All tools follow a consistent verb_noun naming pattern throughout. The verbs (add, change, delete, list, read) are consistently applied to their respective nouns (preference, devices, apps, files, preferences). There are no deviations in style or convention across the tool set.

    Tool Count5/5

    With 7 tools, this server is well-scoped for editing Android preferences. It covers core operations (CRUD for preferences) plus necessary discovery tools (devices, apps, files) without being overly sparse or bloated. Each tool earns its place in the workflow.

    Completeness5/5

    The tool surface provides complete coverage for the Android preference editing domain. It offers full CRUD operations for preferences (add, change, delete, read) plus the necessary discovery chain (devices → apps → files → preferences). There are no obvious gaps that would prevent an agent from performing the intended workflows.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers