Skip to main content
Glama
Rosh MCP Server
by rosh-studio

Rosh MCP Server

让任何 AI 都能使用 Rosh(一种纯英语编程语言)创建和发布交互式 Web 应用、游戏和 3D 场景。

什么是 Rosh?

Rosh 让你可以用纯英语编写程序:

create box called player at 400 300
set player color "blue"
on key "ArrowRight" then set player x to player x + 5

根据目标,它可以编译为可运行的 HTML5 canvas 应用、Phaser 游戏或 Three.js 3D 场景。

Related MCP server: canvas3d-mcp

快速开始

Claude Desktop / Claude Code

添加到你的 MCP 配置(~/.claude/mcp.json 或 Claude Desktop 设置)中:

{
  "mcpServers": {
    "rosh": {
      "command": "uvx",
      "args": ["rosh-mcp"],
      "env": {
        "ROSH_API_KEY": "rosh_k1_your_key_here"
      }
    }
  }
}

Cursor / Windsurf

相同的配置格式——添加到你的 MCP 设置文件中。

获取 API 密钥

  1. 在 rosh.cloud 创建账户

  2. 前往设置 → API 密钥

  3. 创建一个具有 read,write 权限范围的密钥

注意: 所有工具都需要 API 密钥——在启动服务器之前设置 ROSH_API_KEY。

工具

工具

描述

需要认证

rosh_docs

获取完整的 Rosh 语言参考

是(read)

rosh_compile

将 Rosh 代码编译为 HTML

是(read)

rosh_publish

将程序发布到 rosh.cloud

是(write)

rosh_list_programs

列出你的程序

是(read)

rosh_get_program

按 ID 获取程序详情

是(read)

rosh_update_program

更新现有程序

是(write)

rosh_delete_program

删除程序

是(write)

rosh_hide_program

隐藏程序(审核)

是(moderate)

rosh_show_program

取消隐藏程序

是(moderate)

示例提示

尝试将这些用于任何支持 MCP 的 AI:

  • “给我做一个太空射击游戏” — AI 阅读文档,编写 Rosh 代码,编译为 Phaser

  • “创建一个 3D 旋转雕塑” — 编译为 Three.js

  • “制作一个带按钮和计数器的交互式仪表板” — 编译为 Web

  • “展示 Rosh 能做什么” — AI 调用 rosh_docs 并探索

环境变量

变量

必需

默认值

描述

ROSH_API_KEY

是

—

你的 rosh.cloud API 密钥

ROSH_API_BASE

否

https://rosh.cloud

API 基础 URL

开发

git clone https://github.com/rosh-studio/rosh-mcp.git
cd rosh-mcp
pip install -e .
rosh-mcp  # runs the stdio server

许可证

MIT

Available Tools

9 tools
rosh_compileA

Compile Rosh code into a runnable HTML page. No API key needed.

Rosh is a plain-English programming language. Example: create box called player at 400 300 set player color "blue" on key "ArrowRight" then set player x to player x + 5

Args: code: Rosh source code to compile target: Target platform — "web" (HTML5 canvas), "phaser" (game engine), or "threejs" (3D)

Inputs: code (required), target. Returns: result

rosh_delete_programA

Permanently delete a program. Requires API key with write scope.

Args: program_id: The numeric program ID

Inputs: program_id (required). Returns: result

rosh_docsA

Get the Rosh language documentation — keywords, widgets, targets, and examples.

Returns the full language reference including all 25 keywords, available widgets, compile targets (web, phaser, threejs), and example programs. No API key needed.

Inputs: no named parameters. Returns: result

rosh_get_programA

Get details of a specific program by ID. Requires API key.

Args: program_id: The numeric program ID

Inputs: program_id (required). Returns: result

rosh_hide_programA

Hide a program from public view (moderation). Requires API key with moderate scope.

Args: identifier: Program ID (numeric) or slug (string)

Inputs: identifier (required). Returns: result

rosh_list_programsA

List all programs owned by the authenticated user. Requires API key.

Inputs: no named parameters. Returns: result

rosh_publishA

Compile and publish a Rosh program to rosh.cloud. Requires API key with write scope.

The published program gets a public URL at https://rosh.cloud/p/{username}/{slug}

Args: title: Display title for the program slug: URL-safe identifier (lowercase, hyphens only, e.g. "space-shooter") code: Rosh source code target: Target platform — "web", "phaser", or "threejs" description: One-line description of what the program does

Inputs: title (required), slug (required), code (required), target, +1 more. Returns: result

rosh_show_programA

Make a hidden program visible again. Requires API key with moderate scope.

Args: identifier: Program ID (numeric) or slug (string)

Inputs: identifier (required). Returns: result

rosh_update_programA

Update an existing program. Only provided fields are changed. Requires API key with write scope.

Args: program_id: The numeric program ID title: New title (optional) description: New description (optional) code: New source code (optional) target: New target platform (optional)

Inputs: program_id (required), title, description, code, +1 more. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool has a unique purpose with clear verb_noun naming. Even closely related tools like compile and publish are distinct (compile generates HTML, publish additionally deploys). Hide and show are clear opposites, and CRUD operations are well separated.

    Naming Consistency5/5

    All tools follow a consistent rosh_verb_noun pattern in snake_case. The naming convention is uniform across the entire tool set, making it predictable for agents.

    Tool Count5/5

    With 9 tools, the server covers a focused domain (Rosh language management) without bloat. Each tool serves a necessary function: compilation, documentation, CRUD, and moderation. The count feels right for the scope.

    Completeness5/5

    The tool set appears complete for the domain: it includes compilation, publishing, full CRUD for programs, moderation (hide/show), and documentation. There are no obvious missing operations like a search or share tool, but they are not essential for core functionality.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to control and manipulate live 3D scenes across frameworks like Three.js, A-Frame, and Babylon.js using a comprehensive set of object and environment tools. It features an integrated in-world chat system that allows for real-time scene modifications directly from within the 3D canvas.
      33
      3
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Enables AI agents to create, render, and validate 3D scenes, 2D art, and games in HTML canvas using Three.js, WebGL, or Canvas 2D, with multi-angle screenshots, structured validation reports, and interactive playtesting.
      5
      -