douyin-ide-control
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DOUYIN_TMA_CLI_JS | No | Optional path to the tma.js file of tt-ide-cli, used when it is not in PATH. | |
| DOUYIN_IDE_CDP_PORT | No | Optional explicit CDP port for the IDE instance. | |
| DOUYIN_SMOKE_PROJECT | No | Optional path to a specific project for full smoke testing. | |
| DOUYIN_WORKSPACE_ROOT | No | The workspace root directory for all project and output paths. If not set, the current working directory is used. | |
| DOUYIN_SMOKE_OUTPUT_DIR | No | Optional output directory for smoke test artifacts. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| douyin_check_environmentB | 检查官方 tt-ide-cli、抖音开发者工具、当前项目和本地调试接口状态,不读取源码内容。 |
| douyin_open_projectA | 按期望类型打开白名单内项目:expectedProjectType=minigame 时使用官方小游戏 CLI tmg(microgame 协议)唤起 IDE,其余使用 tma(microapp 协议);轮询等待 IDE 窗口/CDP 就绪后执行身份检查(可选 expectedAppid/expectedProjectType)。CLI 成功但 IDE 未就绪时返回 IDE_STARTUP_TIMEOUT;权限/类型/AppID 不符时返回对应结构化顶层错误(ok:false/isError:true),不误报成功。 |
| douyin_tmg_checkA | 检查官方小游戏专用 CLI tt-minigame-ide-cli(tmg 2.x)是否安装、版本与登录状态。tmg 使用小游戏协议唤起 IDE(区别于 tma 的小程序协议)。 |
| douyin_tmg_openA | 通过官方小游戏 CLI tmg open 以完整模式打开白名单内工程(IDE 按小游戏类型处理,区别于 tma 的小程序协议)。返回 CLI 输出与 IDE 窗口状态。 |
| douyin_project_identityA | 从 IDE 实际状态/已登录应用元数据判断项目类型、实际 AppID 与权限状态;文件结构仅作辅助证据。结构化错误:APP_PERMISSION_DENIED(无权限)/ PROJECT_TYPE_MISMATCH(类型不符)/ APPID_MISMATCH(AppID 不同)/ PROJECT_TYPE_UNKNOWN(无可靠类型证据)。 |
| douyin_create_minigame_projectA | 通过 IDE 启动页真实"小游戏"入口创建工程(CDP DOM 语义控件,禁截图坐标点击)。强制 JavaScript + 空白模板 + 小游戏类型;目标目录非空默认拒绝;创建后调用身份识别复核类型。启动页 UI 不可控时返回 CREATE_PROJECT_UI_UNSUPPORTED 与唯一人工操作。 |
| douyin_previewA | 按工程类型路由:小游戏走 tmg preview(--output),其余走 tma preview(--qrcode-output)。输出二维码只能写入工作区内。可传 small/copy/query/scene/launchFrom 透传官方选项。 |
| douyin_build_npmA | 按工程类型路由:小游戏走 tmg build-npm,其余走 tma build-npm,不执行上传或提审。 |
| douyin_compile_refreshB | 优先通过 IDE 4.5.5 本地 workbench 调试页面点击编译/刷新;可显式选择可靠快捷键兜底。传 projectPath 可在多开 IDE 时绑定到目标工程实例。 |
| douyin_captureA | IDE 全窗使用 Windows 原生窗口拷贝;模拟器使用本地 MiniApp Webview 的 CDP 截图。传 projectPath 可在多开 IDE 时绑定到目标工程实例。 |
| douyin_read_console_errorsA | 尽最大可能从 IDE 内嵌 DevTools DOM 读取错误;接口不存在时返回明确的不支持原因。传 projectPath 可在多开 IDE 时绑定到目标工程实例。 |
| douyin_uploadA | 按工程类型路由(小游戏走 tmg upload,其余走 tma upload)。默认拒绝,必须 confirm=true 才会触发远程上传。小游戏上传前先查 tmg version 的最新已发布版本,随结果返回 versionCheck 供核对版本递增(信息性,不阻断)。 |
| douyin_auditC | 官方 tma audit 的安全封装。默认拒绝,只有 confirm=true 才会触发远程提审。 |
| douyin_project_sizeA | 调用官方 tma project-size 输出包体积信息;--json 输出结构化结果。上传/提审前核对包体积用。 |
| douyin_audit_hostsA | 调用官方 tma hosts 查询指定 AppID 可用的审核 Host 列表(douyin_audit 的 host 参数取值参考)。 |
| douyin_set_app_configA | 调用官方 tma set-app-config 为指定 AppID 设置 token(CI 无交互登录用)。token 仅写入本机 tma 配置,不会回显。属于本地配置写入,请谨慎使用。 |
| douyin_project_versionA | 调用官方 tmg version 查询最新已发布版本号(上传/提审前核对用)。小程序端 tma 无 version 命令,返回 supported:false。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/arusheng/douyin-ide-control'
If you have feedback or need assistance with the MCP directory API, please join our Discord server