Ask262

io.github.bendtherules由 GitHub 帳號 bendtherules 發布v0.0.13更新於 Oct 24, 2026

MCP server for understanding Javascript internals from ECMAScript specification.

已驗證Streamable HTTP可網頁執行知識與記憶開發者工具

概覽

AI 產生的概覽

Ask262 讓助理檢索 ECMAScript 規格、讀取規格章節,並在 engine262 中執行 JavaScript 以查看執行了哪些規格部分。

可以做什麼
依語意查詢檢索 ECMAScript 規格,並取得相符章節的完整內容。在 engine262 中執行 JavaScript,擷取所執行的規格章節,並可標記程式碼中的關鍵部分。使用將規格章節對應到實作函式的知識圖譜。程式碼執行受一秒逾時限制。
適用情境
適合需要理解 JavaScript 語言內部機制、把行為追溯到 ECMAScript 規格原文,或查看某段程式碼在忠於規格的引擎中如何執行時使用。
執行需求
提供遠端端點,無需本機安裝;README 也說明本機安裝需要 Bun 1.0.0 或更高版本,以及帶 qwen3-embedding:8b 模型的 Ollama,或透過 FIREWORKS_API_KEY 設定的 Fireworks 雲端嵌入方案。
安裝前請注意
評估工具會在伺服器上執行 JavaScript,但執行受一秒逾時限制。選用的 Fireworks 嵌入提供者需要透過 FIREWORKS_API_KEY 提供 API 金鑰。README 提到的聊天介面需要註冊帳號。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Ask262,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.bendtherules%2Fask262/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "ask262": {
      "type": "http",
      "url": "https://ask262.mcp.bendtherules.io/mcp"
    }
  }
}

README

Ask262

MCP server for exploring the ECMAScript specification and its implementation in engine262.

🎮 Try it now

The fastest way to tinker with JavaScript internals:

  • Ask262 Chat — Ask questions in natural language (register new account)
  • MCP Inspector — Direct access to all mcp tools, no signup needed
  • npx add-mcp "https://ask262.bendtherules.in/mcp"

Features

  • Vector search ECMAScript specification sections using semantic queries
  • Execute JavaScript in engine262 and capture spec sections, with ask262Debug.startImportant() to mark the key parts of your code
  • Knowledge graph mapping spec sections to implementation functions
  • 1-second timeout on code execution for safety

Available Tools

ToolDescription
ask262_search_spec_sectionsVector search ECMAScript spec for relevant sections
ask262_get_section_contentRetrieve full content from a spec section
ask262_evaluate_in_engine262Execute JS and capture spec sections, with "important" marking to focus on relevant parts

Quick Start (Hosted Instance)

Use the hosted MCP server without any local setup:

Preferred Method: npx add-mcp

Install ask262 MCP server to your client with one command:

bash
npx add-mcp "https://ask262.bendtherules.in/mcp"

Manual Configuration

If you prefer to configure manually:

Claude Desktop (claude_desktop_config.json):

json
{  "mcpServers": {    "ask262": {      "url": "https://ask262.bendtherules.in/mcp"    }  }}

OpenCode (~/.config/opencode/opencode.json):

json
{  "$schema": "https://opencode.ai/config.json",  "mcp": {    "ask262": {      "type": "remote",      "url": "https://ask262.bendtherules.in/mcp",      "enabled": true    }  }}

Local Installation

Prerequisites

  • Bun: Version 1.0.0 or higher (install)
  • Ollama: Installed with qwen3-embedding:8b
    (ollama pull qwen3-embedding:8b)

Setup

bash
# Clone and installgit clone https://github.com/bendtherules/ask262cd ask262bun install
# Or install globallybun install -g ask262

Environment Configuration

Copy .env.example and configure:

bash
cp .env.example .env

Key variables:

  • ASK262_EMBEDDING_PROVIDER: Choose ollama (local) or fireworks (cloud). Default: ollama
  • OLLAMA_HOST: Ollama server URL. Default: http://localhost:11434
  • FIREWORKS_API_KEY: Required if using Fireworks. Get from https://app.fireworks.ai
  • ASK262_PORT: HTTP server port. Default: 8081

Example .env:

bash
# Use Fireworks for embeddings (faster, cloud-based)ASK262_EMBEDDING_PROVIDER=fireworksFIREWORKS_API_KEY=fw_your_key_here
# Or use local Ollama (default)# ASK262_EMBEDDING_PROVIDER=ollama# OLLAMA_HOST=http://localhost:11434

Local MCP Configuration

Claude Desktop (claude_desktop_config.json):

stdio (no server needed)
json
{  "mcpServers": {    "ask262": {      "command": "bunx",      "args": ["ask262"]    }  }}
http (requires server)
json
{  "mcpServers": {    "ask262": {      "url": "http://localhost:8081/mcp"    }  }}

⬇️ Required for HTTP config above:

bash
bun run ask262-http # start HTTP server

OpenCode (~/.config/opencode/opencode.json):

stdio (no server needed)
json
{  "$schema": "https://opencode.ai/config.json",  "mcp": {    "ask262": {      "type": "local",      "command": ["bunx", "ask262"],      "enabled": true    }  }}
http (requires server)
json
{  "$schema": "https://opencode.ai/config.json",  "mcp": {    "ask262": {      "type": "remote",      "url": "http://localhost:8081/mcp",      "enabled": true    }  }}

⬇️ Required for HTTP config above:

bash
bun run ask262-http # start HTTP server

HTTP Server Endpoints:

EndpointDescription
GET /healthHealth check
GET/POST /mcpMCP protocol endpoint
GET /MCP Inspector UI (auto-connects to /mcp)

Note: /mcp is defined before the inspector's catch-all / route to ensure proper request handling.

Testing

bash
# Run MCP server testsbun run test-mcp-server
# Test evaluate tool with timeoutbun run test-evaluate-timeout
# Test search functionalitybun run test-search-spec-sections

Development

For development or using a custom ECMAScript specification:

  1. Clone and setup:

    bash
    git clone https://github.com/bendtherules/ask262cd ask262bun install
  2. Ensure spec is present:

    • ./spec-built/multipage/ - Built ECMAScript spec HTML files

    Steps -

    1. git clone https://github.com/tc39/ecma262
    2. npm i && npm run build
    3. copy out/ from ecma262 to spec-built/ in this repo
  3. Build vectors (lancedb)

    bash
    bun run ingest
  4. Release to npm (maintainers only):

    bash
    bun run release

    This will:

    • Check for uncommitted git changes
    • Bump patch version (e.g., 0.0.1 → 0.0.2)
    • Fix any hard links in storage/
    • Run checks and release

    Other options: bun run release -- --minor, bun run release -- --major, or bun run release -- --no-bump

License

ISC

來源:Readme.md,提交 1715462

工具

0
SourceWeft 尚未讀取此伺服器的工具。

版本歷史

1
  1. v0.0.13最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式必需10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。