Skip to main content
Glama
SirHumza

App Inventor MCP

by SirHumza

App Inventor MCP

一个 MCP(Model Context Protocol)服务器,让 AI 智能体能够构建和编辑 MIT App Inventor 项目。智能体会在磁盘上创建真实的 .aia 文件,然后你通过 项目 > 导入 (.aia) 将它导入 App Inventor。

它是 AIA Stitch 系列的一部分。姊妹项目:aia-stitch(用于合并项目的 Web 界面)。

为什么

App Inventor 是一款可视化拖放工具,这历来把 AI 智能体排除在外。但 .aia 文件其实就是一个 zip 压缩包:屏幕是 JSON 文档(*.scm),积木是 XML(*.bky),资源是普通文件。这个服务器把这些内容包装成任何 MCP 客户端都能调用的工具,因此智能体可以在你打开设计器之前,就为你把整个多屏幕应用搭建好。

Related MCP server: Prowpt MCP Server

安装

需要 Node.js 18+。

npm install
node server.mjs

将它添加到你的 MCP 客户端配置中(Claude Desktop、opencode 等):

{
  "mcpServers": {
    "app-inventor": {
      "command": "node",
      "args": ["/absolute/path/to/app-inventor-mcp/server.mjs"]
    }
  }
}

工具

工具

功能说明

aia_create_create_project

新建一个包含 Screen1 和有效属性的 `.aia 文件

aia_add_screen

添加一个屏幕

aia_inspect

列出屏幕、组件、资源和属性

aia_get_screen

读取一个屏幕的组件、属性和组件 XML

aia_add_component

添加一个组件,可以选择性嵌套在父组件中

aia_set_property

在屏幕或组件上设置属性

aia_set_blocks

替换某个屏幕的组件 XML

aia_add_event_handlers

无需了解 Blockly XML 即可生成事件处理(when Click do...)

aia_add_asset

将本地文件(图片、声音)嵌入到项目中

aia_merge

将多个 .aia 文件合并为一个

node test.mjs    # library roundtrip: create, author, merge
node smoke.mjs   # full MCP protocol handshake + tool calls over stdio
node stress.mjs  # scale (25 screens / 120 components), concurrency, abuse, recovery

坦诚的限制

组件和屏幕属性已完整支持。积木编写工作在两层水平:通过 aia_add_event_handlers 生成事件处理(设置属性、屏幕导航),或通过 aia_ get_screen / aia_set_blocks 使用原始 Blockly XML。目前还没有覆盖所有积木类型的高层抽象。偏向 UI 的应用现在可以端到端工作;而较特别的逻辑可能需要在 App Inventor 中做最后的打磨。

所有文件操作在进程内按路径串行,因此来自 agent 的流水线/并发调用是安全的。跨进程同时访问那个 .ia 不受保护;不要同时在两个服务器中编辑同一个 `.aia 文件。

Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • OCR, transcription, file extraction, and image generation for AI agents via MCP.

  • Git-backed platform for skills, tools, and context for AI agents

  • Build, version, review, and export websites, web apps, and games from a conversation.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SirHumza/app-inventor-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server