carter-mcp
Enables AI assistants to author and push CAR-TER control surface layouts to paired iOS devices in real time, with tools for incremental editing, live preview, and data wiring.
README
carter-mcp
An MCP server that lets an AI assistant (e.g. Claude) author and push CAR-TER layouts to a paired iPhone/iPad in real time.
CAR-TER turns a phone or tablet into any control surface you can describe — tabs, grids, and controls (gauges, sliders, joysticks, maps, graphs, live logs, chat, web views…) rendered as native UI and wired to your server over a WebSocket mesh (MeshSocket). This server gives a model the tools to build those layouts conversationally and see them appear on the device as it works.
What it does
- Reads CAR-TER's live control documentation so the model builds against the real, current catalog instead of guessing — every control type, its fields, and worked examples.
- Edits incrementally — a server-held draft buffer (
begin_edit,add_control,move_control,add_group,preview_buffer,push_buffer…) with validation, snapshots/revert, and grid layout. - Pushes live to a device — pair by QR over a zero-config local relay (no account, same Wi-Fi) or a gateway, then push/preview layouts and read control values back.
- Wires to your data — probe a running service's traffic, auto-wire controls to it, infer a layout from a schema, generate service/adapter stubs, and lint a draft against real frames.
- 58 tools in total, exposed over stdio via
FastMCPunder the namecarter.
Install
Requires Python 3.11+.
pip install -r requirements.txt
This pulls carterkit (the layout-authoring
engine — catalog, buffer, grid, validation, codegen, theming), which brings
meshsocket transitively, plus the mcp SDK and qrcode.
Run it from an MCP client
The server speaks MCP over stdio. Point your client at server.py:
// e.g. Claude Desktop's claude_desktop_config.json, or a Claude Code MCP entry
{
"mcpServers": {
"carter": {
"command": "python",
"args": ["/absolute/path/to/carter-mcp/server.py"]
}
}
}
Then ask the assistant to build you a panel — it will read the control docs, draft a layout, show you a QR to pair your device, and push the layout live.
To run it directly for a smoke test:
python server.py # serves MCP on stdio
Where the knowledge comes from
The MCP is a thin tool layer over the current truth, not a vendored copy of it
(see sources.py):
- Control definitions (the catalog + doc prose) are fetched from the website
—
carterbeaudoin.net/CAR-TER/catalog.json— cached on disk with a TTL. - Authoring demos (example snippets + the builder engine) come from the
installed
carterkit; it also checks PyPI so it can tell you to upgrade a stale kit.
The check_sources tool reports drift between the website, the installed
carterkit, and a paired device so mismatches are visible rather than silent.
Configuration
All optional — the defaults target the zero-config local relay:
| Env var | Purpose |
|---|---|
CARTER_RELAY_URL |
Gateway ws/wss URL for target='relay' connects. |
CARTER_MESH_TOKEN |
Gateway auth token (else auto-minted via a validator). |
CARTER_VALIDATOR_URL |
Dev validator base URL used to auto-mint a token. |
CARTER_LOCAL_RELAY_PORT |
Port for the in-process local relay (default 8765). |
Tests
python -m pytest -q
Related
carterkit— the Python layout library + client this depends on.meshsocket— the underlying WebSocket mesh transport.- CAR-TER docs — the control reference and integration guide.
PROTOCOL.md— the read-back / truthful-push wire contract with the device.
Notes
- The sample-layout tools read layouts bundled beside the CAR-TER app repo in the original workspace; in a standalone checkout that set is simply empty — build layouts from the catalog and examples instead.
License
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。