plugin.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. "name": "android-emulator",
  3. "version": "0.1.0",
  4. "description": "Provides Android development workflows and emulator automation for ZCode.",
  5. "author": { "name": "Z.ai" },
  6. "license": "MIT",
  7. "skills": "skills",
  8. "commands": "commands",
  9. "mcpServers": {
  10. "android-emulator": {
  11. "command": "node",
  12. "args": ["${ZCODE_PLUGIN_ROOT}/dist/mcp/server.js"],
  13. "cwd": "${ZCODE_PROJECT_DIR}",
  14. "env": {
  15. "ANDROID_PLUGIN_DATA": "${ZCODE_PLUGIN_DATA}",
  16. "ANDROID_PLUGIN_SDK_PATH": "${user_config.sdk_path}",
  17. "ANDROID_PLUGIN_DEFAULT_AVD": "${user_config.default_avd}",
  18. "ANDROID_PLUGIN_API_LEVEL": "${user_config.api_level}",
  19. "ANDROID_PLUGIN_BUILD_TOOLS_VERSION": "${user_config.build_tools_version}",
  20. "ANDROID_PLUGIN_SYSTEM_IMAGE_VARIANT": "${user_config.system_image_variant}",
  21. "ANDROID_PLUGIN_SYSTEM_IMAGE_ABI": "${user_config.system_image_abi}",
  22. "ANDROID_PLUGIN_JDK_MAJOR": "${user_config.jdk_major}"
  23. }
  24. }
  25. },
  26. "userConfig": {
  27. "sdk_path": {
  28. "type": "string",
  29. "default": "",
  30. "description": "Optional Android SDK root directory. When empty, falls back to ANDROID_HOME, ANDROID_SDK_ROOT, or common system paths."
  31. },
  32. "default_avd": {
  33. "type": "string",
  34. "default": "medium_phone",
  35. "description": "Preferred AVD or device name."
  36. },
  37. "api_level": {
  38. "type": "string",
  39. "default": "35",
  40. "description": "Android API level used when generating projects, installing SDK packages, and selecting the default system image."
  41. },
  42. "build_tools_version": {
  43. "type": "string",
  44. "default": "35.0.0",
  45. "description": "Android SDK build-tools version used in installation guidance."
  46. },
  47. "system_image_variant": {
  48. "type": "string",
  49. "default": "default",
  50. "description": "Android system image variant: default, google_apis, or google_apis_playstore."
  51. },
  52. "system_image_abi": {
  53. "type": "string",
  54. "default": "",
  55. "description": "Optional Android system image ABI override. When empty, Apple Silicon/ARM64 hosts use arm64-v8a and other hosts use x86_64."
  56. },
  57. "jdk_major": {
  58. "type": "string",
  59. "default": "17",
  60. "description": "JDK major version used for preflight checks and installation guidance."
  61. }
  62. }
  63. }